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

From: Gregori Parker <gregori@dont-contact.us>
Date: Wed, 1 Feb 2006 09:59:30 -0800

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/

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 Wed Feb 01 2006 - 10:59:32 MST

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