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.

gefragt vor 3 Jahren1391 Aufrufe
5 Antworten
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.

beantwortet vor 3 Jahren
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.

beantwortet vor 3 Jahren
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.

beantwortet vor 3 Jahren
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
beantwortet vor 3 Jahren
0

That works. Thank you.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen