Apache od)。 配置类似于Windows 10、WAMP 2.4.23、PHP网站和我的手机在andriod上运行。我的手机和电脑都连接到同一个wifi
我可以在我的电脑上使用url或url打开我的网站。我的pc ip是192.168.0.1(比如说),我的移动ip是192.168.0.2(比如说),两者都连接在同一个wifi上 我尝试了所有设置,比如更改httpd.conf、httpd-vhosts.conf,结果发现我只需要禁用防火墙。当然,完全禁用防火墙不是一个好主意。我的电脑上正在运行avast antivirus。如果我在过去一个小时左右检查防火墙日志,我可以看到我的移动ip试图连接到我电脑上运行的网站。所需的只是在avast UI中创建一个新规则,允许从我的移动ip连接,从而添加一个例外Apache od)。 配置类似于Windows 10、WAMP 2.4.23、PHP网站和我的手机在andriod上运行。我的手机和电脑都连接到同一个wifi,apache,localhost,easyphp,Apache,Localhost,Easyphp,我可以在我的电脑上使用url或url打开我的网站。我的pc ip是192.168.0.1(比如说),我的移动ip是192.168.0.2(比如说),两者都连接在同一个wifi上 我尝试了所有设置,比如更改httpd.conf、httpd-vhosts.conf,结果发现我只需要禁用防火墙。当然,完全禁用防火墙不是一个好主意。我的电脑上正在运行avast antivirus。如果我在过去一个小时左右检查防火墙日志,我可以看到我的移动ip试图连接到我电脑上运行的网站。所需的只是在avast UI中创
希望这对某人有所帮助。您的防火墙不允许任何新连接在未经您同意的情况下共享信息。唯一要做的就是同意你的防火墙
就这样。现在,连接在同一网络上的另一台PC和手机可以访问本地站点。让我们开始开发。EasyHP在哪个端口上运行?服务器上有防火墙吗?正如您所评论的,下面的一张海报足以解决这个问题-请将该答案标记为已接受的答案。非常感谢。这有帮助。我让它运行起来了。:)@鸭嘴兽。。我在配置中没有找到httpd.conf。你能告诉我在哪里可以找到这个文件吗。我也有同样的问题。@s_k_\t注意更新的apache 2.4中的ports.conf请在安装后在哪里找到虚拟主机?我检查了EasyHP文件夹,但没有看到它。@s_k_t-尝试查找apache2.conf,而不是由“侦听”设置决定的(见上文)。Listen 127.0.0.l:80->仅本地主机Listen*:80->所有网络接口建议改进不要完全禁用防火墙,因为这是一个巨大的安全风险。@Sandepgaadh不一定是一个风险,例如,可以使用硬件防火墙保护整个网络。
Listen *:80
NameVirtualHost *
<VirtualHost *>
...
</VirtualHost>
Listen *:80
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Deny from all
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
<Directory "cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
</Directory>
<Directory "icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>