From 78c1ed384a798be38a82ab739433784af1c74fb3 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 13 Mar 2003 21:35:58 +0000 Subject: # Added default HTML files for HTTP error messages and the stats page. [Steven Young] --- doc/HTML_VARIABLES | 15 +++++++++++++++ doc/debug.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ doc/default.html | 7 +++++++ doc/stats.html | 10 ++++++++++ 4 files changed, 80 insertions(+) create mode 100644 doc/HTML_VARIABLES create mode 100644 doc/debug.html create mode 100644 doc/default.html create mode 100644 doc/stats.html diff --git a/doc/HTML_VARIABLES b/doc/HTML_VARIABLES new file mode 100644 index 0000000..2bdf3ad --- /dev/null +++ b/doc/HTML_VARIABLES @@ -0,0 +1,15 @@ +There are several standard HTML variables that are available in every .html +file: + + request - The full HTTP request line. + cause - The abbreviated cause of the error condition. + clientip - The IP address of the client making the request. + clienthost - The hostname of the client making the request. + version - The version of tinyproxy. + package - Presently, resolves to 'tinyproxy'. + date - The current date/time in HTTP format. + +In addition, almost all pages support: + + detail - A detailed, plain English explanation of the error and possible + causes. You might consider this the Microsoftian error message. diff --git a/doc/debug.html b/doc/debug.html new file mode 100644 index 0000000..c62ca43 --- /dev/null +++ b/doc/debug.html @@ -0,0 +1,48 @@ + + + +Request failed - {cause} + + + +
{cause}
+
+The request you made failed. Here are the error variables: +
+request +
+{request} +
+cause +
+{cause} +
+clientip +
+{clientip} +
+clienthost +
+{clienthost} +
+version +
+{version} +
+package +
+{package} +
+date +
+{date} +
+detail +
+{detail} +
+url +
+{url} + + diff --git a/doc/default.html b/doc/default.html new file mode 100644 index 0000000..2cb291d --- /dev/null +++ b/doc/default.html @@ -0,0 +1,7 @@ +{cause} + +Cache Error!
+The following error has occured: {detail} +
+Generated by {package} ({version}) + diff --git a/doc/stats.html b/doc/stats.html new file mode 100644 index 0000000..2168606 --- /dev/null +++ b/doc/stats.html @@ -0,0 +1,10 @@ +{package} ({version}) stats + +

{package} ({version}) run-time statistics


+
+Number of open connections: {opens}
+Number of requests: {reqs}
+Number of bad connections: {badconns}
+Number of denied connections: {deniedconns}
+Number of refused connections due to high load: {refusedconns}
+
-- cgit v1.2.3