apache服务器:You don’t have permission to access this resource.

找到配置文件:httpd.conf

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

修改为:

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