1. [root@localhost conf]# /usr/sbin/httpd -t  
  2. [Tue Apr 27 11:12:59 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence  
  3. 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

本日志由 flyinweb 于 2010-04-27 12:01:04 发表到 WEB服务器 中,目前已经被浏览 4509 次,评论 0 次;

作者添加了以下标签: _default_ VirtualHostNameVirtualHost