我正在尝试使用Ionic的Devapp测试手机上的某些功能。我认为WAMP不允许请求通过我的虚拟服务器进行访问。我将WAMP 3.1.3与Apache 2.4一起使用,并且我认为它的配置正确,但是仍未收到请求。我正在使用Windows 10,并试图关闭防火墙并允许通过防火墙访问,但是我仍未达到预期的效果,我想知道是否有人对我有任何建议,请听取我提供的特定端口的建议。离子服务器,Devapp与Wamp一起使用。它是一部电话,这有什么区别吗?感谢您的帮助。
hostd.conf
Listen 0.0.0.0:80
Listen [::0]:80
Listen 0.0.0.0:8001
Listen [::0]:8001
Httpd-vhosts.conf
<VirtualHost 127.1.2.3:80>
ServerName sam
DocumentRoot "c:/wamp64/www/x/public "
<Directory "c:/wamp64/www/x/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:8001>
ServerName example.dev
DocumentRoot "c:/wamp64/www/x/public"
<Directory "c:/wamp64/www/x/public">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168
</Directory>
</VirtualHost>
答案 0 :(得分:0)
Require ip
的格式未使用x
,x.y
部分
只需使用
Require ip 192.168
这意味着任何以192.168
开头的IP
因此,如果您的路由器使用的是192.168.1.*
,请使用
Require ip 192.168.1
表示该子网上从192.168.1.1
到192.168.1.255
的任何ip
此答案也可能有助于connecting from your phone