解决问题 “You don't have permission to access /index.html on this server.”
来源:互联网 发布:艾媒咨询知乎 编辑:程序博客网 时间:2024/06/06 06:21
原文地址:http://www.cnblogs.com/longhs/p/3558201.html
前几天装一个linux 企业版5.0安装了apache,打开测试页面的时候出现如下错误:
ForbiddenYou don't have permission to access /index.html on this server.
开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了.
原因:index.html是用root用户建的文件,apache权限不够。
解决方法:更改文件权限;chmod 755 index.html
如果是WIN 2003下出现这个问题,请按以下方式解决
打开apache配置文件httpd.conf,找到这么一段:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
Satisfy all
</Directory>
然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后再一测试我的网页,哈哈!居然问题就出在这,访问测试网站完全正常了。
第二种方法
是Apache 的配置文件httpd-vhosts.conf里,打开了扩展配置
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
前面的#去掉了,就 引入了扩展配置,而扩展配置 文件里又没配好相应 的权限“Allow from all”,所以提示此错误
阅读全文
0 0
- 解决问题 “You don't have permission to access /index.html on this server.”
- 解决问题 “You don't have permission to access /index.html on this server.”
- You don't have permission to access / on this server
- You don't have permission to access /*** on this server
- You don't have permission to access / on this server.
- You don't have permission to access on this server.
- You don't have permission to access / on this server.
- You don't have permission to access ××× on this server.
- You don't have permission to access / on this server
- You don't have permission to access / on this server.
- You don’t have permission to access/on this server
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- 访问 apache 显示 Forbidden You don't have permission to access /index.html on this server. 解决方法
- You don't have permission to access /index.php on this server.
- apache报错You don't have permission to access /test/index.php on this server.
- phpMyAdmin You don't have permission to access /phpMyAdmin/index.php on this server. 解决
- CI框架 insert_batch方法 返回-1,插入的数据不全
- C++学习笔记之MFC改变按钮颜色
- 找工作小结
- Java连接Sql Server 2008的简单数据库应用
- Spring Data Jpa+Hibernate 入门2
- 解决问题 “You don't have permission to access /index.html on this server.”
- jquery 选择器的使用
- log4j2示例
- Oracle热备-自动化批处理文件
- 图论+前缀和 任(duty)
- Java为什么把String设计成不可变的?
- 类的定义之课堂练习1
- Bagging与随机森林
- Dubbo配置以及使用总结2