# Added default HTML files for HTTP error messages and the stats
page. [Steven Young]
This commit is contained in:
parent
a46bfdc2e0
commit
78c1ed384a
15
doc/HTML_VARIABLES
Normal file
15
doc/HTML_VARIABLES
Normal file
@ -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.
|
48
doc/debug.html
Normal file
48
doc/debug.html
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>
|
||||||
|
Request failed - {cause}
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<center>{cause}</center>
|
||||||
|
<blockquote>
|
||||||
|
The request you made failed. Here are the error variables:
|
||||||
|
<dt>
|
||||||
|
request
|
||||||
|
<dd>
|
||||||
|
{request}
|
||||||
|
<dt>
|
||||||
|
cause
|
||||||
|
<dd>
|
||||||
|
{cause}
|
||||||
|
<dt>
|
||||||
|
clientip
|
||||||
|
<dd>
|
||||||
|
{clientip}
|
||||||
|
<dt>
|
||||||
|
clienthost
|
||||||
|
<dd>
|
||||||
|
{clienthost}
|
||||||
|
<dt>
|
||||||
|
version
|
||||||
|
<dd>
|
||||||
|
{version}
|
||||||
|
<dt>
|
||||||
|
package
|
||||||
|
<dd>
|
||||||
|
{package}
|
||||||
|
<dt>
|
||||||
|
date
|
||||||
|
<dd>
|
||||||
|
{date}
|
||||||
|
<dt>
|
||||||
|
detail
|
||||||
|
<dd>
|
||||||
|
{detail}
|
||||||
|
<dt>
|
||||||
|
url
|
||||||
|
<dd>
|
||||||
|
{url}
|
||||||
|
</body>
|
||||||
|
</html>
|
7
doc/default.html
Normal file
7
doc/default.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<html><head><title>{cause}</title></head>
|
||||||
|
<body>
|
||||||
|
<font size=\+2\>Cache Error!</font><br>
|
||||||
|
The following error has occured: {detail}
|
||||||
|
<hr>
|
||||||
|
<font size=\-1\><em>Generated by {package} ({version})</em></font>
|
||||||
|
</body></html>
|
10
doc/stats.html
Normal file
10
doc/stats.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<html><head><title>{package} ({version}) stats</title></head>
|
||||||
|
<body>
|
||||||
|
<center><h2>{package} ({version}) run-time statistics</h2></center><hr>
|
||||||
|
<blockquote>
|
||||||
|
Number of open connections: {opens}<br>
|
||||||
|
Number of requests: {reqs}<br>
|
||||||
|
Number of bad connections: {badconns}<br>
|
||||||
|
Number of denied connections: {deniedconns}<br>
|
||||||
|
Number of refused connections due to high load: {refusedconns}<br>
|
||||||
|
</blockquote></body></html>
|
Loading…
Reference in New Issue
Block a user