码迷,mamicode.com
首页 > 数据库 > 详细

apache 访问默认页面及 you don't have permission to access / on this server”问题

时间:2015-05-11 22:03:21      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:linux   apache   http服务器   access   

问题一:
技术分享技术分享

说明http服务器没有问题  ,

 找到文件所在的位置   rm -rf /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html  删掉即可。

问题二:
       1、 通过apachectl -t 检测配置文件也没有问题
       2、查看.conf 文件的   Allow from all
       3、查看http.conf 文件中指定的用户和组的访问权限  解决链接          http://wiki.apache.org/httpd/13PermissionDenied    
       4、  如果还是没有解决问题 那就需要查看扩展的访问权限
              使用setenforce 0关闭SELinux,看是否解决问题。

                我遇到的问题是http.conf文件中所指定的用户没有访问项目所在目录的权限。

apache 访问默认页面及 you don't have permission to access / on this server”问题

标签:linux   apache   http服务器   access   

原文地址:http://blog.csdn.net/csdn_ndx/article/details/45648065

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!