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.

질문됨 3년 전1392회 조회
5개 답변
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.

답변함 3년 전
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.

답변함 3년 전
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.

답변함 3년 전
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
답변함 3년 전
0

That works. Thank you.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠