Apache禁止访问页面

来源:互联网 发布:为知笔记 编辑:程序博客网 时间:2024/05/01 13:18

      在浏览自己的网站时,Apache服务器竟然返回403错误,如下所示:

      403 Forbidden

Forbidden

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

 

问题出在哪里呢,肯定是httpd.conf中的配置问题了哦。查看配置文件,好像都正确哦,突然发现了下面的配置:

 

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

 

 Deny 不是否认拒绝的意思吗!呵呵,抓紧把这句给去掉,重新配置如下:

 

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    #Deny from all
</Directory>

 

重启apac服务器,浏览页面。终于看到了我的页面,呵呵!!