2 Answers
- Newest
- Most votes
- Most comments
0
Curl localhost returns the Apache test page
Can you connect into your EC2 and run this command to get its public/internet IP?
curl checkip.amazonaws.com
Then run curl command on the returned IP, e.g. curl 1.2.3.4
Or you can run the command this way
curl `curl checkip.amazonaws.com`
After that, try accessing site from IP returned by curl checkip.amazonaws.com
from your desktop browser
0
It's hard to tell, but i do sound like you are being blocked by SG Rules. Can you share the exact setting for SG, NACL, EC2 instance, would be easier to help out then.
I've added image links to the question of those rules. Thank you!
Relevant content
- asked a year ago
- asked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
Hi Mike. This returns the code of the Apache test page. Thanks
Great! I assume the site is now accessible.
No, I still have the site can't be reached page. Everything seems to be set up as it should be, yet I can't view it...
can you access site via IP returned from curl checkip.amazonaws.com from your desktop?
Nope. Neither the public DNS or IP address work.