Re: [squid-users] Disabling error pages

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 17 Oct 2008 15:40:22 +1300 (NZDT)

> On tor, 2008-10-16 at 13:02 +0100, Robert Morrison wrote:
>
>> I've found lots of references online (in this list's archives, other
>> sites and the FAQ) to customising error pages in squid, but haven't
>> yet found reference to removing error pages completely.
>
> You can't. Oce the request has reached the proxy the proxy must respond
> with someting. If it fails retreiving the requested object the polite
> thing is to respond with an error message explaining what happened and
> what the user can do to fix the peoblem.
>
> If you fo not want to be polite to the users then you MAY change the
> error pages to just a blank page with no visible content, but there
> still needs to be somr kind of response.
>
>> Is this possible without editing source code? I think I saw reference
>> to setting font color in error messages to the same as background, but
>> I'd prefer something a little less hackish ;)
>
> Yes. Just replace the error pages with a file containing just the
> following line:
>
> <!-- %s -->
>
> Regards
> Henrik
>

Also see TCP_RESET
http://www.squid-cache.org/Versions/v3/3.0/cfgman/deny_info.html

Amos
Received on Fri Oct 17 2008 - 02:40:28 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 17 2008 - 12:00:03 MDT