Search squid archive

ERROR templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm using Squid 3.1.9 and recently have been wanting to modify
the templates to display some other image.

For the 2.5 version, the ERROR templates were properly formatted
html templates.

However, in 3.1.9, when I use vi, the template is a non-formatted
mess.  Take for example, ERR_CONNECT_FAIL:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/st
rict.dtd"> <html><head> <meta http-equiv="Content-Type"
CONTENT="text/html; char
set=utf-8"> <title>ERROR: The requested URL could not be
retrieved</title> <styl
e type="text/css"><!--   %l  body :lang(fa) { direction: rtl; font-size:
100%; f
ont-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) {
direction: rtl
; float: right; }  --></style> </head><body id=%c> <div id="titles">
<h1>ERROR</
h1> <h2>The requested URL could not be retrieved</h2> </div> <hr>  <div
id="cont
ent"> <p>The following error was encountered while trying to retrieve
the URL: <
a href="%U">%U</a></p>  <blockquote id="error"> <p><b>Connection to %I
failed.</
b></p> </blockquote>  <p id="sysmsg">The system returned: <i>%E</i></p>
 <p>The
remote host or network may be down. Please try the request again.</p>
<p>Your c
ache administrator is <a href="mailto:%w%W";>%w</a>.</p>  <br> </div>
<hr> <div
id="footer"> <p>Generated %T by %h (%s)</p> <!-- %c --> </div>
</body></html>

Am I missing something fundamental when editing this?  I've googled
this and any examples of modifying template shows a cleanly formatted
template.

When I quit vi, I get "Partial last line".
(Not really concerned that much about that.)

I've looked at other translations and the templates are also
unformatted.

Any clarifications appreciated.

Ed


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux