If you have installed wampserver integration, go to the Wamp \ bin \ apache \ apache2.2.11 \ conf \ extra \ httpd-vhosts.conf configuration file.
Configure three virtual hosts as follows:
1 website. localhost: 8080 c: \ Users \ n. Zhang \ Documents \ website \ dhr3
2 tools. localhost: 8080 c: \ Users \ n. Zhang \ Documents \ tools
3 test. localhost: 8080 c: \ testphp \ public
//////////////////////////////
<Virtualhost *: 8080>
Servername website. localhost
Serveradmin webmaster@test.tools.directhr.net
DocumentRoot "C: \ Users \ n. Zhang \ Documents \ website \ dhr3"
<Directory "C: \ Users \ n. Zhang \ Documents \ website \ dhr3">
Options indexes Multiviews followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
Errorlog "logs/test.tools.directhr.net-error. log"
Customlog "logs/test.tools.directhr.net-access. log" common
</Virtualhost>
<Virtualhost *: 8080>
Servername tools. localhost
Serveradmin webmaster@test.tools.directhr.net
DocumentRoot "C: \ Users \ n. Zhang \ Documents \ tools"
<Directory "C: \ Users \ n. Zhang \ Documents \ tools">
Options indexes Multiviews followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
Errorlog "logs/test.tools.directhr.net-error. log"
Customlog "logs/test.tools.directhr.net-access. log" common
</Virtualhost>
<Virtualhost *: 8080>
Servername test. localhost
Serveradmin webmaster@test.tools.directhr.net
DocumentRoot "C: \ testphp \ public"
<Directory "C: \ testphp \ public">
Options indexes Multiviews followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
Errorlog "logs/test.tools.directhr.net-error. log"
Customlog "logs/test.tools.directhr.net-access. log" common
</Virtualhost>
Another important thing is to configure c: \ windows \ system32 \ drivers \ etc \ hosts
Paste the following content.
127.0.0.1 tools. localhost
127.0.0.1 website. localhost
127.0.0.1 test. localhost