Re: doctype declaration

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 19 Jul 2002 14:34:58 +0200

On Friday 19 July 2002 13.27, PsychoTekk .de wrote:

> two things:
> when looking at the english err documents which i take as
> prototypes for all the other languages' err docs i see that 27
> outof 29 files contain %w which then will be replaced by the email
> address specified in squid.conf (cache_mgr, errorpage.c:
> Config.adminEmail). thus i assume that err docs containing the
> admin's email address should is standard.

Two of the "error" pages are not really errors..

  ERR_FTP_PUT_CREATED
  ERR_FTP_PUT_MODIFIED

These two indicate that the operations was successful.

These two should not contain a email link to the cache administrator,
as there is nothing to report.

> second, it would be even easier to include all the info
> automatically:
> "admin@domain.net?subject=CacheErrMsg&body=all-the-data-goes-here".
> to do so, one would have to modify errorpage.c lines 569 following:

Good idea. especially considering that the mailto arguments are
standard these days (RFC2368) (was not when the error page functions
in Squid was originally written)

Do you have a suggestion on what the message should look like?

> setting err_html_text in squid.conf, e.g.
> err_html_text <IMG src="http://www.test.net/some.gif"
> alt="corporate logo"> (where source is an absolute path) and
> inserting %L into the err document works fine. further changes to
> either the err docs or the sourcecode regarding images would be too
> specific i think. would this method cover your needs?

A idea that I think would work without too much HTML overhead is to
provide a hook to a external stylesheet and to have the different
sections in the error pages tagged with different style names. This
should to allow the administrator to change the look and feel very
easily. But my generic answer to this is that anyone seriously caring
about the looks of the Squid error messages should customize them.

Regards
Henrik
Received on Fri Jul 19 2002 - 06:35:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:51 MST