解决_default_ VirtualHost overlap on port 80

在安装Apache后,配置了几个虚拟主机,但是重启Apache时有几个警告:

[warn]_default_ VirtualHost overlap on port 80, the first has precedence

这是怎么回事?又该怎么解决?

解决_default_ VirtualHost overlap on port 80

 1.

打开httpd.conf文件

解决_default_ VirtualHost overlap on port 80

 

2.

#NameVirtualHost *:80前的注释去掉

如果不去掉这个注释,则会导致虚拟主机的配置不会生效

解决_default_ VirtualHost overlap on port 80
解决_default_ VirtualHost overlap on port 80

3.

重启Apahce后警告消失

解决_default_ VirtualHost overlap on port 80

 

 

posted @ 2017-10-01 11:29  加菲猫and大白  阅读(440)  评论(0编辑  收藏  举报