今早Linux系统重启apache出现VirtualHost overlap on port 80
2008-07-16 06:59
806 查看
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 ]
[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 ]
相关文章推荐
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 解决:配置虚拟主机,重启apache,[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 基于域名的虚拟主机出现[warn] _default_ VirtualHost overlap on port 80, the first has precedence
- 关于Apache: [warn] _default_ VirtualHost overlap on port 80, the first has precedence Error and Solution的解决方案
- 解决 [warn] _default_ VirtualHost overlap on port 80, the first has precedence
- [warn] _default_ VirtualHost overlap on port 80, the first has precedence解决办法
- _default_ VirtualHost overlap on port 80, the first has precedence
- warn] _default_ VirtualHost overlap on port 80, the first has precedence解决办法
- 解决 [warn]_default_ VirtualHost overlap on port 80, the first has precedence 问题
- _default_ VirtualHost overlap on port 80, the first has precedence
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- 解决[warn] _default_ VirtualHost overlap on port 80, the first has precedence问题
- Apache配置基于端口号的虚拟主机 Apache virtual host configuration is based on the port
- [warn] _default_ VirtualHost overlap on port 443, the first has precedence
- 【Webdriver】Firefox启动后出现Unable to connect to host 127.0.0.1 on port 7055。
- run application on linux port 80 as non-root user.
- apache IIS Port Conflicts On 80
- eclipse运行play框架时出现Could not bind on port 80的解决方法