Re: [squid-users] Disabling error pages

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 16 Oct 2008 20:56:57 +0200

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

Received on Thu Oct 16 2008 - 18:57:04 MDT

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