##dist-hook eveything
DEFAULT_ERROR_DIR = $(errordir)
+DEFAULT_STYLESHEET = $(sysconfigdir)/errorpage.css
+
# List of automated translations possible:
TRANSLATIONS = \
$(INSTALL_DATA) $$f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l; \
done; \
fi \
- done
+ done; \
+ $(INSTALL_DATA) $(srcdir)/errorpage.css $(DESTDIR)$(DEFAULT_STYLESHEET).default; \
+ @if test -f $(DESTDIR)$(DEFAULT_STYLESHEET) ; then \
+ echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_STYLESHEET)" ; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/errorpage.css $(DESTDIR)$(DEFAULT_STYLESHEET)"; \
+ $(INSTALL_DATA) $(srcdir)/errorpage.css $(DESTDIR)$(DEFAULT_STYLESHEET); \
+ fi
+
uninstall-local:
@ for l in $(LANGUAGES); do \
rm -f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l/`basename $$f`; \
done; \
fi \
- done
+ done; \
+ rm -f $(DEFAULT_STYLESHEET).default
# undocumented hack. You can use this target to create multi-lingual
# error pages. For example:
cp -p $(srcdir)/$$lang/ERR_* $(distdir)/$$lang \
|| exit 1; \
fi; \
- done
+ done; \
+ cp $(srcdir)/errorpage.css $(distdir)/errorpage.css
translate:
@ if test "$(PO2HTML)" != "" ; then \
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Access Denied.</b></p>
</blockquote>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: Cache Access Denied</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head>
<body>
<h1>ERROR</h1>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Cache Access Denied.</b></p>
</blockquote>
<p>Please contact the <a href="mailto:%w%W">cache administrator</a> if you have difficulties authenticating yourself or <a href="http://%h/cgi-bin/chpasswd.cgi">change</a> your default password.</p>
-<br>
+<br>
<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: Cache Manager Access Denied</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>Cache Manager Access Denied.</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Cache Manager Access Denied.</b></p>
</blockquote>
<p>Please contact the <a href="mailto:%w%W">cache administrator</a> if you have difficulties authenticating yourself or, if you <em>are</em> the administrator, read Squid documentation on cache manager interface and check cache log for more detailed error messages.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head>
<body>
<h1>ERROR</h1>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Unable to forward this request at this time.</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+
+<blockquote id="error">
<p><b>Connection to %I failed.</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<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 cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Unable to determine IP address from host name <q>%H</q></b></p>
</blockquote>
<p>The DNS server returned:</p>
-<blockquote>
+<blockquote id="data">
<pre>%z</pre>
</blockquote>
<p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>
+
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>ESI Processing failed.</b></p>
</blockquote>
<p>The ESI processor returned:</p>
-<blockquote>
+<blockquote id="data">
<pre>%Z</pre>
</blockquote>
<p>Your webmaster is <a href="mailto:%w">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Forwarding Denied.</b></p>
</blockquote>
<p>This cache will not forward your request because it is trying to enforce a sibling relationship. Perhaps the client at %i is a cache which has been misconfigured.</p>
+
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>FTP is Disabled</b></p>
</blockquote>
<p>This cache does not support FTP.</p>
+
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<p>An FTP protocol error occurred while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
-<blockquote>
+<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
-<blockquote>
+<blockquote id="error">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<p>An FTP authentication failure occurred while trying to retrieve the URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
-<blockquote>
+<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
-<blockquote>
+<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<p>The following URL could not be retrieved: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
-<blockquote>
+<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
-<blockquote>
+<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>FTP PUT Successful: File Created</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
-<h1 style="background-color:#00ff00; width:100%">Operation successful</h1>
+<h1 id="ftpsuccess">Operation successful</h1>
<h2>File created</h2>
<hr>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: FTP upload failed</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>FTP PUT/upload failed</h2>
<p>While trying to PUT the following URL: <a href="%U">%U</a></p>
<p>Squid sent the following FTP command:</p>
-<blockquote>
+<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
-<blockquote>
+<blockquote id="sysmsg">
<pre>%F</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>FTP PUT Successful: File updated</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
-<h1 style="background-color:#00ff00; width:100%">Operation successful</h1>
+<h1 id="ftpsuccess">Operation successful</h1>
<h2>File updated</h2>
<hr>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<p>Squid sent the following FTP command:</p>
-<blockquote>
+<blockquote id="data">
<pre>%f</pre>
</blockquote>
<p>The server responded with:</p>
-<blockquote>
+<blockquote id="sysmsg">
<pre>%F</pre>
<pre>%g</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff; font-family:verdana,sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>ICAP protocol error.</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>This means that some aspect of the ICAP communication failed.</p>
<li><p>An Illegal response was received from the ICAP server.</p></li>
</ul>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p><b>Invalid Request</b> error was encountered while trying to process the request:</p>
-<blockquote>
+<blockquote id="data">
<pre>%R</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p><b>Invalid Response</b> error was encountered while trying to process the request:</p>
-<blockquote>
+<blockquote id="data">
<pre>%R</pre>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Invalid URL</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Connection Lifetime Expired</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>No Wais Relay</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Valid document was not found in the cache and <q>only-if-cached</q> directive was specified.</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Read Error</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>An error condition occurred while reading data from the network. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Read Timeout</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Failed to establish a secure connection to %I</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>This proxy and the remote host failed to negotiate a mutually acceptable security settings for handling your request. It is possible that the remote host does not support secure connections, or the proxy is not satisfied with the host security credentials.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Socket Failure</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>Squid is unable to create a TCP socket, presumably due to excessive load. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>The request or reply is too large.</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Unsupported Request Method and Protocol</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URN not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>A URL for the requested URN could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URN: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Cannot Resolve URN</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Write Error</b></p>
</blockquote>
-<p>The system returned: <i>%E</i></p>
+<p id="sysmsg">The system returned: <i>%E</i></p>
<p>An error condition occurred while writing to the network. Please retry your request.</p>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>Zero Sized Reply</b></p>
</blockquote>
<p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: The requested URL could not be retrieved</title>
-<style type="text/css"><!--BODY{background-color:#ffffff; font-family:verdana,sans-serif}--></style>
+<style type="text/css"><!-- %l --></style>
</head><body>
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>
-<blockquote>
+<blockquote id="error">
<p><b>@SHORT_DESCRIPTION@</b></p>
</blockquote>
<p>@LONG_DESCRIPTION@</p>
</blockquote>
-<br>
-<hr>
+<br>
+<hr>
<div id="footer">Generated %T by %h (%s)</div>
</body></html>
DEFAULT_ICP_PORT = @CACHE_ICP_PORT@
DEFAULT_PREFIX = $(prefix)
DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
+DEFAULT_CONFIG_DIR = $(sysconfdir)
DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf
DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
DEFAULT_LOG_PREFIX = $(localstatedir)/logs
s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\
s%@DEFAULT_MIB_PATH@%$(DEFAULT_MIB_PATH)%g;\
s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
+ s%@DEFAULT_CONFIG_DIR@%$(DEFAULT_CONFIG_DIR)%g;\
s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\
s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;\
s%@[V]ERSION@%$(VERSION)%g;"\
http://wiki.squid-cache.org/Translations
DOC_END
+NAME: err_page_stylesheet
+TYPE: string
+LOC: Config.errorStylesheet
+DEFAULT: @DEFAULT_CONFIG_DIR@/errorpage.css
+DOC_START
+ CSS Stylesheet to pattern the display of Squid default error pages.
+
+ For information on CSS see http://www.w3.org/Style/CSS/
+DOC_END
+
NAME: err_html_text
TYPE: eol
LOC: Config.errHtmlText
/// \ingroup ErrorPageInternal
static int error_page_count = 0;
+/// \ingroup ErrorPageInternal
+static MemBuf error_page_stylesheet_content;
+
static char *errorTryLoadText(const char *page_name, const char *dir, bool silent = false);
static char *errorLoadText(const char *page_name);
static const char *errorFindHardText(err_type type);
}
}
}
+
+ // look for and load stylesheet into global MemBuf for it.
+ if(Config.errorStylesheet) {
+ error_page_stylesheet_content = errorLoadText(Config.errorStylesheet);
+ }
}
void
break;
+ case 'l':
+ mb.append(error_page_stylesheet_content.content(), error_page_stylesheet_content.contentSize());
+ do_quote = 0;
+ break;
+
case 'L':
if (Config.errHtmlText) {
mb.Printf("%s", Config.errHtmlText);
#if USE_ERR_LOCALES
char *errorDefaultLanguage;
#endif
+ char *errorStylesheet;
struct
{