Bugzilla上游提供了一个.htaccess文件,其中包含Apacheconfiguration的这个片段:
# Don't allow people to retrieve non-cgi executable files or our private data <FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$> <IfModule mod_version.c> <IfVersion < 2.4> Deny from all </IfVersion> <IfVersion >= 2.4> Require all denied </IfVersion> </IfModule> <IfModule !mod_version.c> Deny from all </IfModule> </FilesMatch>
我正在运行Apache 2.4; 但是,每当访问Bugzilla主页时,我都会收到关于Deny 500个错误。 结果是Apache从<IfModule !mod_version.c>块内部Deny from all获得Deny from all ,并将其更改为Require all denied修复错误。 其他<IfModule>块例如mod_rewrite工作正常。
Apache为什么这样做? 我已经非常广泛地searchnetworking,没有运气。
以下是关于我的系统的更多信息:
% sudo apachectl -M | grep version version_module (static) % uname -a # Debian 8 Linux steevie 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.30-2+deb9u2~bpo8+1 (2017-06-27) x86_64 GNU/Linux % apachectl -v Server version: Apache/2.4.10 (Debian) Server built: Jul 18 2017 18:32:16