xmapp 虚拟主机权限问题

在 Windows 7上安装了个 **ApacheFriends XAMPP Version 3.22 **,浏览网站时出现如下错误:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
127.0.0.11
Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/7.06

提示权限有问题,解决方法如下:
打开 **httpd.conf **,找到
<Directory /> AllowOverride none Require all denied</Directory>
修改为:
<Directory /> AllowOverride All Require all granted</Directory>
重启下 Apache,问题解决!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容