On 12/11/2013 11:06 p.m., Marcus Kool wrote:
>
>>> 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".
>
Ah, them docs. I keep looking at the wiki docs for helper protocol:
http://wiki.squid-cache.org/Features/AddonHelpers
Okay, config manual updated.
Amos
Received on Tue Nov 12 2013 - 11:41:31 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 12 2013 - 12:00:12 MST