首页 > 代码库 > HTTP错误:Forbidden You don't have permission to access …… on this server.

HTTP错误:Forbidden You don't have permission to access …… on this server.

1.出现这种错误,一般用的web服务器是Apache

2.找到:apache配置文件,打开httpd.conf 文件,做如下修改:

   第一处:找到

    <Directory />

      Options FollowSymLinks

      AllowOverride None

      Order deny,allow

      Deny from all

      Satisfy all

    </Directory>

    修改成

    <Directory />

      Options FollowSymLinks

      AllowOverride All

      Order deny,allow

      #   Deny from all

      Allow from all

      #允许所有访问

      Satisfy all

    </Directory>

  第二处:找到:

      #   onlineoffline tag - don‘t remove

      Order Deny,Allow

      Deny from all

      Allow from 127.0.0.1

    </Directory>

    修改成:

     #   onlineoffline tag - don‘t remove

     Order Deny,Allow

     #   Deny from all

     #   Allow from 127.0.0.1

     Allow from all

   </Directory>

3.重启Apache服务。


本文出自 “高防服务器销售,自带运维” 博客,请务必保留此出处http://kenvik.blog.51cto.com/11000054/1858409

HTTP错误:Forbidden You don't have permission to access …… on this server.