Configure a virtual domain name in the Wamp Integration Environment

Source: Internet
Author: User

In the Wamp integration environment, configure virtual domain names and multiple domain names. It is used in some cases. Step 1: Find the directory Wamp/bin/Apache/apache2.4.9/CONF/httpd. conf find the exact location file found, open with notepad, or tool, around 500 lines, there is a sentence # include CONF/extra/httpd-vhosts.conf remove #, which means the function is enabled. The VM is enabled.: Step 2: in the same directory as the configuration file Wamp/bin/Apache/apache2.4.9/CONF/extra/httpd-vhostst.conf find this file to add at the bottom of the interface: <virtualhost *: 80> DocumentRoot "F:/Wamp/www/shop" # This is your project location servername shop.com # This is your own name, corresponding to the Project location </virtualhost>

 

<Virtualhost *: 80> DocumentRoot "F:/Wamp/www/" # This is your local location servername localhost # Corresponds to the local </virtualhost> Step 3: open the computer drive C/Windows/system32/Drivers/etc/hosts and use a tool to open the 'hosts' file. Add 127.0.0.1 shop.com at the bottom of the file. Step 4: restart your environment, observe your configuration and effect in the address bar ..

Configure a virtual domain name in the Wamp Integration Environment

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.