1. Find C:WINDOWSsystem32driversetchosts
127.0.0.1 localhost
127.0.0.1 www.zhosoft.com
2. Find the C:wampbinapacheapache2.2.22confhttpd.conf file and open
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
Modify to
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
3. Find the file C:wampbinapacheapache2.2.22confextrahttpd-vhosts.conf and open
Add
at the end
ServerAdmin zhosoft@126.com
DocumentRoot "E:/zhosoft"
ServerName www.zhosoft.com
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
4.DW website