问题
Wamp环境下,手机端访问localhost报错,提示:
Wamp forbidden you don’t have permission to access / on this server
答案
在 C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf 找到httpd.conf,
用Notepad++打开,
查找Require,将Require all denied和Require local改为Require all granted
注意:下面这个不用改,只修改Directory标签内的
<Files ".ht*">
Require all denied
</Files>