1.打开httpd.conf文件(路径为:wamp\bin\apache\apache2.4.9\conf\httpd.conf)
2.将“httpd.conf”下240行处的:
<Directory />
AllowOverride none
Require all denied
</Directory>
修改为
<Directory />
AllowOverride none
#Require all denied
Require all granted
</Directory>
# onlineoffline tag - don't remove
Require local
</Directory>
修改为:
# onlineoffline tag - don't remove
Require local
Require all granted
</Directory>
实际上就是在“Require local”下面增加一条配置“Require all granted”,保存后退出
4.重启Wmapserver