我能';无法在Android中访问本地主机
我设置了一个本地主机,它在macos sierra上运行良好我能';无法在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
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/”