This article describes how to modify the configuration in Wamp to support multiple sites.
Step 2: Modify httpd. conf and add a listener for port 1st.
# Listen 12.34.56.78: 80
Listen 80
Listen 8080.
Step 2: modify the configuration of virtual hosts, which is also in the httpd. conf file.
# Virtual Hosts
# Include CONF/extra/httpd-vhosts.conf
# Change
# Virtual Hosts
Include CONF/extra/httpd-vhosts.conf
Step 2, add the VM configuration and modify the httpd-vhosts.conf file.
#
# Use name-based virtual hosting.
#
Namevirtualhost *: 80
Namevirtualhost*: 8080
#
# Virtualhost example:
# Almost any Apache directive may go into a virtualhost container.
# The first virtualhost section is used for all requests that do not
# Match a servername or serveralias in any <virtualhost> block.
#
<Virtualhost *: 80>
Serveradmin [email protected]
DocumentRoot "C:/Wamp/www /"
Servername dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "log/dummy-host.example.com-error.log"
Customlog "logs/dummy-host.example.com-access.log" common
<Directory "C:/Wamp/www/">
Options indexes followsymlinks
AllowOverride all
Order allow, deny
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 "log/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>
Step 3: restart Apache to see the effect.
Wamp supports multiple sites for Configuration Modification