Bugzilla 内部服务器错误 500 - Bugzilla 目录中的 .htaccess

Bugzilla Internal Server Error 500 - .htaccess in Bugzilla Directory

我在安装 bugzilla 后出现错误。

浏览器显示服务器错误 500。Apache Error.log 显示以下行:

**[Fri Nov 27 15:48:22.264120 2015] [core:alert] [pid 2116:tid 1008] [client ::1:50338] C:/bugzilla/.htaccess: Invalid command 'deny', perhaps misspelled or defined by a module not included in the server configuration**

.htaccess的配置:

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>
      <IfModule mod_perl.c>
          deny from all
      </IfModule>
      <IfModule !mod_perl.c>
          deny from all
      </IfModule>
    </IfVersion>
  </IfModule>
  <IfModule !mod_version.c>
     deny from all
  </IfModule>
</FilesMatch>

选项"Required all granted"也是不允许的。

有什么问题?

谢谢。

如果您无法弄清楚为什么 2.4 语法也不起作用,您可以加载提供 allow/deny/order 指令的 mod_access_compat。