Solve [warn] _ default _ VirtualHost overlap on port 80, the first

Source: Internet
Author: User

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.