Bugzilla Web无法正确呈现css和图像

问题描述 投票:0回答:1

我在我的Windows 10机器上安装了bugzilla版本5.1.1。我没有加载任何CSS或图像文件的主页。

Web page

enter image description here

这是chrome控制台中的错误消息。

css bugzilla
1个回答
0
投票

我在Apache 2.4,Active Perl,Windows 7,MySQL上遇到了与Bugzilla 5.0.3相同的问题。我修复了,找到bugzilla目录中的所有.htaccess文件。

Don't allow people to retrieve non-cgi executable files or our private data

    <FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>
      <IfModule mod_version.c>    <= remove
        <IfVersion < 2.4>           <= remove   
          Deny from all          <= remove
        </IfVersion>               <= remove
        <IfVersion >= 2.4>         <= remove 
          Require all denied
        </IfVersion>               <= remove
     </IfModule>                  <= remove
     <IfModule !mod_version.c>    <= remove
       Deny from all              <= remove
     </IfModule>                  <= remove  
   </FilesMatch>

似乎检查Apache版本的代码不起作用,Apache不接受“Deny”关键字。然后web服务器访问这个文件直接全部被拒绝。

© www.soinside.com 2019 - 2024. All rights reserved.