OT - Reverse Proxies with Apache

Alex Beamish talexb-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jan 13 17:27:20 UTC 2005


On Wed, 12 Jan 2005 15:38:34 -0500, psema4 <psema4-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> I recently moved a server (FC1, Apache 2.0) out to a friends in
> Brampton - onto a network where he has another top-level web server
> (Windows, Apache 2.0).
> 
> Unfortunately, we both have a good deal of items on the 'net that are
> linked to our sites....  and right now, most of his are broken (The
> fellow was kind enough to even provide preference for my server)
> 
> I'm having a terrible time getting Apache to provide a reverse proxy.
>  I'd like to get his sites and links back up the way they were before
> my server was introduced if at all possible.
> 
> Here are the rules I'm using in my httpd.conf file, but they doesn't
> seem to be working - everything seems to just fall back to my server:
> 
> RewriteEngine On
> RewriteCond   %{REQUEST_URI}  ^host1.* [NC]
> RewriteRule   ^(.+) http://192.168.0.101:81/$1
> 
>   (some additional info)
>   - host1.some.domain [192.168.0.102 internally] is my server
>   - host2.another.domain [192.168.0.101 internally] is my friends server
>   - Both servers are using dyndns for redirection and point to my
> friends router.
> 
> Since we cannot both use port 80 yet, he's moved his server onto 81 so
> that at least he can get to it.
> 
> Basically all requests are coming to my server, but I'd like to dump
> any requests that do not contain my hostname in the address to his
> server.
> 
> Any help would be most welcome.

Check out

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

for information on a reverse proxy setup -- that sounds it may be the
configuration that you need in this case.

Alex
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list