码迷,mamicode.com
首页 > Web开发 > 详细

王高利:apache__configuration error: couldn’t perform authentication. AuthType not set!: /

时间:2016-04-30 01:17:28      阅读:652      评论:0      收藏:0      [点我收藏+]

标签:error   apache   auth   

apacheb版本:

[root@localhost ~]# httpd -v
Server version: Apache/2.2.31 (Unix)
Server built:   Apr 10 2016 18:08:35

错误日志信息:

tail -f ../../logs/web1-host.example.com-error_log
[Fri Apr 29 17:28:42 2016] [crit] [client 192.168.1.10] configuration error:  couldn‘t perform authentication. AuthType not set!: /
[Fri Apr 29 17:28:42 2016] [crit] [client 192.168.1.10] configuration error:  couldn‘t perform authentication. AuthType not set!: /
[Fri Apr 29 17:28:42 2016] [crit] [client 192.168.1.10] configuration error:  couldn‘t perform authentication. AuthType not set!: /
[Fri Apr 29 17:28:42 2016] [crit] [client 192.168.1.10] configuration error:  couldn‘t perform authentication. AuthType not set!: /
[Fri Apr 29 17:28:43 2016] [crit] [client 192.168.1.10] configuration error:  couldn‘t perform authentication. AuthType not set!: /

原因:

[root@localhost ~]# cat /usr/local/httpd/conf/extra/httpd-vhosts.conf | head -33 | tail -7
<Directory "/wgl" >
        Options Indexes FollowSymlinks MultiViews
        AllowOverride AuthConfig
        Require all granted ##属于2.4.X版本
        Order allow,deny
        Allow from all
</Directory>
[root@localhost ~]#

解决方法:

[root@localhost ~]# cat /usr/local/httpd/conf/extra/httpd-vhosts.conf | head -33 | tail -7
<Directory "/wgl" >
        Options Indexes FollowSymlinks MultiViews
        AllowOverride AuthConfig
        #Require all granted #注释或删除掉
        Order allow,deny
        Allow from all
</Directory>
[root@localhost ~]#


本文出自 “王高利” 博客,请务必保留此出处http://wanggaoli.blog.51cto.com/10422005/1769072

王高利:apache__configuration error: couldn’t perform authentication. AuthType not set!: /

标签:error   apache   auth   

原文地址:http://wanggaoli.blog.51cto.com/10422005/1769072

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!