Deploying a static site on AWS EC2/nginx: what am I doing wrong?

Alex asked:

I set up a micro instance (Ubuntu, 32 bit) and assigned an elastic IP (

Public DNS:

I successfully ssh’ed to the machine and installed nginx.

Then I edited the server_name attribute in nginx’s config file (/etc/nginx/sites-available/default)


Restarted nginx and hit but got a “could not connect” error.

What did I forget to do?


My answer:

You probably forgot to add TCP port 80 to your security group in the AWS console.

enter image description here

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.