Having trouble setting up a nginx web server on Amazon EC2

The most likely issue here is that you need to open up port 80 in your EC2 security group settings, so the instance can accept inbound traffic to the web server.