1 First find the httpd.conf file in D:wampbinapacheApache2.2.21conf and open it, then find it at more than 460 lines
Remove the #, and the following is the situation
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
2 Then open the httpd-vhosts.conf file in D:wampbinapacheApache2.2.21confextra
At the end of the file add
ServerAdmin webmaster@dummy-host3.example.com
DocumentRoot "d:/wamp/www/4/huaguoshan"
ServerName www.hgs2013.cn
ErrorLog "logs/dummy-host3.example.com-error.log"
CustomLog "logs/dummy-host3.example.com-access.log" common
ServerAdmin webmaster@dummy-host4.example.com
DocumentRoot "d:/wamp/www/test"
ServerName www.test.cn
ErrorLog "logs/dummy-host4.example.com-error.log"
CustomLog "logs/dummy-host4.example.com-access.log" common
Enter the domain name you want.
3 Finally open the hosts file in C:WindowsSystem32driversetc
At the end of the file, specify the domain name you just defined.
127.0.0.1 www.hgs2013.cn
127.0.0.1 www.test.cn
That's ok, it's just my personal opinion
http://www.bkjia.com/PHPjc/440131.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440131.htmlTechArticle1 First find the httpd.conf file in D:wampbinapacheApache2.2.21conf, open it, and then find and remove it at more than 460 lines# , and then the following situation is #Virtual hostsInclude conf/extra/http...