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

RXP893 2017-02-07 03:06:10
网站拒绝显示此网页 HTTP 403 最可能的原因是: 此网站要求您登录。
如题。(英文提示 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.jingxian.com
问题是当我在浏览器输入 http://www.jingxian.com 即出现错误如题
p.s 缓存已经清理; 所有用户账号full control;另我的电脑没设开机密码。
问题到底出在哪里?

小弟不才,如叙述上有含糊不清的地方还望指出,我修改后再上传,直到问题解决为止!!谢谢各位
...全文
3731 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
任星喵 2020-04-21
  • 打赏
  • 举报
回复
说用绝对路径的,c:/Apache24/htdocs难道不是配置的绝对路径?
RXP893 2017-02-09
  • 打赏
  • 举报
回复
走了很多弯路实在没办法才来这求助。现在问题完美解决,非常感谢您~!
komyluo 2017-02-08
  • 打赏
  • 举报
回复
directory 用绝对路径

21,890

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧