Results 1 to 7 of 7
here is what i need to do:
web1.mydomain.com resolves to 209.5.5.5 which is my public IP on the external side of my router. Router is setup to forward (port forwarding) ...
- 01-07-2011 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 32
need help with web forwarding of traffic
here is what i need to do:
web1.mydomain.com resolves to 209.5.5.5 which is my public IP on the external side of my router. Router is setup to forward (port forwarding) all port 80 based traffic to internal ip 192.168.1.10 which I want that server to lookup the request, and for web1 forward to 192.168.1.101, for web2 to .102 etc....
how can i acheive this? What do i need to use?
- 01-07-2011 #2Linux Newbie
- Join Date
- Dec 2009
- Posts
- 241
I guess the words you are looking for are:
apache and VirtualHost
The kind of forwarding you want needs to communicate the name - which is called first.
So the request first needs to be answered by server 192.168.1.10 ...
I am not sure, that apache is capable of redirecting any that way to a different server ...
But it gets possible to choose different file locations of the web-pages ...
a ntp mounted location for example ...
or a php script which simply echos what it reads from an internal web-page ...
- 01-07-2011 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 32
i know i can do that i was looking at sending the traffic to 2 different servers
- 01-07-2011 #4Linux Newbie
- Join Date
- Dec 2009
- Posts
- 241
Is my guessing right, that it's something like a virtual host?
The only other product I can think of, that may achieve that is a Proxy.
Or do you think, like one client gets served from server 1 another gets served by server 2 .... just to reduce the load ?
--- You could write a script with iptables, to do so.
- 01-07-2011 #5Just Joined!
- Join Date
- Dec 2006
- Posts
- 32
I think i found something to do this, it's called Pound Apsis Gmbh
- 01-07-2011 #6Just Joined!
- Join Date
- Mar 2005
- Location
- Corona, CA
- Posts
- 29
In the first webserver you could set up VirtualHosts, then instead of a DocRoot you could use ProxyPass and ProxyPassReverse to guide the requests through to the correct backend server. The router is only aware of the "front-end". It would be something like:
<virtualhost web1:80>
ProxyPass / http://192.168.1.101
ProxyPassReverse / http://192.168.1.101
</virtualhost>
<virtualhost web2:80>
ProxyPass / http://192.168.1.102
ProxyPassReverse / http://192.168.1.102
<virtualhost>
...
- 01-08-2011 #7Just Joined!
- Join Date
- Dec 2006
- Posts
- 32
i actually installed and configured Pound and it works like a CHARM !
Thanks for all the help.


Reply With Quote
