我的虚拟主机configuration文件包含以下内容(Apache版本是2.4.7):
<VirtualHost _default_:443> [...] <Directory [...]> Require all granted </Directory> </VirtualHost>
如果我想访问目录服务器返回一个403错误和Apache日志包含
[access_compat:error] [pid 3433] [client [...]] AH01797: client denied by server configuration
如果我交换“要求所有授予”
Order allow,deny Allow from all
日志文件变成的行
[authz_core:error] [pid 4970] [client [...]] AH01630: client denied by server configuration
我怎样才能进一步调查出了什么问题呢? 为什么authz_core在使用旧指令和access_compat时使用新指令?
编辑:输出apachectl -M: http : //pastebin.com/YxvNtAZr
发现问题…有一个启用的configuration文件覆盖了这个特定目录的访问规则。