Home > Article > Backend Development > wamp multi-site configuration, wamp site configuration_PHP tutorial
There are many online methods, I specially recorded them, friends who need them can just take them by themselves.
Files that need to be modified: httpd.conf/httpd-vhosts.conf/hosts
Corresponding path:
httpd.conf:wampbinapacheApache2.2.21conf
httpd-vhosts.conf:wampbinapacheApache2.2.21confextra
hosts:cWindowsSystem32driversetc
Modification process:
1. Open httpd.conf, about line 466: #Include conf/extra/httpd-info.conf, delete #;
2, still httpd.conf, about 188 lines:
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
changed to:
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
all
Modify the wamp installation path by yourself):
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "
f:/wamp/www" ServerName localhost
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
127.0.0.1 localhost
127.0.0.1 www2.com
After restarting wamp, localhost and www2.com can be developed separately, and multi-site configuration is successful.