【发布时间】:2013-02-22 04:59:28
【问题描述】:
我不确定 stackoverflow 是否也允许服务器配置问题,但由于这可能与 apache 有关,我希望有人能提供帮助。我正在尝试设置我的云服务器以允许端口 80 上的传入连接,以便当我在浏览器中输入 http://domain.com 时可以看到我的服务器文件。 Apache 已安装,我目前正忙于设置我的 iptables(我怀疑这可能是问题所在)。
我目前的iptables如下:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host- prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host- prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
因为这是我的第一次尝试(我的网络体验与 MS 机器上的 GUI 提供的功能一致)我不确定我是否正确地做到了。
有什么想法吗?
【问题讨论】: