Wampserver Configuring multiple Sites

Source: Internet
Author: User

    1. Look in the "httpd.conf" file: Include conf/extra/httpd-vhosts.conf, remove the previous comment #.

      Open a. extra/httpd-vhosts.conf file; Add similar content to the last: (file path is the path of your own installer)

      <virtualhost *:80>

      DocumentRoot "D:/wamp/www/aaa" (this is the file path where you put the program)

      ServerName www.aaa.com (This is your own definition of the domain name)

      </VirtualHost>

    2. Find this file last added:

      127.0.0.1 www.aaa.com (This is your own definition of the domain name)

      1. 3

        Save and restart the service. In Browser input: www.aaa.com view effects.

        Precautions

        The default root directory is also added to httpd-vhosts.conf or the default path is not available.

        Final Result:

        Each time you add a new site, the following adds one:

        <virtualhost *:80>

        DocumentRoot "D:/wamp/www/xxx" (this is the file path where you put the program)

        ServerName www.xxx.com (This is your own definition of the domain name)

        </VirtualHost>

Wampserver Configuring multiple Sites

Related Article

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.