問題
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>