EC2 Linux 2 - Refused to Connect

0

Hello,

I am facing a problem in my Linux 2 EC2 instance. After the httpd is installed and set to start at boot, the docs recommend going to the public DNS to check for the Apache Test Page. However, when I try that, all I get is ERR_CONNECTION_REFUSED and ERR_CONNECTION_TIMEOUT. How do I proceed? I have tried deleting and starting fresh in a new instance. Same problem.

Currest public DNS: https://ec2-3-143-221-217.us-east-2.compute.amazonaws.com/

What do I do?

Thanks in advance.

preguntada hace 3 años1392 visualizaciones
5 Respuestas
0

Hello, Orectique

I would suggest you checking the security group used by your EC2 in order to guarantee that incoming traffic from internet to HTTP (80) or HTTPS (443) are allowed.

SG: Inbound - HTTP/HTTPS - 0.0.0.0/0 or Your Public IP

Note.: Be careful in allowing internet traffic directly to your application/web server.

I hope that can help you.

Have a good one.

respondido hace 3 años
0

Hello, Orectique

I would suggest you checking the security group used by your EC2 in order to guarantee that incoming traffic from internet to HTTP (80) or HTTPS (443) are allowed.

SG: Inbound - HTTP/HTTPS - 0.0.0.0/0 or Your Public IP

Note.: Be careful in allowing internet traffic directly to your application/web server.

I hope that can help you.

Have a good one.

respondido hace 3 años
0

Hey there,

Thank you for your reply. I have tried the security group inbound rules correction multiple times. It is currently set to ports 22, 80, and 443 at 0.0.0.0/0.

That is the problem. I've done everything as the documentation suggests.

respondido hace 3 años
0

Hi Orectique,

From my understanding you would need to go to http://ec2-3-143-221-217.us-east-2.compute.amazonaws.com/ in order to view your public DNS to check for the Apache Test Page (when I did that now it worked). The previous one you were attempting to connect to was HTTPS. If you have not secured your site with an SSL/TLS certificate you can get the error you were.

I hope this helps!

amz99
respondido hace 3 años
0

That works. Thank you.

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas