找到 apache 配置文件 "httpd.conf"找到如下代码块:
<Directory />AllowOverride AllRequire all denied
</Directory>内容可能如下: //内容可能存在差异
<Directory />Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from all
</Directory>需要修改:Deny from all //拒绝了一切连接或Require all denied //拒绝所有访问修改如下:
Require all denied => Require all granted
Deny from all => Allow from all