1 IP - 3 Webserver

aspatric

New Member
Jul 4, 2014
2
0
1
I would like to run three different webserver each in his own VM (e.g. Drupal-VM, Moodle-VM, Wordpress-VM). I own one static IP to which three different URLs (www.name1.com, www.name2.com, www.name3.com) are forwarded to.


Is it possible, to direct all port 80 communication to all three VM's so that the correct Server (done via apaches virtual host) can respond to the request. How would the network-setup of proxmox have to look like?


Up to now I'm running one server with 3 different virtual hosts, but I would like to have one virtual machine per server.

Thanks for your help
 
yes, you need a front machine with a reverse proxy (eg nginx or else) which receives :80 for all domains and then forwards to the right vm which could have its private IP.
reverse proxy could be also on one of those vm.

Marco
 
You don't need 3 virtual server to host 3 websites on 1 IP. you can host all of them with one webserver. Now if you want to separate the sites for security reasons, thats completely valid. Just saying that you dont need to use virtualisation if you don't want to.

If you want to, you may want to look at what ardito posted: use some lightweight http reverse proxy (like lighttpd) to do your bidding and whichever webserver floats your boat for the backend VMs (better yet: containers)
 
Thank you for all your help. In this case i'll setup a "front machine" with a reverse proxy.