不灭的火

加密类型:SHA/AES/RSA下载Go
复合类型:数组(array)、切片(slice)、映射(map)、结构体(struct)、指针(pointer、函数(function)、接口(interface)、通道(channel) Go类型
引用类型:切片(slice)、映射(map)、指针(pointer、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2015-03-07 19:09:53  修改时间:2025-11-11 14:06:47  分类:04.Nginx网关  编辑

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

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/5.4.31

 提示权限有问题,解决方法如下:

打开 httpd.conf,找到

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

修改为:

<Directory />
    AllowOverride All
    Require all granted
</Directory>

重启下 Apache,问题解决!