AllowOverride None
Posted rsapaper
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AllowOverride None相关的知识,希望对你有一定的参考价值。
php Advanced and Object-Oriented Programming
Larry Ullman
1 <Directory /> 2 AllowOverride None 3 </Directory> 4 #Depending on the installation and configuration, Apache, on thestrictest level of security, will not allow .htaccess files to change Apache behavior. 5 #The root directory (/) is the target, meaning that Apache will not allowover-rides—changes—made within any directories on the computer at all. 6 7 #Another common use of an .htaccess file is to protect the contents of a directory. 8 # Thereare two possible scenarios: 9 #• Denying all access 10 #• Restricting access to authorized user 11 12 #To deny all access to a directory’s contents 13 # Disable directory browsing: 14 Options All -Indexes 15 # Prevent folder listing: 16 IndexIgnore * 17 # Prevent access to any file: 18 <FileMatch "^.*$"> 19 Order Allow, Deny 20 Deny from all 21 </FileMatch> 22 23 #Again, this code just prevents direct access to that directory’s contents via a Webbrowser. 24 #A PHP script could still use include(), require(), readfile(), and other functions to access that content.
以上是关于AllowOverride None的主要内容,如果未能解决你的问题,请参考以下文章
在 apache2.conf 中包含 .htaccess 并带有“AllowOverride None”会减慢 Apache?
将 www 重定向到 https:// 需要 AllowOverride 还是可以全局设置?
解决spring-boot启动中碰到的问题:Cannot determine embedded database driver class for database type NONE(转)(代码片段