Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Apache2 on an Ubuntu instance in EC2. Apache is currently serving three sites, none of which have separate domain names as yet.

What's the easiest way to configure the server to allow me to preview the sites individually through a remote browser? Visiting the server by way of its IP address in the browser just gives me the base page from /var/www/ of course. I need to know how to set it up so I can access like http://[IP_ADDRESS]/[site1], http://[IPADDRESS]/[site2] etc.

I've tried mapping it in my local hosts file on my Ubuntu client - [IP ADDRESS] [domain name as in vhost] but no joy - I'm still getting shunted to the base page.

Thanks in advance for any help on this.

share|improve this question

Use a browser extension to force the Host header to a specific value.

share|improve this answer
Thanks. Would be grateful if you could expand on that please. – ArtfulDodger2012 Feb 28 '12 at 14:51
See section 14.23 of RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1". – Ignacio Vazquez-Abrams Feb 28 '12 at 14:53
That's much appreciated and I now have a better grasp of the concept. Can you recommend an extension? – ArtfulDodger2012 Feb 28 '12 at 15:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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