1.路径:G:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
开启
LoadModule vhost_alias_module modules/mod_vhost_alias.so
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
2.路径:G:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.localhost.comServerAlias www.localhost.com
ServerPath d:/wamp/www/
DocumentRoot d:/wamp/www/
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@awav2_3.localhost
DocumentRoot "d:/wamp/www/awav2_3"
ServerName www.awav2_3.com
ErrorLog "logs/awav2_3.localhost-error.log"
CustomLog "logs/awav2_3.localhost-access.log"
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@magento.localhost
DocumentRoot "d:/wamp/www/magento"
ServerName www.localhost.com/magento
ErrorLog "logs/magento.localhost-error.log"
CustomLog "logs/magento.localhost-access.log"
</VirtualHost>
3.C:\Windows\System32\drivers\etc\hosts
127.0.0.1 www.sae.com