作者:东张西望 | 来源:互联网 | 2014-06-17 10:53
如果你安装的是wampserver集成的,那你就进入wampbinapacheapache2211confextrahttpd-vhostsconf配置文件进行如下配置:意思是
如果你安装的是 wampserver 集成的,那你就进入
wampbinapacheapache2.2.11confextrahttpd-vhosts.conf 配置文件进行如下配置: 意思是配置3个虚拟主机 ,分别是
1、website.localhost:8080 c:usersn.zhangdocumentswebsitedhr3
-
- servername website.localhost
- serveradmin webmaster@test.tools.directhr.net
- documentroot "c:usersn.zhangdocumentswebsitedhr3"
- "c:usersn.zhangdocumentswebsitedhr3">
- options indexes multiviews followsymlinks
- allowoverride all
- order allow,deny
- allow from all
-
-
- errorlog "logs/test.tools.directhr.net-error.log"
- customlog "logs/test.tools.directhr.net-access.log" common
-
2、tools.localhost:8080 c:usersn.zhangdocumentstools
-
- servername tools.localhost
- serveradmin webmaster@test.tools.directhr.net
- documentroot "c:usersn.zhangdocumentstools"
- "c:usersn.zhangdocumentstools">
- options indexes multiviews followsymlinks
- allowoverride all
- order allow,deny
- allow from all
-
-
- errorlog "logs/test.tools.directhr.net-error.log"
- customlog "logs/test.tools.directhr.net-access.log" common
-
3、test.localhost:8080 c:testphppublic
-
- servername test.localhost
- serveradmin webmaster@test.tools.directhr.net
- documentroot "c:testphppublic"
- "c:testphppublic">
- options indexes multiviews followsymlinks
- allowoverride all
- order allow,deny
- allow from all
-
- errorlog "logs/test.tools.directhr.net-error.log"
- customlog "logs/test.tools.directhr.net-access.log" common
-
还有件重要的事情是配置c:windowssystem32driversetchosts