This article describes the multi-site support If you modify the configuration in Wamp.
1th step, modify httpd.conf, add 8080 port to monitor
#Listen 12.34.56.78:80
Listen 80
Listen 8080
The 2nd step is to modify the virtual hosts configuration, which is also in the httpd.conf file.
# Virtual Hosts
#Include conf/extra/httpd-vhosts.conf
#修改为
# Virtual Hosts
Include conf/extra/httpd-vhosts.conf
3rd step, add the virtual host configuration, modify the httpd-vhosts.conf file.
#
# use name-based virtual hosting.
#
Namevirtualhost *:80
Namevirtualhost *:8080
#
# VirtualHost Example:
# Almost any Apache directive could go into a VirtualHost container.
# The first VirtualHost section was used for all requests that does not
# match a ServerName or serveralias in any <vir Tualhost> block.
#
<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "c:/wamp/www/"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
errorlog "logs/ Dummy-host.example.com-error.log "
Customlog" Logs/dummy-host.example.com-access.log "Common
<Directory" c:/wamp/www/">&NBSP;
Options Indexes followsymlinks
Allowoverride all
Order allow,deny& nbsp
allow from all
</directory>
</virtualhost>
<virtualhost *:8080>
ServerAdmin [email protected]
DocumentRoot "c:/wamp/www2/"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common
<directory "c:/wamp/www2/" >
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
</VirtualHost>
The 4th step, restart Apache, you can see the effect of
Wamp modifying multi-site configurations