Configure virtual hosts in APACHE2.0

Source: Internet
Author: User
APACHE2.0 configures the virtual host-Linux Enterprise Application-Linux server application information. The following is a detailed description. DNS can be resolved without any problems, and the test page can also be accessed normally. However, after the virtual host is configured, it cannot be accessed according to the set virtual directory. The test page of the original default directory is only used for httpd. conf was modified. I suspect there was a problem when VirtualHost defined the default host. The cause of the error could not be found within the scope of my capabilities. I hope you can help me to explain the problem, thank you! ~
Httpd. conf file modification
ServerName 192.168.2.1

NameVirtualHost *: 80


DocumentRoot/home/www
ServerName www. vv. cc



DocumentRoot/home/cnn
ServerName cnn. vv. cc

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.