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

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 ~]#


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章