1 First find the httpd.conf file in D:\wamp\bin\apache\Apache2.2.21\conf and then find out in more than 460 lines to get rid of #, then the following situation # Virtual Hostsinclude conf/ Extra/httpd-vhosts.conf2 then in the open D:\wamp\bin\apache\Apache2.2.21\conf\extra httpd-vhosts.conf file at the end of the file plus 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 Write the domain name you want. 3 finally open the Hosts file in C:\Windows\System32\drivers\etc to specify the domain name you just defined on the last side of the file 127.0.0.1 www.hgs2013.cn127.0.0.1 Www.test.cn This is OK, purely personal opinion.
http://www.bkjia.com/PHPjc/440131.html www.bkjia.com true http://www.bkjia.com/PHPjc/440131.html techarticle 1 First find the httpd.conf file in D:\wamp\bin\apache\Apache2.2.21\conf and then find out in more than 460 lines to get rid of #, then the following situation # Virtual Hostsinclude conf/ Extra/http ...