问题描述
- 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 DenyAllow
Allow from all3.在httpd.vhosts中添加虚拟配置
#项目根目录
DocumentRoot ""E:/shop""
ServerName www.myshop.comAllow from all
4.在hosts文件中添加地址
127.0.0.1 www.myshop.com然后在浏览器中输入www.myshop.com出现403错误,差了很多网上的修改方案,但还是无法访问,想问问大牛,我还有哪个细节没有做到
第3条没显示完整
时间: 2025-01-29 18:38:33