解决问题 “You don't have permission to access /index.html on this server.”

配置apache2

Forbidden

You don't have permission to access /index.html on this server.

可以先看看权限index.html

解决方法:更改文件权限;chmod 755 index.html

还有问题的话,可以。。。。

打开apache配置文件httpd.conf,找到这么一段:
<Directory />
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     deny from all
     Satisfy all
</Directory>
然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后再一测试我的网页,哈哈!居然问题就出在这,访问测试网站完全正常了。

 

posted @ 2016-03-28 17:07  崔志朋  阅读(20881)  评论(0编辑  收藏  举报