Solve the Problem of [warn] _ default _ VirtualHost overlap on port 80, the first has precedence in httpd of apache2. A new VirtualHost is added to the conf file, and the domain name is www.ligh.com. At this time, the server has a total of two virtualhosts and the apachectl restart has the following warning prompt: [warn] _ default _ VirtualHost overlap on port 80, the first has precedence probably means that the newly added VirtualHost cannot take effect because the port is occupied, follow the configurations of the first VM. Www.2cto.com checked and found that in httpd. conf, I did not remove the comment before # NameVirtualHost *: 80, which caused this to not take effect. Remove # And restart. The problem is solved. If https exists, change it to NameVirtualHost *: 80 NameVirtualHost *: 433. restart apache in Linux: [root @ localhost conf] # service httpd restartStopping 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 20 08] [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 check the above prompt, the apache Virtual Host is faulty. Warning: the default listening port 80 overlaps. When we configure the virtual host properly, the linux system configuration is XXX. conf virtual configuration files are generally accessed on the first site by default, indicating that the virtual host is not configured properly. Solution: edit the VM configuration file and change it to two places. 1. nameVirtualHost *: 802. 2. <VirtualHost *: 80> DocumentRoot/home/wwwroot/ServerName xxx.com [root @ localhost conf] # service httpd restartStopping httpd: [OK] Starting httpd: [OK]