【发布时间】: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:此处不允许的选项
我应该如何解决这个问题?
【问题讨论】:
我刚刚在 Centos 6.9 上安装了 Bugzilla 5.0.4(从 Bugzilla 4.2.1 升级)
这是checksetup.pl 通过,但网站返回“内部服务器错误”。
apache 的 error_log 中唯一的内容是:
/var/www/html/bugzilla/.htaccess:此处不允许的选项
我应该如何解决这个问题?
【问题讨论】:
在 /etc/httpd/conf.d/buzilla.conf 中将“选项”添加到 AllowOverride,然后重新启动 Apache。
【讨论】:
“Require”是一种 AuthConfig 指令。您需要在 httpd.conf 中指定 .htaccess 中允许使用的指令类型。 ( 见https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride和https://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 接受。
【讨论】: