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