Wamp Multi-site configuration, wamp site configuration
Online method Five gray door, deliberately recorded, the need for friends to take the good.
Files that need to be modified: httpd.conf/httpd-vhosts.conf/hosts
corresponding path:
Httpd.conf:wamp\bin\apache\apache2.2.21\conf
Httpd-vhosts.conf:wamp\bin\apache\apache2.2.21\conf\extra
Hosts:c\windows\system32\drivers\etc
Modify the process:
1, open httpd.conf, about 466 lines: #Include conf/extra/httpd-info.conf, delete #;
2, or httpd.conf, about 188 lines:
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all
Switch
Options FollowSymLinks
AllowOverride None
Order Deny,allow
#Deny from all
Allow from all
#允许所有访问
Satisfy All
3. Open httpd-vhosts.conf and add the following code in the bottom margin ( modify the Wamp installation path 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
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot " f:/wamp/www2"
ServerName www2.com
Serveralias www.dummy-host.example.com
Errorlog "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common
4, the last step: Open the Hosts file and add the following code below the last line:
127.0.0.1 localhost
127.0.0.1 www2.com
After restarting Wamp , localhost and www2.com can differentiate between development and multi-site configuration success.
http://www.bkjia.com/PHPjc/1051882.html www.bkjia.com true http://www.bkjia.com/PHPjc/1051882.html techarticle Wamp Multi-site configuration, wamp site configuration on-line method five gray door, deliberately recorded, the need for friends to take the good. Files that need to be modified: httpd.conf/httpd-vhosts.conf/...