[Warn] namevirtualhost *: 80 has no virtualhosts appears after the Apache Virtual Host is configured in Ubuntu

Source: Internet
Author: User

After Multiple Apache Virtual Hosts are configured on Ubuntu, the following error message is displayed:

[Warn] namevirtualhost *: 80 has no virtualhosts

Cause: the syntax of namevirtualhost is incorrect. If the same host supports multiple virtual hosts, you only need to name namevirtualhost once. If namevirtualhost *: 80 is added to each virtual host configuration file, this warning is reported.

Originally, *: 80 virtualhost was defined in/etc/apache2/ports. conf. After finding this, everything goes smoothly. Delete the previously added namevirtualhost and change all vhost locations to *: 80. OK. Everything went very smoothly.

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.