On 11/11/2011 2:44 a.m., Markus Nilsson wrote:
----- Ursprungligt meddelande -----
Från: "Tobias Reckhard"<tobias.reckhard@xxxxxxxxxxx>
Till: squid-users@xxxxxxxxxxxxxxx
Skickat: torsdag, 10 nov 2011 14:16:37
Ämne: Re: How to diagnose redirector?
Markus Nilsson wrote the following on 10.11.2011 13:56:
----- Ursprungligt meddelande -----
Från: "Tobias Reckhard"<tobias.reckhard@xxxxxxxxxxx>
$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