Re: [squid-users] Squid Error Pages

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Fri, 11 Jul 2008 23:04:39 +0200

On fre, 2008-07-11 at 15:30 -0400, Brie Gordon wrote:
> Hello!
>
> I'm a longtime Squid user and I want to edit the error messages that
> Squid provides. I've located the files (ERR_ACCESS_DENIED,
> ERR_CACHE_ACCESS_DENIED, etc) and modified them but they are not
> displayed as I thought.

Common mistake ;-)

> For example, Squid appends a line about itself
> and the cache manager

Explained at "Customizable Error Messages"
http://wiki.squid-cache.org/SquidFaq/MiscFeatures#head-fd8f5559ec842b21e1acb06823eaa9b83897fcc3

> and does not display some images even though the
> HTML is correct.

Two possible causes:

a) Squid is not a web server.

or

b) The links you use for referring to the images is not correct.

The images needs to be hosted on a web server of yours, and the links
needs to be absolute URLs where those images can be found.

The error pages isn't real pages in their own. It's just the error
text/html content Squid shows instead of the requested data if there is
a problem. To the browser the error page is displayed in context of the
requested URL, and any relative links is relative to the requested URL,
not where the Squid error template happens to be on the proxy server
harddrive..

Regards
Henrik

Received on Fri Jul 11 2008 - 21:04:43 MDT

This archive was generated by hypermail 2.2.0 : Sat Jul 12 2008 - 12:00:04 MDT