Re: [squid-users] How to diagnose redirector?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 11 Nov 2011 12:00:10 +1300

On 11/11/2011 2:44 a.m., Markus Nilsson wrote:
> ----- Ursprungligt meddelande -----
>
>> Från: "Tobias Reckhard"<tobias.reckhard_at_secunet.com>
>> Till: squid-users_at_squid-cache.org
>> Skickat: torsdag, 10 nov 2011 14:16:37
>> Ämne: Re: [squid-users] How to diagnose redirector?
>> Markus Nilsson wrote the following on 10.11.2011 13:56:
>>> ----- Ursprungligt meddelande -----
>>>> Från: "Tobias Reckhard"<tobias.reckhard_at_secunet.com>
>>>> $url = $X[1];
>> [...]
>>> I might be wrong here, but I believe the URL is the first item,
>>> i.e.
>>>
>>> $url = $X[0]
>> It shouldn't be, $X[0] should be the channel-ID, since concurrency is
>> set to 5. I'll give it shot nevertheless.. Thanks for your swift
>> response.
> Yes it would have been if you'd set
>
> url_rewrite_concurrency 0
>
> to something else than 0 :)
>
> /M

Exactly.

Also, our wiki example was a little wrong there n the else case. Do not
send a URL back to Squid at all if you are not changing it. There is a
lot of processing Squid does to clone the request. It is a lot better to
send back only the channel-ID or an empty line, which indicates no
changes. I've updated the wiki.

Amos
Received on Thu Nov 10 2011 - 23:00:18 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 11 2011 - 12:00:02 MST