logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



How to setup ONE Fixed IP serving multiple servers on VMs

 
Post new topic   Reply to topic    Apache Forum Index -> Hardware & Networking



View previous topic :: View next topic  
Author Message
satimis



Joined: 28 Mar 2015
Posts: 5

PostPosted: Fri 25 Dec '15 16:14    Post subject: How to setup ONE Fixed IP serving multiple servers on VMs Reply with quote

Hi all,

Host Ubuntu 14.04 desktop
VMs Ubuntu 14.04 desktop/server edition
VirtualBox

I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. The web-servers are connected to Internet via a router. But I have only one Fixed IP allocated by ISP. Please advise how to set up their static IP so that they can be browsed on Internet?

Thanks in advance

Regards
satimis
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2574
Location: Hilversum, NL, EU

PostPosted: Fri 25 Dec '15 17:51    Post subject: Reply with quote

Reverse proxy to the VM's on the host OS should work.
Back to top
satimis



Joined: 28 Mar 2015
Posts: 5

PostPosted: Fri 25 Dec '15 18:06    Post subject: Reply with quote

Thanks for your advice.

I suppose you referred to;
HAProxy
http://www.haproxy.org/

I'm now searching for steps/document re how to configure it on domain base? Can you help?

Besides can I install HA Proxy on a VM instead of on the Host. Because I expect retain the latter clean solely for running VirtualBox.

If "NO" I'll get another machine for testing HA Proxy.

Thanks

Regards
satimis
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Fri 25 Dec '15 22:12    Post subject: Reply with quote

reverse proxy is feature of apache - mod_proxy

See links below

https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
Back to top
satimis



Joined: 28 Mar 2015
Posts: 5

PostPosted: Fri 25 Dec '15 23:08    Post subject: Reply with quote

Hi,

Thanks for your advice and links.

I'm prepared testing it. But my concerned is whether I can create an Apache server running on a VM for this test instead of installing Apache on the host? I don't expect installing Apache on the host because I expect keeping it clean solely for running VirtualBox. Otherwise I'll find another PC for this test.

Thanks

Regards
satimis
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2574
Location: Hilversum, NL, EU

PostPosted: Mon 28 Dec '15 14:38    Post subject: Reply with quote

You can install a "minimal" Apache on a VM with the ONE IP, this only proxies the request, based on the Host header.

Example see: http://iws.io/multiple-web-servers-over-a-single-ip-using-apache-as-a-reverse-proxy/
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Hardware & Networking
Page 1 of 1