Solaris 11上的Apache:来自localhost的连接工作,远程主机的连接被对等方重置

时间:2011-12-14 04:22:08

标签: apache configuration solaris

我在Solaris 11上配置了apache2服务器,这似乎运行良好,因为它在localhost上访问时显示正确的行为。但是,任何远程连接都由对等方重置。我已经禁用ipfilter防火墙无济于事。来自端口80上的远程主机的telnet连接工作正常,但是:

$ telnet myserver.com 80
Trying xxx.xxx.xxx.xxx...
Connected to myserver.com.
Escape character is '^]'.
GET /
<html><body><h1>It works!</h1></body></html>Connection closed by foreign host.

使用curl,我遇到了“peer by peer reset”错误:

$ curl http://myserver.com
curl: (56) Recv failure: Connection reset by peer

我完全不知道在哪里寻找修复......任何提示都非常感谢!服务器操作系统的配置是“开箱即用”安装,Apache安装也是如此(虽然我使用openCSW中的apache,但这并没有什么区别)。是否有任何安全上下文过滤来自远程主机的http连接,我可以查看一下?谢谢你的帮助!

1 个答案:

答案 0 :(得分:0)

您是否可以检查apache配置文件以查看它是否正在侦听“localhost”?检查Listen或BindAddress指令。另请尝试查看http://ip_address是否有效。