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