Ok, so my set up is as follows:
- I own a domain, let's call it
domain.com. - I have an amazon AWS account with one micro-instance (free tier).
domain.comandwww.domain.comboth point to a static IP set up for my instance.- Instance is Amazon Linux with apache2 web server. Doc root is the default:
/var/www/html - I have also set up
apps.domain.comthat points towww.domain.com/appsas a frame URL (This is what needs changing!).
What I want is to have two doc roots (if that's possible), one for my main forward facing site (www.domain.com), let's say I keep it as it is in /var/www/html. But then I need another one for playing around and building apps etc. I would like to serve them up from /var/www/apps and I would point to that from apps.domain.com.
The reason for this is that I need to be able to have versioning control over the web apps I build, I would keep a separate tree for each one within /var/www/apps. At the moment my apps are served up from /var/www/html/apps so they are under the version control of my main site in html; not ideal.
Ok, I think I've got over as much as I need, hopefully it is understood what I would like achieved. So is this all possible? I can set up multiple static IPs with AWS so maybe each of them can resolve to different doc roots? I'm just getting into the infrastructure side of things so don't know too much about it all, bear with me!
Host:header was added to HTTP, allowing many sites on one IP. – James O'Gorman Dec 30 '11 at 18:40