2017-07-06 78 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

我试过和不工作,该目录是这个“/用户/用户名/网站/” –

相关问题