【问题标题】:Error in getting JS and CSS files in Bugzilla 5.0.3在 Bugzilla 5.0.3 中获取 JS 和 CSS 文件时出错
【发布时间】:2016-11-21 00:41:25
【问题描述】:

我已经在 centos 7 上配置了 Bugzilla,它工作正常,只是无法获取 JS 和 CSS 文件。

我已按照here 的指示进行操作。

我已将 Apache 配置为托管 Bugzilla 安装,如下所示:

注意:我在端口 88 上运行了 httpd 服务。

#/etc/httpd/conf.d/bugzilla.conf
<VirtualHost *:88>
DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
</Directory>

当我从 chrome 浏览器访问 Bugzilla 时。我得到的视图如下图所示。

我已经交叉检查了 JS 和 CSS 文件和文件。我在这里缺少什么?

【问题讨论】:

    标签: javascript apache httpd.conf bugzilla


    【解决方案1】:

    我遇到了同样的问题,这是由于 Apache 2.4 没有提供 css 或 js 文件。要确认这一点,请检查 /var/log/apache2/error.log 文件中 css 或 js 文件的“客户端被服务器配置拒绝”错误。

    为我解决的问题是删除子目录中的所有 .htaccess 文件,然后重新运行 ./checksetup.pl 以重新生成它们,如 5.0.2 发行说明 (https://www.bugzilla.org/releases/5.0.2/release-notes.html) 中所述

    find . -mindepth 2 -name .htaccess -exec rm -f {} \;
    ./checksetup.pl
    

    【讨论】:

      【解决方案2】:

      我有这样的问题。这是我所做的解决方案。 操作系统是 CentOS 7。

      1. 我在/var/log/httpd/error_log 中看到了一些错误
      /bugzilla/data/.htaccess: Require not allowed here
      /bugzilla/data/assets/.htaccess: Require not allowed here
      
      1. 我删除了包含Require的行

      【讨论】:

        【解决方案3】:

        对我来说,我使用的是 Bugzilla 5.0.6。当我查看 Apache 日志时,它在说

        1. C:/bugzilla/data/.htaccess: Invalid command 'Deny', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/bugzilla/
        2. C:/bugzilla/data/assets/.htaccess: Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/bugzilla/

        所以,我所做的只是在这两个 .htaccess 文件中,我将Deny from all 更改为Require all deniedAllow from all 更改为Require all granted

        Issue on Github

        【讨论】:

          猜你喜欢
          • 2017-04-22
          • 2015-03-23
          • 2015-06-14
          • 1970-01-01
          • 2020-07-20
          • 2019-05-26
          • 2017-05-29
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多