2017-07-06 76 views
1

我設置了本地主機,它在macos sierra上正常工作。我無法訪問Android中的本地主機

localhost/~username 

但現在我想從瀏覽器Chrome的存取權限上我的Android

192.168.x.x/~username 

,並得到了這個消息。

Forbidden. You don't have permission to access /~username from this server 

我的手機和mac連接到相同的wifi。

而且還編輯httpd.conf

<Directory /> 
    AllowOverride All 
    Require all granted 
</Directory> 

而且it's不工作。

回答

0

打開終端並輸入以下命令:

chmod 777 parent_directory/localhost 
+0

我試過和不工作,該目錄是這個「/用戶/用戶名/網站/」 –

相關問題