【发布时间】:2014-02-11 11:08:02
【问题描述】:
我已经有一段时间没有使用 Apache httpd 网络服务器了。我正在为一个项目启动本地服务器,当我尝试请求 localhost/index.html 时,我收到一个 500 错误,我在错误日志中看到了这个:
[Tue Jan 21 09:23:58 2014] [crit] [client ::1] configuration error: couldn't perform authentication. AuthType not set!: /index.html
[Tue Jan 21 09:23:58 2014] [error] an unknown filter was not added: DEFLATE
[Tue Jan 21 09:23:58 2014] [crit] [client ::1] configuration error: couldn't perform authentication. AuthType not set!: /favicon.ico
看起来 apache 配置中可能存在 2 个错误,其中一个与“未设置 AuthType!”有关。并且可能与“未添加过滤器:DEFLATE”相关的另一个。我不知道这些意味着什么或从哪里开始挖掘。
基本的 Google 搜索显示 this link,这表明罪魁祸首可能是“要求全部批准”。我的 httpd.conf 中的这一行可能涉及到。
<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
这个 apache 配置主要用于这个项目的生产,所以我知道这是可行的,只是目前不在我的工作站上。这是什么意思,接下来我应该尝试什么?我确实尝试注释掉“要求所有授予”并重新启动 apache 但无济于事。
在this SO question之后我还加载了mod_authz_host
LoadModule authz_host_module modules/mod_authz_host.so
并添加“全部允许”,重新启动服务器。但问题仍然存在。放气问题似乎无关紧要,通过添加
很容易解决LoadModule deflate_module modules/mod_deflate.so
问题仍然存在,我该如何解决这个 500 错误?
[Tue Jan 21 09:44:20 2014] [crit] [client ::1]
configuration error: couldn't perform authentication.
AuthType not set!: /index.html
【问题讨论】:
标签: apache