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

It is my first time to use Amazon EC2 linux micro instance with OS Ubuntu 12.04

[inside the box]

I noticed it did not have Apache installed by default, so I did sudo apt-get install apache2. after installation there is the /var/www directory, and I verified the apache 2 is running

and when I did "curl http:// localhost:80" it successfully returned content in /var/www/index.html

[outside the box]

however, when I type the public DNS name into browser, it gets a page not found error

any possible solutions? thanks in advance!

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 2 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.