Re: [squid-users] Filtering/Redirecting URLS

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 11 Feb 2004 08:17:04 +0100 (CET)

On Tue, 10 Feb 2004, Nick Baronian wrote:

> Thanks Henrik.  To help clarify some issues we have each Squid box
> connected to an App Server running Apache which talks to a Oracle
> database.  We have our DB's replicating to one another for fail over
> reasons but due to some Oracle issue regarding some pointer issue with
> db replication only one of our DB's can handle a certain request from
> App Server.  Right now the sites that produce these requests are all
> pointed to the App Server and DB that can handle it.  Whenever this
> request is made a key word is always in the URL string but the URL will
> not always be the same thing.  The URL could read something like
> www.mysite.com/blah/blah?keyword=monkey&variable=34 or 
> www.mysite.com/blah/blah?variable=34&variableA=66keyword=monkey&variable2=H
> Once we start load balancing the servers I will need all requests
> containing this keyword in the URL to point to the correct Squid Server
> and that Squid Server will be set to talk to the correct App Server
> which talks to the Oracle DB that handles those types of requests.  Is
> this something that can be done proxy.pac?  How would this be
> accomplished?  Doesn't a regex match have to match a whole URL not just
> a keyword?

This sounds like a reverse proxy setup? In such case proxy.pac is not an
option.

A redirector helper will work fine for the above purpose. See the
redirector_program directive.

Regards
Henrik
Received on Wed Feb 11 2004 - 00:17:09 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST