This morning, VirtualHostoverlaponport80 appeared when apache was restarted in Linux.

Source: Internet
Author: User
This morning, when the Linux system restarts apache, VirtualHostoverlaponport80 -- Linux Enterprise Application-Linux server application information is displayed. The following is a detailed description. Restart apache in Linux:

[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

According to the above prompt, the apache Virtual Host has a problem. Warning: the default listening port 80 overlaps. When we configure the virtual host normally, 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 virtual host configuration file and change it to two places.

1. One
NameVirtualHost *: 80

2. Location 2


DocumentRoot/home/wwwroot/
ServerName xxx.com

[Root @ localhost conf] # service httpd restart
Stopping 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.