XAMPP集成PHP环境 访问页面报错 Access forbidden! Error 403错误解决方法

错误提示如下:

Access forbidden!

You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

您没有权限访问所请求的对象。它是read-protected或无法读取服务器。

解决方法:

1、修改Apache的配置文件httpd.conf

找到:

<Directory />
    AllowOverride none
    Require all denied
</Directory>

改成:

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

2、重启Apache服务!!!

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
评论 抢沙发

请登录后发表评论