Re: [squid-users] Re: How do I redirect based on the value in a cookie?

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sat, 24 Mar 2007 02:50:31 +1200

Suresh V wrote:
> Henrik Nordstrom wrote:
>> ons 2007-03-07 klockan 10:20 +0530 skrev Suresh V:
>>
>>> I looked at external_acl_type but was not able to put together a
>>> solution. My use case is that All authenticated users (from the
>>> cookie) go to 1 server while all Anonymous users go to a different
>>> server.
>>
>> See the %{Header:;member} argument. Can be used for extracting cookies
>> from the request. I.e. %{Cookie:;user} %{Cookie:;session}
>
> OK. I got that part. Now how do I use deny_info to redirect to another
> server? All I can see instructions for is to put up a custom error page.
>
> Suresh
>

like this:

deny_info http://other.server/index.html redirected_clients
http_access deny redirected_clients

yes it is the same process as a foreign error page, but places no limits
on what that foreign page might contain, and can still be passed the %
parameters if its a scripted page.

Amos
Received on Fri Mar 23 2007 - 08:50:39 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT