First, in the \wamp\bin\apache\apache2.4.4\conf\extra\httpd-vhosts.conf modified as follows
Copy Code code as follows:
Namevirtualhost *:80
<virtualhost *:80>
DocumentRoot "E:/WEBSITE/PXSJ"
ServerName host7.com
Serveralias 192.168.1.116
<directory "E:/WEBSITE/PXSJ" >
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>
Namevirtualhost *:8080
<virtualhost *:8080>
DocumentRoot "E:/WEBSITE/WHSJ"
ServerName host10.com:8080
Serveralias 192.168.1.116:8080
<directory "E:/WEBSITE/WHSJ" >
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>
Second, the \wamp\bin\apache\apache2.4.4\conf\httpd.conf modified as follows:
Find the word "Listen" in this file to modify
Copy Code code as follows:
# Virtual Hosts
# Include conf/extra/httpd-vhosts.conf to remove the front # so that the Httpd-vhosts virtual host file is turned on. It's time to restart the environment
Third, C:\Windows\System32\drivers\etc\hosts modify configuration
Copy Code code as follows:
<pre code_snippet_id= "331423" snippet_file_name= "blog_20140507_1_9705788" ></pre>
<pre></pre>
<pre></pre>
<pre></pre>