2015-11-27 61 views
0

安装bugzilla后出现错误。Bugzilla内部服务器错误500 - Bugzilla目录中的.htaccess

浏览器显示服务器错误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> 

选项“所需的所有授予“也是不允许的。

什么问题?

谢谢。

回答

0

如果你不明白2.4为什么不起作用,你可以加载mod_access_compat,它提供了allow/deny/order指令。

+0

谢谢,我加载模mod_access_compat和bugzilla运行。 – MaWi