OpenVZ Forum


Home » General » Support » port forwarding (http servers on each VPS)
port forwarding (http servers on each VPS) [message #36022] Wed, 13 May 2009 07:07 Go to next message
Balbuzard is currently offline  Balbuzard
Messages: 26
Registered: March 2009
Location: Australia
Junior Member
Hi,
I have some VPS on my HN and each of them runs a http server (apache server)
My virtual network is a private one (every IP addresses are private, like 192.168.10.101)
I can set up a port forwarding for one VPS, (every requests to the IP-address of the HN port 80 goes to the VPS port 80) but how is it possible to set up port forwarding for each of my VPS?
For example, on the first on, there is a website http://www.myDomain.com, on the second one http://www.myOtherDomain.com
(I don't want to change the default port of the server)
Thanks a lot for your help!
Re: port forwarding (http servers on each VPS) [message #36030 is a reply to message #36022] Wed, 13 May 2009 11:29 Go to previous messageGo to next message
arghbis is currently offline  arghbis
Messages: 35
Registered: November 2007
Member
In the same situation, i have a VPS that runs haproxy and that handle all requests on port 80.

Then using the proper configuration, haproxy redirects the requests to the proper VPS.
Re: port forwarding (http servers on each VPS) [message #36043 is a reply to message #36030] Thu, 14 May 2009 05:16 Go to previous message
Balbuzard is currently offline  Balbuzard
Messages: 26
Registered: March 2009
Location: Australia
Junior Member
Oki, Thank you very much, I will take a look at this.
Previous Topic: Enough space, but reports 'no space left on device'
Next Topic: nfs caching/delay from within a container
Goto Forum:
  


Current Time: Sun Jul 06 22:17:33 GMT 2025

Total time taken to generate the page: 0.04278 seconds