Squid Web Cache wiki

Squid Web Cache documentation

πŸ”— Feature: Customizable Error Message

πŸ”— Details

Squid lets you customize your error messages. The source distribution includes error messages in different languages.

From Squid 3.1:

For older Squid you can select the language with the configure option –enable-err-language=lang.

If needed, you can make a copy and re-write the error message template files in any version.

πŸ”— deny_info URL codes for embedding

Squid-2.1 toSquid-3.1 only provide this macro code:

Squid-3.2 adds URL templating codes:

πŸ”— ERR_* template codes for embedding

This list describes the macro codes which Squid will replace in the error response messages, and what details will be inserted:

πŸ”— Custom error pages not displayed for HTTPS

HTTPS uses HTTP CONNECT messages to relay through a proxy. Due to browser behaviour handling these CONNECT messages (described in https://bugzilla.mozilla.org/show_bug.cgi?id=479880) any custom error page produced by the proxy is ignored and a generic browser page displayed instead.

Usually this browser page mentions connection faulure or other such irrelevant details.

In fact any response other than 200 OK is completely dropped by the browser and the same browser template page displayed. This can lead to some very weird authentication problems when using HTTPS through an authenticated proxy as well for authentication schemes where the 407 message body has relevance.

Categories: Feature

Navigation: Site Search, Site Pages, Categories, πŸ”Ό go up