码迷,mamicode.com
首页 > Web开发 > 详细

wampserver设置网站文件路径,虚拟域名访问

时间:2015-03-03 09:50:35      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

文件:httpd.conf

@开启虚拟hosts

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

文件:httpd-vhosts.conf

@配置虚拟主机

<VirtualHost *:80>
DocumentRoot "E:/www/pz"
ServerName to.pz.com
<Directory "E:/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order deny,allow
Allow From All
Require all granted
</Directory>
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

@修改host

127.0.0.1       to.pz.com

wampserver设置网站文件路径,虚拟域名访问

标签:

原文地址:http://www.cnblogs.com/decsev/p/4310176.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!