[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to redirect web traffic to different server



> Hi,
> 
> I have a OBSD gateway, and server OBSD machine running
> in the local network, I want the gateway redirect
> different web access to different server.
> For example, I want all access to
> http://myserver.org/tech to OBSD machine A in local
> network, all other access to machine B in local
> network.
> How can I setup my gateway to do this job? or do I
> need some software? I only have installed the base
> system without X.
> Thanks.

You need an http proxy, i guess the easiest way would be to use apache
with mod_proxy (configured as a reverse proxy). You can do this on your
gateway or redirect all webtrafic to machine A or B (using pf) and do
the proxy/relaying there.

http://httpd.apache.org/docs/mod/mod_proxy.html

I think this is off-topic btw (not really openbsd related).

/jtm