_default_ VirtualHost overlap on port 80, the first has precedence

[root@localhost conf]# /usr/sbin/httpd -t  
[Tue Apr 27 11:12:59 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence  
Syntax OK

Answer: The NameVirtualHost directive is a required to configure name-based virtual hosts. Add this to your httpd.conf file to fix this issue. Open httpd.conf file:
# vi httpd.conf
Add NameVirtualHost as follows:
NameVirtualHost *:80
OR add server IP
NameVirtualHost 202.54.1.1:80
Save and close the file. Restart httpd web server under RHEL / Red Hat / Fedora / CentOS Linux:
# service httpd restart

发表评论