找到目录:G:\wamp\bin\apache\apache2.2.22\conf
原先代码:
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
更改后代码:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
找到目录:G:\wamp\bin\apache\apache2.2.22\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "f:/project/hmec/framework/index.php"
ServerName www.hmec.com
ErrorLog "logs/hmec.log"
CustomLog "logs/hmec.log" common
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "f:/project/hmec/framework/index.php"
ServerName statics.hmec.com
ErrorLog "logs/hmec.log"
CustomLog "logs/hmec.log" common
</VirtualHost>
#默认www目录
<VirtualHost *:80>
DocumentRoot "G:\wamp\www"
ServerName www.shangcent.cc
</VirtualHost>
#默认www目录
<VirtualHost *:80>
DocumentRoot "G:\wamp\www"
ServerName 127.0.0.1
</VirtualHost>