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?
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?