Routing webservers by url host

pablov2

New Member
May 27, 2011
9
0
1
I have one public IP, and I want to have some webservers in differents VM so I need routing to certain private IP of the webserver VM by URL/hostname .How can I do that?


I know routing with iptables using ports and it is very easy. But how can I routing to differents VM by URL?


Example:


IP public: 90.30.10.23
IP private range: 10.10.3.X
VM Proxy: 10.10.3.1 and 90.30.10.23
Webserver 3, host: www.mywebpagethree.com: 10.10.3.3
Webserver 4, host: www.mywebpagefour.com: 10.10.3.4
*URL hosts DNS resolve to IP public.

I have been searching and I only found a way using Apache Proxy with directive: ProxyPassReverse. Any other way to do that?
 
You already found the right answer. This is the correct method to serve different web pages on different systems with one public ip.

Best
Gokalp
 
i have the same setup as you described
and i have also looked for a firware/gateway/router that would do this work as you are asking - but nothing yet..
if you find it - please post back