'\" t .\" Title: tinyproxy .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 07/02/2021 .\" Manual: Tinyproxy manual .\" Source: Version 1.10.0 .\" Language: English .\" .TH "TINYPROXY" "8" "07/02/2021" "Version 1\&.10\&.0" "Tinyproxy manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" tinyproxy \- A light\-weight HTTP proxy daemon .SH "SYNOPSIS" .sp \fBtinyproxy\fR [\-vldch] .SH "DESCRIPTION" .sp \fBtinyproxy\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\&. .SH "OPTIONS" .sp \fBtinyproxy\fR accepts the following options: .PP \fB\-c \fR .RS 4 Use an alternate configuration file\&. .RE .PP \fB\-d\fR .RS 4 Don\(cqt daemonize and stay in the foreground\&. Useful for debugging purposes\&. .RE .PP \fB\-h\fR .RS 4 Display a short help screen of command line arguments and exit\&. .RE .PP \fB\-v\fR .RS 4 Display version information and exit\&. .RE .SH "SIGNALS" .sp In addition to command\-line options, there are also several signals that can be sent to \fBtinyproxy\fR while it is running to generate debugging information and to force certain events\&. .PP \fBSIGHUP\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 .SH "TEMPLATE FILES" .sp There are two occasions when Tinyproxy delivers HTML pages to the client on it\(cqs own right: .sp .RS 4 .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\&. .RE .sp .RS 4 .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\&.) .RE .sp 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\&. .SH "TEMPLATE VARIABLES" .sp There are several standard HTML variables that are available in every template file: .PP \fBrequest\fR .RS 4 The full HTTP request line\&. .RE .PP \fBcause\fR .RS 4 The abbreviated cause of the error condition\&. .RE .PP \fBclientip\fR .RS 4 The IP address of the client making the request\&. .RE .PP \fBclienthost\fR .RS 4 The hostname of the client making the request\&. .RE .PP \fBversion\fR .RS 4 The version of Tinyproxy\&. .RE .PP \fBpackage\fR .RS 4 The package name\&. Presently, resolves to \fItinyproxy\fR\&. .RE .PP \fBdate\fR .RS 4 The current date/time in HTTP format\&. .RE .sp In addition, almost all templates support: .PP \fBdetail\fR .RS 4 A detailed, plain English explanation of the error and possible causes\&. .RE .sp 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\&. .SH "STATHOST" .sp 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 runtime to any name or IP address with the configuration variable StatHost\&. .sp The stat file template can be changed at runtime through the configuration variable StatFile\&. .SH "FILES" .sp /etc/tinyproxy/tinyproxy\&.conf, /var/run/tinyproxy/tinyproxy\&.pid, /var/log/tinyproxy/tinyproxy\&.log .SH "BUGS" .sp To report bugs in Tinyproxy, please visit \&. .SH "SEE ALSO" .sp tinyproxy\&.conf(5) .SH "AUTHOR" .sp This manpage was written by the Tinyproxy project team\&. .SH "COPYRIGHT" .sp Copyright (c) 1998\-2018 the Tinyproxy authors\&. .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\&.