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 @@ + +
++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}
+