RE: doctype declaration

From: PsychoTekk .de <psychotekk@dont-contact.us>
Date: Fri, 19 Jul 2002 06:27:18 -0500

----- Original Message -----
From: "Chemolli Francesco (USI)" <ChemolliF@GruppoCredit.it>
Date: Thu, 18 Jul 2002 11:38:52 +0200
To: "'Henrik Nordstrom'" <hno@marasystems.com>, "PsychoTekk .de" <psychotekk@europe.com>, squid-dev@squid-cache.org
Subject: RE: doctype declaration

> > > - what do you think about a new style of the err documents?
> > > (example: http://www.psychotekk.de/extern/ERR_DNS_FAIL.htm)
> >
> > I don't have a opiniton.. style is not my strong side.
>
> I think that a re-vamp of the error pages to make them
> a little bit more end-user-friendly (while not losing any
> techie-friendliness) migth be a good idea.
>
> Things like:
> Provide a simple error message, higlighted by boxes or color changes.
> Then AFTER the contact address, add a second
> box which says something along the lines of "if you need to contact
> tech support, make sure to include this information",
> which should include the client IP, the proxy IP,
> a detailed system-level descryption of the error, the URL being
> accessed, a detailed timestamp of the error, and much more.
> In other words, throw in the kitchen sink.

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.
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:

case 'w':
 if (Config.adminEmail)
  memBufPrintf(&mb, "%s", Config.adminEmail);
 else
  p = "[unknown]";
 break;

where Config.adminEmail would be changed to
Config.adminEmail + "?subject=CacheErrMsg&body=" + data1 + data2 etc.

the data would be any info to be found in errorpage.c's
errorConvert() function, e.g. "inet_ntoa(err->src_addr)"
to include the client's ip into the email's body.

i'm sorry not to provide any plug-and-play sourcecode snippet here
but as i already mentioned in another post, i'm not a c programmer :(

>
> Also, for enterprise-style setups, you could highlight places
> where the cache administrators could add things such as corporate logos
> (to be retrieved from a webserver) and such things.
>
> --
> /kinkie
>

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?

regards,
 C.L.

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


Save up to $160 by signing up for NetZero Platinum Internet service.
http://www.netzero.net/?refcd=N2P0602NEP8

Received on Fri Jul 19 2002 - 05:33:06 MDT

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