2009-09-14 18:12:43 +08:00
'\" t
2009-09-13 06:02:38 +08:00
. \" Title: tinyproxy
2009-09-14 18:12:43 +08:00
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.74.3 <http://docbook.sf.net/>
2009-09-14 17:22:51 +08:00
. \" Date: 09/14/2009
2009-09-14 18:12:43 +08:00
. \" Manual: Tinyproxy manual
. \" Source: Version 1.7.1
. \" Language: English
2009-09-13 06:02:38 +08:00
. \"
2009-09-14 18:12:43 +08:00
.TH "TINYPROXY" "8" "09/14/2009" "Version 1\&.7\&.1" "Tinyproxy manual"
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-09-13 06:02:38 +08:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-14 18:12:43 +08:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
2009-09-13 06:02:38 +08:00
.SH "NAME"
2009-09-14 18:12:43 +08:00
tinyproxy \- A light\- weight HTTP proxy daemon
2009-09-13 06:02:38 +08:00
.SH "SYNOPSIS"
.sp
2009-09-14 18:12:43 +08:00
\fB tinyproxy\fR [\- vldch]
2009-09-14 17:22:51 +08:00
.SH "DESCRIPTION"
2009-09-13 06:02:38 +08:00
.sp
2009-09-14 18:12:43 +08:00
\fB tinyproxy\fR is a light\- weight HTTP proxy daemon designed to consume a minimum amount of system resources\& . It listens on a given TCP port and handles HTTP proxy requests\& . Designed from the ground up to be fast and yet small, it is an ideal solution for use cases such as embedded deployments where a full featured HTTP proxy is required, but the system resources for a larger proxy are unavailable\& .
2009-09-14 17:22:51 +08:00
.SH "OPTIONS"
2009-09-14 18:12:43 +08:00
.sp
2009-09-13 06:02:38 +08:00
\fB tinyproxy\fR accepts the following options:
.PP
\fB \- c <config\- file>\fR
.RS 4
Use an alternate configuration file\& .
.RE
.PP
\fB \- d\fR
.RS 4
2009-09-14 18:12:43 +08:00
Don\(cq t daemonize and stay in the foreground\& . Useful for debugging purposes\& .
2009-09-13 06:02:38 +08:00
.RE
.PP
\fB \- h\fR
.RS 4
Display a short help screen of command line arguments and exit\& .
.RE
.PP
\fB \- l\fR
.RS 4
Display the licensing agreement\& .
.RE
.PP
\fB \- v\fR
.RS 4
Display version information and exit\& .
.RE
.SH "SIGNALS"
2009-09-14 18:12:43 +08:00
.sp
2009-09-13 06:02:38 +08:00
In addition to command\- line options, there are also several signals that can be sent to \fB tinyproxy\fR while it is running to generate debugging information and to force certain events\& .
.PP
\fB SIGHUP\fR
.RS 4
Force Tinyproxy to do a garbage collection on the current connections linked list\& . This is usually done automatically after a certain number of connections have been handled\& .
.RE
2009-09-14 17:22:51 +08:00
.SH "TEMPLATE FILES"
2009-09-13 06:29:03 +08:00
.sp
2009-09-14 18:21:37 +08:00
There are two occasions when Tinyproxy delivers HTML pages to the client on it\(cq s own right:
2009-09-14 17:22:51 +08:00
.sp
.RS 4
2009-09-14 18:12:43 +08:00
.ie n \{ \
\h '-04' 1.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 1." 4 .2
. \}
When an error occurred, a corresponding error page is returned\& .
2009-09-14 17:22:51 +08:00
.RE
.sp
.RS 4
2009-09-14 18:12:43 +08:00
.ie n \{ \
\h '-04' 2.\h '+01'\c
. \}
.el \{ \
.sp -1
.IP " 2." 4 .2
. \}
When a request for the stathost is made, a page summarizing the connection statistics is returned\& . (See STATHOST below\& .)
2009-09-14 17:22:51 +08:00
.RE
.sp
2009-09-14 18:50:10 +08:00
The layout of both error pages and the statistics page can be controlled via configurable HTML template files that are plain HTML files that additionally understand a few template variables\& .
2009-09-14 17:22:51 +08:00
.SH "TEMPLATE VARIABLES"
2009-09-14 18:12:43 +08:00
.sp
2009-09-13 06:29:03 +08:00
There are several standard HTML variables that are available in every template file:
.PP
\fB request\fR
.RS 4
The full HTTP request line\& .
.RE
.PP
\fB cause\fR
.RS 4
The abbreviated cause of the error condition\& .
.RE
.PP
\fB clientip\fR
.RS 4
The IP address of the client making the request\& .
.RE
.PP
\fB clienthost\fR
.RS 4
The hostname of the client making the request\& .
.RE
.PP
\fB version\fR
.RS 4
2009-09-14 18:21:37 +08:00
The version of Tinyproxy\& .
2009-09-13 06:29:03 +08:00
.RE
.PP
\fB package\fR
.RS 4
The package name\& . Presently, resolves to
\fI tinyproxy\fR \& .
.RE
.PP
\fB date\fR
.RS 4
The current date/time in HTTP format\& .
.RE
2009-09-14 18:12:43 +08:00
.sp
2009-09-13 06:29:03 +08:00
In addition, almost all templates support:
.PP
\fB detail\fR
.RS 4
A detailed, plain English explanation of the error and possible causes\& .
.RE
2009-09-14 17:22:51 +08:00
.sp
2009-09-14 18:21:37 +08:00
When Tinyproxy finds a variable name enclosed in braces, e\& .g\& . "{request}", then this is replaced by the value of the corresponding variable before delivery of the page\& .
2009-09-14 17:22:51 +08:00
.SH "STATHOST"
2009-09-14 18:12:43 +08:00
.sp
2009-09-14 18:21:37 +08:00
Tinyproxy returns a HTML page with connection statistics when it receives a HTTP request for a certain host \(em the stathost\& . The stathost name defaults to tinyproxy\& .stats and can be changed at compile\- time with the configure switch \- \- with\- stathost to any name or IP address\& .
2009-09-14 17:22:51 +08:00
.sp
The stat file template can be changed at runtime through the configuration variable StatFile\& .
.SH "FILES"
2009-09-13 06:02:38 +08:00
.sp
2009-09-14 18:12:43 +08:00
/etc/tinyproxy/tinyproxy\& .conf, /var/run/tinyproxy\& .pid, /var/log/tinyproxy\& .log
2009-09-14 17:22:51 +08:00
.SH "BUGS"
2009-09-13 06:02:38 +08:00
.sp
2009-09-14 18:12:43 +08:00
To report bugs in Tinyproxy, please visit <https://www\& .banu\& .com/tinyproxy/support/>\& .
2009-09-14 17:22:51 +08:00
.SH "COPYRIGHT"
2009-09-14 18:12:43 +08:00
.sp
2009-09-14 17:22:51 +08:00
Copyright (c) 1998\- 2000 Steven Young; Copyright (c) 2000\- 2001 Robert James Kaes; Copyright (c) 2009 Mukund Sivaraman; Copyright (c) 2009 Michael Adam\& .
2009-09-13 06:02:38 +08:00
.sp
This program is distributed under the terms of the GNU General Public License version 2 or above\& . See the COPYING file for additional information\& .