Re: url_rewrite_program in Squid 3.4

From: Marcus Kool <marcus.kool_at_urlfilterdb.com>
Date: Tue, 12 Nov 2013 08:06:50 -0200

>> and must return
>> OK [status] url="newurl"
>> for a URL that needs to be redirected.
>>
>> One would expect that ERR is used for an error, not for something
>> that is the opposite of an error.
>
> The error is that the re-writer could not or would not re-write the URL.
>
>
> You can return OK without the url=, status= or rewrite-url= keys.
>
> url= is only required *if* the URL is being redirected.
> rewrite-url= is only required *if* the URL is being rewritten.

Thanks for the explanation. This means that the information on
http://www.squid-cache.org/Versions/v3/3.4/cfgman/url_rewrite_program.html
is not correct since url= and rewrite-url are not optional.
I suggest to update this page to include that the result
   "OK"
is meant for "no URL modification / PASS".

Thanks
Marcus
Received on Tue Nov 12 2013 - 10:06:59 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 12 2013 - 12:00:12 MST