RE: [squid-users] Reverse proxy to different servers for different urls

From: Tim McAuley <[email protected]>
Date: Thu, 2 Feb 2006 11:55:17 -0000 (GMT)

> You can use a redirector to do this. Check out Squirm
> http://squirm.foote.com.au/ (what I use, you can write your own pretty
> easily if you want) and use a regular expression like...
>
> /^(.*?)domainname\.com\/application1\/(.*)$/\1server1\/\2/
>

Hi,

Thank you Gregori and Kinkie.

I've got squirm working on it's own for handling redirects requests but
don't seem to be able to get squid to actually use squirm. It is starting
the process but does not seem to be passing anything to it.

What am I doing wrong. I'm using "virtual" for the host which seems to be
the way to tell squid to use redirectors.

Any ideas?

Thanks,

Tim

> That would take a url of *.domainname.com/* and change it to *.server1/*
> without the "application1" portion.
>
> Redirectors: http://www.squid-cache.org/Doc/FAQ/FAQ-15.html
>
>
>
>
> -----Original Message-----
> From: Tim McAuley [mailto:timonline@mothy.net]
> Sent: Wednesday, February 01, 2006 5:40 AM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Reverse proxy to different servers for different
> urls
>
> Hi,
>
> I have been looking through the documentation and mailing archives and
> have not found a clear way to do what I want.
>
> What I want is:
>
> Using a reverse proxy, I would like to be able to redirect requests to
> different backend servers depending on the url being used (not the server
> name).
>
> I know it is possible to configure squid to work with multiple domains and
> point the request to different servers according to the domain name, so I
> want is pretty similiar, except using the same domain name all the time.
>
> Example:
> http://domainname.com/application1/index.html -> squid -> server1
> (http://server1/index.html)
>
> http://domainname.com/application2/index.html -> squid -> server2
> (http://server2/index.html)
>
> Ideally, stripping out "application1/2" from the url but not necessary.
>
> Is this possible?
>
> I'm running on Squid 2.5, pre-compiled for windows (on windows 2000).
>
> Also, the incoming requests are https and these are converted to http for
> the final server. So after the ssl is decrypted, squid should be able to
> see the url in the request (I assume).
>
> Any hints greatfully received.
>
> Many thanks,
>
> Tim
>
>
>
>
>
>
>
Received on Thu Feb 02 2006 - 04:55:17 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST