无法使用 IP 从网络访问 WAMP 站点 [英] Can't access WAMP site from the web with IP

查看:32
本文介绍了无法使用 IP 从网络访问 WAMP 站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 apache 2.4.2 和 php 5.4.3 运行最新版本的 wampserver.在 Windows 2008 上.

I'm running the latest version of wampserver with apache 2.4.2 and php 5.4.3. on Windows 2008.

我正在运行两个 ip,一个用于 iis,一个用于 apache.我通过添加

I'm running two ip's, one for iis and one for apache. I did that by adding

听 123.456.78.999:80听 80

Listen 123.456.78.999:80 Listen 80

在 httpd.conf 中.我还在两者中将需要本地"切换为需要全部授予"

in httpd.conf. I also switched 'require local' to 'require all granted' in the of both

'ServerName localhost:80' 和 'DocumentRoot "c:/wamp/www/"'.

'ServerName localhost:80' and 'DocumentRoot "c:/wamp/www/"'.

在本地浏览器中输入ip后,就可以访问了.但是当我从网络/外部浏览器输入它时,浏览器找不到服务器并且超时.端口 80 被转发,因为我可以访问我的 IIS 站点.

When entering the ip in the local browser, I get access. But when I enter it from the web/external browser, the browser cant find the server and just times out. Port 80 is forwarded, as I can access my IIS sites.

我还需要做些什么才能让我的 wamp 上线?

Is there anything else I should be doing to put my wamp online?

提前致谢!

推荐答案

Annnd 罪魁祸首是....Windows 防火墙.我认为情况并非如此,因为 apache 和 iis 都使用相同的端口 (80),但事实证明,只有 iis 规则允许流量进入端口 80!所以我添加了一个新的入站规则,打开了 80 端口,瞧,现在一切正常!

Annnd the culprit was....Windows firewall. I thought that wouldn't be the case because apache and iis were both using the same port (80), but it turns out that there is an iis-only rule allowing traffic coming in on port 80! So I added a new inbound rule opening port 80, and voila, now everything works!

这篇关于无法使用 IP 从网络访问 WAMP 站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆