Apache Virtual Host Configuration

Source: Internet
Author: User

1. Create the Htdocs file in the Apache directory and create the B.Com file with a inde.html text below it, enter the content

2. Open the Conf directory under the Apache directory vhosts.conf, find the address, the previous # Remove the virtual host function to open

3. In the extra directory, open the httpd-vhosts.conf (the service you just opened), and modify your absolute path, as well as the service name.

4. Get the domain name resolved to Local: found in this directory

Open hosts: Resolve the local domain name:

5. Set the local agent, note the 80 port:

Successfully configured the virtual host!

Apache Virtual Host Configuration

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.