This is my first time using an Amazon EC2 Linux Micro Instance with Ubuntu 12.04.

I noticed it did not have Apache installed by default, so I did sudo apt-get install apache2. After installation, /var/www/index.html exists and I verified that Apache2 is running.

When I did curl http://localhost:80, it successfully returned the content in /var/www/index.html.

However, when I type the public DNS name into a browser I get a page not found error.

Why isn't index.html loading and what might the solution to this be?

closed as not a real question by Bryan, mdpc, John Gardeniers, Ward - Reinstate Monica, MadHatter supports Monica Jan 10 '13 at 7:11

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.


Sounds like you forgot to add an allowance for TCP port 80 requests inbound in the security group for that server.

Here's some info on EC2 security group config

Not the answer you're looking for? Browse other questions tagged or ask your own question.