Apache se está ejecutando correctamente en mi servidor, cuando hago un ping en la dirección del servidor solo obtengo lo siguiente
PING 45.56.87.123 (45.56.87.123) 56(84) bytes of data
nada de mi sitio se está cargando, tengo algo ficticio http://45.56.87.123/test/index.html
pero ni siquiera puedo acceder a la página allí,
mis 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
¿Alguna ayuda sobre cómo puedo hacer que el servidor funcione correctamente?
Respuesta1
Como no puedo agregar un comentario (baja reputación), intentaré pegar la respuesta. Básicamente, la conexión a su servidor se está agotando:
$ 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
Según las iptables
reglas que veo arriba, no he notado nada malo, por lo que puedes intentar verificar primero si tu servicio está escuchando en ese puerto:
lsof -i :80
lsof -i :443
Si no, ahí está tu problema. En caso afirmativo, sigue teniendo un problema con el firewall, por lo que puede intentar reiniciar iptables
. Además, ¿qué sistema operativo estás usando?
¿Está funcionando la conexión desde localhost? Como:
curl http://45.56.87.123/test/index.html
o
nc -vz 127.0.0.1 80
nc -vz 127.0.0.1 443