注册 登录
编程论坛 PHP技术论坛

网站拒绝显示此网页 HTTP 403 最可能的原因是: 此网站要求您登录。

湿一夜的小棒 发布于 2017-02-06 14:53, 3598 次点击
如题。(英文提示 Forbidden  You don't have permission to access / on this server)
php,mysql5.6和apache2.4搭配环境亲测没有问题。虚拟主机配置如下:
1,apache2.4/conf/httpd-conf
# Virtual hosts
  Include conf/extra/httpd-vhosts.conf//虚拟主机启用;
# DocumentRoot "c:/Apache24/htdocs" //原路径关闭
<Directory "c:/Apache24/htdocs">

2,apache2.4confextrahttpd-vhosts.conf

<VirtualHost 127.0.0.1:80>
DocumentRoot "f:/web"
DirectoryIndex jingxian.html index.html index.htm index.php
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

3,c:windowssystem32driveretchosts

# localhost name resolution is handled within DNS itself.
#    127.0.0.1           localhost
#    ::1              localhost
     127.0.0.1       www.
问题是当我在浏览器输入 http://www. 即出现错误如题
p.s 缓存已经清理; 所有用户账号full control;另我的电脑没设开机密码。
问题到底出在哪里?

小弟不才,如叙述上有含糊不清的地方还望指出,我修改后再上传,直到问题解决为止!!谢谢各位
0 回复
1