今早Linux系统重启apache出现VirtualHost overlap on port 80
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://846cc.blog.51cto.com/125625/87991 |
Linux系统重启apache出现:
[root@localhost conf]# service httpd restart
Stopping httpd: [ OK ] Starting httpd: [Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Wed Jul 16 06:52:43 2008] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Wed Jul 16 06:52:43 2008] [warn] NameVirtualHost 124.254.31.4:80 has no VirtualHosts 看上面提示,发现了,apache虚拟主机出问题,警告:默认监听端口80上有重叠,在我们正常配置虚拟主机时,linux系统配置,XXX.conf 虚拟配置文件,一般都是默认访问在第一个站,表明虚拟主机没配置好。
解决方法:
编辑虚拟主机配置文件,改两处地方就可以了。
1.一处
NameVirtualHost *:80
2.二处
<VirtualHost *:80> DocumentRoot /home/wwwroot/ ServerName xxx.com [root@localhost conf]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] 本文出自 “846百事成” 博客,请务必保留此出处http://846cc.blog.51cto.com/125625/87991 本文出自 51CTO.COM技术博客 |


846cc
博客统计信息
热门文章
最新评论
友情链接


