外部 IP 上的来自 LAN 或本地主机的 Apache 连接挂起

外部 IP 上的来自 LAN 或本地主机的 Apache 连接挂起

我在路由器后面的 Ubuntu 机器上安装了 Virtualmin。我的服务器在 上运行192.168.1.220,超出 DHCP 范围和我的外部 IP 地址,假设它是123.123.123。我在端口 80 (tcp) 和 53 (tcp/udp) 等上设置了端口转发。我有几个名称服务器和一个托管在此机器上的域,假设 example.com 可以通过远程连接顺利运行(这不是我的第一台服务器)。

http://example.com但是,当我尝试使用( 或)从本地主机或局域网连接到服务器时http://123.123.123.123,它会连接并等待服务器响应... 并且永远不会停止。没有断开连接,什么都没有。

我注意到的唯一区别是之前的机器运行的是 Apache 2.2,而这个机器运行的是 Apache 2.4。

root@ns1:~# wget example.com
--2014-12-17 11:24:05--  http://example.com/
Resolving example.com (example.com)... 123.123.123.123
Connecting to example.com example.com)|123.123.123.123|:80... connected.
HTTP request sent, awaiting response...

因此,过了一会儿,我停止了它。命中记录在 apache access_log 中,但 error_log 中没有错误。

123.123.123.123 - - [17/Dec/2014:11:37:57 +0200] "GET / HTTP/1.1" 302 435 "-" "Wget/1.15 (linux-gnu)"

在局域网 IP 上:

root@ns1:~# wget 192.168.1.220
--2014-12-17 11:33:58--  http://192.168.1.220/
Connecting to 192.168.1.220:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://192.168.1.220/ro/ [following]
--2014-12-17 11:33:58--  http://192.168.1.220/ro/
Reusing existing connection to 192.168.1.220:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.2’

请注意,重定向是故意的,该网站有罗马尼亚语的国际版本,因此是 302 重定向。

我甚至不知道要把什么配置文件放在这里。请问有没有人...

多谢!

相关内容