美文网首页程序员我爱编程
Apache 报错: couldn't perform

Apache 报错: couldn't perform

作者: xiaojianxu | 来源:发表于2017-03-24 17:37 被阅读876次

使用 Apache 的虚拟机服务,出现 500 internal error。查看 error_log,看到如下报错内容:

 [crit] [client 119.136.114.3] configuration error:  couldn't perform authentication. AuthType not set!:

conf.d/httpd-vhost.conf 中 vhost 配置的内容如下:

<VirtualHost *:80>
        ServerName azon.baidu.dec
        #DocumentRoot D:/wamp64/www
        DocumentRoot /home/www/default/azon
        <Directory  "/home/www/default/azon">
                Options +Indexes +Includes +FollowSymLinks +MultiViews
                AllowOverride All
                Require all granted
        </Directory>
</VirtualHost>

搜索问题,寻找解决时,发现 “Require all granted” 指令只能用于 Apache 2.4。

httpd -v ,发现自己在使用的是 Apache 2.2.

Server version: Apache/2.2.15 (Unix)
Server built:   Oct 16 2014 14:48:21

只需要将 Require all granted 替换为如下内容即可:

Order allow,deny
Allow from all

参考文章 #1
参考文章 #2

相关文章

网友评论

    本文标题:Apache 报错: couldn't perform

    本文链接:https://www.haomeiwen.com/subject/gmmfottx.html