Apache:“未设置AuthType!” 500错误

ste*_*aye 3 apache apache-config

自从我在Windows中使用Apache httpd Web服务器已有一段时间了。当我尝试请求localhost / index.html时,出现500错误,并在错误日志中看到此错误:

[客户端127.0.0.1]配置错误:无法执行身份验证。未设置AuthType !: /

我的httpd.conf中的这一行可能涉及到。

 <Directory />
    Options FollowSymLinks
    AllowOverride All
    Require all granted
 </Directory>
Run Code Online (Sandbox Code Playgroud)

我的apache版本是2.2
OS:Windows 7我该如何解决这个500错误?

gag*_*nso 6

删除线Require all granted。

Allow from all在<2.4版本中相当于Require all granted2.4+。