首页 > 代码库 > WAMP_多站点_多域名_VHOSTS
WAMP_多站点_多域名_VHOSTS
一.E:\wampserver\bin\apache\Apache2.2.21\Apache2.2.21\conf\httpd.conf
找到:
# onlineoffline tag - don‘t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
改为:
# onlineoffline tag - don‘t remove
Order Deny,Allow
Deny from all
Allow from all
找到:#Include conf/extra/httpd-vhosts.conf
改为:Include conf/extra/httpd-vhosts.conf
二.E:\wampserver\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf
添加:
<VirtualHost *:80>
DocumentRoot "E:/wampserver/www"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "E:/wampserver/www/Tktest"
ServerName www.tktest.com
</VirtualHost>
三.C:\Windows\System32\drivers\etc\host
添加:
127.0.0.1 www.tktest.com
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。