Cannot connect to web server with public IP address.

0

I have an EC2 instance that I've installed Apache (HTTPD) on. I can get the server running on the instance, yet when I try to access the public IP address from the console, I get the "Took to long to respond" page.

For testing purposes, I made my instance apart of a security group where the inbound rules allow all traffic from any source, yet I still can't connect to the server.

Mike
질문됨 한 달 전184회 조회
2개 답변
1
수락된 답변

Just to be sure, have you checked by typing from "http://" into your browser?

Sometimes, as is the case when using the open address of the Management Console, you are unintentionally accessing the site via https.

profile picture
전문가
shibata
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전
  • Wowww... and just like that, it worked. Why I didn't think of that; I should've known that!

    Thank you!

0

Hello.

Is Apache running on EC2?
If you are using Amazon Linux 2023, you can check whether Apache is running with the following command.

sudo systemctl status httpd

If it is not started, run the following command to start it.
Also, by running the "enable" command, you can configure Apache to start automatically even if you restart EC2.

sudo systemctl start httpd
sudo systemctl enable httpd

By the way, are you accessing the public IP address of EC2?
Have you ever accidentally accessed a private IP address?
Can you confirm that you are accessing it using the following in your browser?

http://ec2-public-ip
profile picture
전문가
답변함 한 달 전
  • Apache is running, and I did the configurations. And yes, I'm accessing the public IP address and I'm not connecting.

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

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

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

관련 콘텐츠