Configuration Can';t在将端口更改为非80后访问apache

Configuration Can';t在将端口更改为非80后访问apache,configuration,virtualhost,apache,Configuration,Virtualhost,Apache,我不知道怎么了,我刚刚更改了/etc/httpd/conf/httpd.conf,现在我无法从非环回地址访问它 更改后: Listen 2999 <VirtualHost *:*> DocumentRoot "/var/www/html" </VirtualHost> 我可以使用nclocalhost 2999或w3m 但我无法使用我的ip或dns访问2999端口。我可以使用我的ip或DNS访问其他端口 我不知道怎么了。Iptables没有阻塞该端口 编辑:好的

我不知道怎么了,我刚刚更改了/etc/httpd/conf/httpd.conf,现在我无法从非环回地址访问它

更改后:

Listen 2999
<VirtualHost *:*>
    DocumentRoot "/var/www/html"
</VirtualHost>
我可以使用
nclocalhost 2999
w3m

但我无法使用我的ip或dns访问2999端口。我可以使用我的ip或DNS访问其他端口

我不知道怎么了。Iptables没有阻塞该端口


编辑:好的,iptables实际上阻塞了那个端口。我尝试了
服务停止iptables
,我可以访问它。

如果您使用的是外部路由器,您应该将新端口转发到服务器


如果您没有使用外部路由器,请确保您没有将iptables配置为仅接受来自本地主机的连接。

系统管理问题属于wireshark或tcpdump,尚未查看可能发生的情况?不,我看不到发生的情况。但我可以访问我创建的其他端口。只是httpd不起作用
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE NODE NAME
httpd   23989   root    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24001 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24002 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24003 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24004 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24005 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24006 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24007 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)
httpd   24008 apache    4u  IPv4 27581116       TCP *:remoteware-un (LISTEN)