amazon ec2 instance gets timed out

Solution 1:

I also faced the same problem, I skipped this part : Network Security Groups look "Adding Rules to a Security Group" on this page. Because server port should be allowed for external network access which is the reason for not being able to connect.

Solution 2:

Sounds like you are not allowing port 80 on your security group. (Like everyone says). You can test it locally by running from your EC2 instance:

curl http://localhost

If it returns some HTML then it means that you cannot access the the instance from the outside and you need to open up port 80 on your security groups.