最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
apache配置虚拟主机方法
时间:2022-06-25 00:27:39 编辑:袖梨 来源:一聚教程网
如果你安装的是 wamps教程erver 集成的 那你就进入wampbinapacheapache2.2.11confextrahttpd-vhosts.conf 配置文件
进行如下配置: 意思是配置3个虚拟主机 ,分别是
1 website.localhost:8080 c:usersn.zhangdocumentswebsitedhr3
2 tools.localhost:8080 c:usersn.zhangdocumentstools
3 test.localhost:8080 c:testphp教程public
//////////////////////////////
servername website.localhost
serveradmin
documentroot "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
servername tools.localhost
serveradmin
documentroot "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
servername test.localhost
serveradmin
documentroot "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
相关文章
- 悠星大陆深渊乱斗怎么玩 深渊乱斗玩法介绍 07-31
- 《遥遥西土》峡谷唱片全收集攻略分享 07-31
- 王者荣耀英雄技能攻略(掌握技能,成就传奇王者) 07-31
- DDR4-3600 vs DDR5-5600游戏实测:低延迟与高带宽谁更适合游戏 07-31
- PS6光追性能暴涨10倍 AI与高刷新率或成主打 07-31
- 灌篮军团满级的零怎么培养 满级的零培养一览 07-31