Re: Virtual hosting with single domain name
If I understand your question, you would like to run multiple web servers with one public ip address.
First you will want to get name based virtual hosting working with Apache2. The sticky at the top of this forum has the how to listed under HTTP servers. Pick one of your VM's to be the "main" apache server.
Set up your DNS to point to your main server. Get at least two virtual host's working.
Once you get that working you will want to setup reverse proxy. This will allow your router to forward all web requests to main server, then main server will "forward" the request to external apache server when other subdomains are requested.
I created a simple how to for proxy.
ubuntuforums.org/showthread.php?t=1920715
Nothing is ever easy, but if it is difficult you must be doing it wrong.
Bookmarks