Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/221.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我能';无法在Android中访问本地主机_Android_Apache_Localhost - Fatal编程技术网

我能';无法在Android中访问本地主机

我能';无法在Android中访问本地主机,android,apache,localhost,Android,Apache,Localhost,我设置了一个本地主机,它在macos sierra上运行良好 localhost/~username 但现在我正试图在我的Android上从Chrome浏览器访问 192.168.x.x/~username 我收到了这个信息 Forbidden. You don't have permission to access /~username from this server 我的手机和mac电脑连接到同一个wifi 并编辑httpd.conf <Directory /> A

我设置了一个本地主机,它在macos sierra上运行良好

localhost/~username
但现在我正试图在我的Android上从Chrome浏览器访问

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>

允许超越所有
要求所有授权

并且它不工作。

打开终端并键入以下命令:

chmod 777 parent_directory/localhost

我试过了,但没有成功,目录是“/Users/username/Sites/”