Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

closed as not a real question by Bryan, mdpc, John Gardeniers, Ward, MadHatter 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.

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
    
works perfectly! thanks a lot! –  Matthew Yang Jan 10 '13 at 2:41

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