【问题标题】:Bugzilla 5.0.4 on Centos 6.9 .htaccess: Options not allowed hereCentos 6.9 .htaccess 上的 Bugzilla 5.0.4:此处不允许的选项
【发布时间】:2020-07-18 11:16:53
【问题描述】:

我刚刚在 Centos 6.9 上安装了 Bugzilla 5.0.4(从 Bugzilla 4.2.1 升级)

这是checksetup.pl 通过,但网站返回“内部服务器错误”。
apache 的 error_log 中唯一的内容是:

/var/www/html/bugzilla/.htaccess:此处不允许的选项

我应该如何解决这个问题?

【问题讨论】:

    标签: apache bugzilla


    【解决方案1】:

    在 /etc/httpd/conf.d/buzilla.conf 中将“选项”添加到 AllowOverride,然后重新启动 Apache。

    【讨论】:

      【解决方案2】:

      “Require”是一种 AuthConfig 指令。您需要在 httpd.conf 中指定 .htaccess 中允许使用的指令类型。 ( 见https://httpd.apache.org/docs/2.4/mod/core.html#allowoverridehttps://httpd.apache.org/docs/2.4/mod/overrides.html#override-indexes)

      <Directory /var/www/html/bugzilla>
          AddHandler cgi-script .cgi
          Options +Indexes +ExecCGI
          DirectoryIndex index.cgi
          AllowOverride Limit AuthConfig Options Indexes FileInfo
      </Directory>
      

      来自 bugzilla 的说明没有 AuthConfig 和此处的其余部分。您需要将它们全部添加以使 /var/www/html/bugzilla/.htaccess 被 apache 接受。

      【讨论】:

        猜你喜欢
        • 2011-10-29
        • 1970-01-01
        • 2016-04-05
        • 1970-01-01
        • 2023-03-04
        • 2018-02-28
        • 2014-05-28
        • 2013-08-26
        • 2012-10-27
        相关资源
        最近更新 更多