Wamp環境下,手機端訪問localhost

問題

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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章