Search squid archive

Re: Re: How do I redirect based on the value in a cookie?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux