0

It can be so easy. But I can not it.

I run a http server on my EC2 server. And I can access it through localhost.

enter image description here

My Inbound rules:

enter image description here

And my http request with Public DNS (IPv4):

enter image description here

What is the missing?

1 Answers1

0

At a guess the webserver isn't listening to port 80, as you're getting Connection Refused in Chrome.

You can quickly test this with python:

 sudo python -m BaseHTTPServer 80

You should then be able to connect and get a 501 error back from python

NB: Don't use SimpleHTTPServer, you'll expose your server's filesystem to the internet

damolp
  • 331