O Apache está rodando corretamente no meu servidor, quando estou fazendo um ping no endereço do servidor estou recebendo apenas o seguinte
PING 45.56.87.123 (45.56.87.123) 56(84) bytes of data
nada do meu site está carregando, tenho algo fictício, http://45.56.87.123/test/index.html
mas não consigo nem acessar a página lá,
meu iptables:
[root@localhost test]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere loopback/8 reject-with icmp-port-unreachable
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT icmp -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix "iptables denied: "
DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
alguma ajuda sobre como posso fazer o servidor funcionar corretamente?
Responder1
Como não consigo adicionar um comentário (baixa reputação), tentarei colar a resposta. Basicamente, a conexão com o seu servidor está expirando:
$ nc -vz 45.56.87.123 443
nc: connect to 45.56.87.123 port 443 (tcp) failed: Connection timed out
$ nc -vz 45.56.87.123 80
nc: connect to 45.56.87.123 port 80 (tcp) failed: Connection timed ou
Pelas iptables
regras que vejo acima, não notei nada de errado, então você pode tentar verificar primeiro se o seu serviço está escutando nessa porta:
lsof -i :80
lsof -i :443
Se não, então o problema é seu. Se sim, você terá um problema de firewall, então pode tentar reiniciar o iptables
. Além disso, qual sistema operacional você está usando?
A conexão do localhost está funcionando? Como:
curl http://45.56.87.123/test/index.html
ou
nc -vz 127.0.0.1 80
nc -vz 127.0.0.1 443