2 zbl100911063 zbl100911063 于 2014.06.11 12:10 提问

wampserver集成环境中配置虚拟主机总是出现403Forbidden

页面错误提示
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at www.myshop.com Port 80

我按照经验修改过的地方:

1.在httpd.conf加载hosts模块
# Virtual hosts
Include conf/extra/httpd-vhosts.conf**

2.在httpd.conf中修改访问控制
# onlineoffline tag - don't remove
#Require all granted
Order Deny,Allow
Allow from all

3.在httpd.vhosts中添加虚拟配置

#项目根目录
DocumentRoot "E:/shop"
ServerName www.myshop.com

Allow from all

4.在hosts文件中添加地址
127.0.0.1 www.myshop.com

然后在浏览器中输入www.myshop.com,出现403错误,差了很多网上的修改方案,但还是无法访问,想问问大牛,我还有哪个细节没有做到

第3条没显示完整

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!