PHP local domain name resolution tutorial. 1. find C: Development. zhosoft. com2. find the C: wampbinapacheapache2.2.22confhttpd. conf file, open # Virtualhosts #1. find C: \ WINDOWS \ system32 \ drivers \ etc \ hosts
127.0.0.1 localhost
127.0.0.1 www.zhosoft.com
2. find the C: \ wamp \ bin \ apache \ apache2.2.22 \ conf \ httpd. conf file and open
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
Change
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
3. find the file C: \ wamp \ bin \ apache \ apache2.2.22 \ conf \ extra \ httpd-vhosts.conf, open
Last added
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
2017127.0.0.1 localhost 127.0.0.1 www.zhosoft.com 2. find the C: \ wamp \ bin \ apache \ apache2.2.22 \ conf \ httpd. conf file and open # Virtual hosts #...