用手機訪問wampserver出現「沒有權限訪問」解決方法

安裝好wamp後,想用手機經過局域網訪問電腦上wamp/www目錄下的網頁,結果出現以下提示。服務器

Forbiddenui

You don't have permission to access/on this server.this

解決以下:spa

1.打開http.conf文件.net

2.找到server

<Directory "E:/wamp/www/">
    ..........(中間部分省略)
  
#   onlineoffline tag - don't remove
       Require local
</Directory>blog

把Require local替換成Require all granted,重啓服務器。ip

注意幾種經常使用格式,本身能夠靈活配置:rem

Require local 僅容許本地訪問; io

Require all denied 拒絕全部訪問;

Require all granted 容許全部訪問;

Require ip 192.168.0.1 僅容許IP192.168.0.1 訪問;

Require not ip 192.168.0.1 僅禁止IP192.168.0.1訪問;

 

 

轉自:http://blog.csdn.net/tongbiaos/article/details/52811439

相關文章
相關標籤/搜索