]> git.ipfire.org Git - thirdparty/squid.git/blame - src/squid.8.in
SourceFormat Enforcement
[thirdparty/squid.git] / src / squid.8.in
CommitLineData
83915266
AJ
1.if !'po4a'hide' .TH squid 8
2.
3.SH NAME
dd90f42f 4squid \- HTTP web proxy caching server
83915266
AJ
5.
6.SH SYNOPSIS
7.if !'po4a'hide' .B squid
8.if !'po4a'hide' .B [\-dhisrvzCFNRSVYX]
9.if !'po4a'hide' .B [\-l
10facility
11.if !'po4a'hide' .B ] [\-f
12config\-file
13.if !'po4a'hide' .B ] [\-[au]
14port
15.if !'po4a'hide' .B ] [\-k
16signal
17.if !'po4a'hide' .B ] [\-n
18service\-name
19.if !'po4a'hide' .B ] [\-O
20command\-line
21.if !'po4a'hide' .B ]
22.
23.SH DESCRIPTION
24.PP
25.B squid
26is a high\-performance proxy caching server for web clients,
27supporting FTP, gopher, ICAP, ICP, HTCP and HTTP data objects.
28Unlike traditional caching software,
29Squid handles all requests in a single, non-blocking process.
30.PP
31Squid keeps meta data and especially hot objects cached in RAM,
32caches DNS lookups, supports non\-blocking DNS lookups, and implements
33negative caching of failed requests.
34.PP
35Squid supports SSL, extensive access controls, and full request logging.
36By using the lightweight Internet Cache Protocols ICP, HTCP or CARP,
37Squid caches can be arranged in a hierarchy or mesh for additional
38bandwidth savings.
39.PP
40Squid consists of a main server program
41.B squid
42, some optional programs for
43custom processing and authentication, and some management and client
44tools. When squid starts up, it spawns a configurable number of
45helper processes, each of which can perform parallel lookups.
46This reduces the amount of time the cache waits for results.
47.PP
48Squid is derived from the ARPA\-funded Harvest Project.
49.PP
50This manual page only lists the command line arguments.
51For details on how to configure Squid see the file
52.BI @SYSCONFDIR@/squid.conf.documented,
53the Squid wiki FAQ and examples at http://wiki.squid-cache.org/ ,
54or the configuration manual on the Squid home page
55.if !'po4a'hide' http://www.squid-cache.org/Doc/config/
56.
57.SH OPTIONS
58.if !'po4a'hide' .TP 12
59.if !'po4a'hide' .B "\-a port"
60Specify HTTP port number where Squid should listen for requests, in addition to any
61.B http_port
62specifications in
63.B squid.conf
64.
65.if !'po4a'hide' .TP
66.if !'po4a'hide' .B \-C
67Do not catch fatal signals.
68.
69.if !'po4a'hide' .TP
70.if !'po4a'hide' .B "\-d level"
71Write debugging to stderr also.
72.
73.if !'po4a'hide' .TP
74.if !'po4a'hide' .B "\-f file"
75Use the given config-file instead of
76.B @SYSCONFDIR@/squid.conf .
77If the file name starts with a
78.B !
79or
80.B |
81then it is assumed to be an external command or command line.
82Can for example be used to pre\-process the configuration before it is being read by Squid.
83To facilitate this Squid also understands the common #line notion to indicate the real source file.
84.
85.if !'po4a'hide' .TP
86.if !'po4a'hide' .B \-F
87Don't serve any requests until store is rebuilt.
88.
89.if !'po4a'hide' .TP
90.if !'po4a'hide' .B \-h
91Print help message.
92.
93.if !'po4a'hide' .TP
94.if !'po4a'hide' .B \-i
95Install as a Windows Service (see
96.B \-n
97option).
98.
99.if !'po4a'hide' .TP
100.if !'po4a'hide' .B "\-k reconfigure | rotate | shutdown | interrupt | kill | debug | check | parse"
101Parse configuration file, then send signal to running copy
102(except
103.B "\-k parse"
104) and exit.
105.
106.if !'po4a'hide' .TP
107.if !'po4a'hide' .B "\-l facility"
e1b65506 108Use specified syslog facility. Implies
83915266
AJ
109.B \-s
110.
111.if !'po4a'hide' .TP
112.if !'po4a'hide' .B "\-n name"
113Specify Windows Service name to use for service operations, default is:
114.B Squid
115.
116.if !'po4a'hide' .TP
117.if !'po4a'hide' .B \-N
118No daemon mode.
119.
120.if !'po4a'hide' .TP
effda67e
MM
121.if !'po4a'hide' .B \--foreground
122Parent process does not exit until its children have finished. It has no effect with
123.B \-N
124which does not fork/exit at startup.
125.
126.if !'po4a'hide' .TP
83915266
AJ
127.if !'po4a'hide' .B "\-O options"
128Set Windows Service Command line options in Registry.
129.
130.if !'po4a'hide' .TP
131.if !'po4a'hide' .B \-r
132Remove a Windows Service (see
133.B \-n
134option).
135.
136.if !'po4a'hide' .TP
137.if !'po4a'hide' .B \-R
138Do not set
139.B REUSEADDR
140on port.
141.
142.if !'po4a'hide' .TP
143.if !'po4a'hide' .B \-s
144Enable logging to syslog. Also configurable in
145.BI @SYSCONFDIR@/squid.conf
146.
147.if !'po4a'hide' .TP
148.if !'po4a'hide' .B \-S
149Double-check swap during rebuild.
150.
151.if !'po4a'hide' .TP
152.if !'po4a'hide' .B "\-u port"
153Specify ICP port number (default: 3130), disable with 0.
154.
155.if !'po4a'hide' .TP
156.if !'po4a'hide' .B \-v
157Print version and build details.
158.
159.if !'po4a'hide' .TP
160.if !'po4a'hide' .B \-X
161Force full debugging.
162.
163.if !'po4a'hide' .TP
164.if !'po4a'hide' .B \-Y
165Only return
166.B UDP_HIT
167or
168.B UDP_MISS_NOFETCH
169during fast reload.
170.
171.if !'po4a'hide' .TP
172.if !'po4a'hide' .B \-z
04632397
AR
173Create missing swap directories and other missing cache_dir structures,
174then exit. All cache_dir types create the configured top-level directory if
175it is missing. Other actions are type-specific. For example, ufs-based
176storage systems create missing L1 and L2 directories while Rock creates
177the missing database file.
178.IP
179This option does not enable validation of any present swap structures. Its
180focus is on creation of missing pieces. If nothing is missing, squid -z
181just exits. If you suspect cache_dir corruption, you must delete the top-level
182cache_dir directory before running squid -z.
183.IP
184By default, squid -z runs in daemon mode (so that configuration macros and
185other SMP features work as expected). Use
186.B \-N
187option to overwrite this.
83915266
AJ
188.
189.SH FILES
190Squid configuration files located in @SYSCONFDIR@/:
191.
192.if !'po4a'hide' .IP "squid.conf"
193The main configuration file. You must initially make changes to this file for
194.B squid
e1b65506
AJ
195to work. For example, the default configuration only allows access from RFC private LAN networks.
196Some packaging distributions block even that.
83915266
AJ
197.
198.if !'po4a'hide' .IP "squid.conf.default"
199Reference copy of the configuration file. Always kept up to date with
200the version of Squid you are using.
201.IP
202Use this to look up the default configuration settings and syntax after upgrading.
203.
204.if !'po4a'hide' .IP "squid.conf.documented"
205Reference copy of the configuration file. Always kept up to date with
206the version of Squid you are using.
207.IP
208Use this to read the documentation for configuration options available in
209your build of Squid. The online configuration manual is also available for
210a full reference of options.
211.BR see http://www.squid-cache.org/Doc/config/
212.
213.if !'po4a'hide' .IP "cachemgr.conf"
214The main configuration file for the web
215.B cachemgr.cgi
216tools.
217.
218.if !'po4a'hide' .IP "msntauth.conf"
219The main configuration file for the Sample MSNT authenticator.
220.
221.if !'po4a'hide' .IP "errorpage.css"
222CSS Stylesheet to control the display of generated error pages.
223Use this to set any company branding you need, it will apply to every
224language Squid provides error pages for.
225.PP
226.br
227Some files also located elsewhere:
228.
229.if !'po4a'hide' .IP "@DEFAULT_MIME_TABLE@ (mime_table)"
230MIME type mappings for FTP gatewaying
231.
232.if !'po4a'hide' .IP "@DEFAULT_ERROR_DIR@"
233Location of Squid error pages and templates.
234.
235.SH AUTHOR
236Squid was written over many years by a changing team of developers and maintained in turn by
237.if !'po4a'hide' .I Duane Wessels <duane@squid-cache.org>
238.if !'po4a'hide' .I Henrik Nordstrom <hno@squid-cache.org>
239.if !'po4a'hide' .I Amos Jeffries <amosjeffries@squid-cache.org>
240.PP
241With contributions from many others in the Squid community.
242see CONTRIBUTORS for a full list of individuals who contributed code.
243see CREDITS for a list of major code contributing copyright holders.
244.
245.SH COPYRIGHT
246.PP
4ac4a490 247 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
9a1b46cc
AJ
248 *
249 * Squid software is distributed under GPLv2+ license and includes
250 * contributions from numerous individuals and organizations.
251 * Please see the COPYING and CONTRIBUTORS files for details.
83915266
AJ
252.
253.SH QUESTIONS
254Questions on the usage of this program can be sent to the
255.I Squid Users mailing list
256.if !'po4a'hide' <squid-users@squid-cache.org>
257.
258.SH REPORTING BUGS
c871f41e
AJ
259Bug reports need to be made in English.
260See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report.
261.PP
83915266
AJ
262Report bugs or bug fixes using http://bugs.squid-cache.org/
263.PP
264Report serious security bugs to
265.I Squid Bugs <squid-bugs@squid-cache.org>
266.PP
267Report ideas for new improvements to the
268.I Squid Developers mailing list
269.if !'po4a'hide' <squid-dev@squid-cache.org>
270.
271.SH SEE ALSO
272.if !'po4a'hide' .B cachemgr.cgi "(8), "
273.if !'po4a'hide' .B squidclient "(1), "
274.if !'po4a'hide' .B pam_auth "(8), "
275.if !'po4a'hide' .B squid_ldap_auth "(8), "
276.if !'po4a'hide' .B squid_ldap_group "(8), "
9e8f57e0 277.if !'po4a'hide' .B ext_session_acl "(8), "
83915266
AJ
278.if !'po4a'hide' .B squid_unix_group "(8), "
279.br
280The Squid FAQ wiki
281.if !'po4a'hide' http://wiki.squid-cache.org/SquidFaq
282.br
283The Squid Configuration Manual
284.if !'po4a'hide' http://www.squid-cache.org/Doc/config/