]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
Added Adaptation::Message that brings together the HttpMsg and the
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
3a278cb8 1
9cef6668 2#
c255af72 3# $Id: cf.data.pre,v 1.502 2008/02/12 00:05:11 amosjeffries Exp $
9cef6668 4#
6845f129 5# SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 6# ----------------------------------------------------------
7#
2b6662ba 8# Squid is the result of efforts by numerous individuals from
9# the Internet community; see the CONTRIBUTORS file for full
10# details. Many organizations have provided support for Squid's
11# development; see the SPONSORS file for full details. Squid is
12# Copyrighted (C) 2000 by the Regents of the University of
13# California; see the COPYRIGHT file for full details. Squid
14# incorporates software developed and/or copyrighted by other
15# sources; see the CREDITS file for full details.
9cef6668 16#
17# This program is free software; you can redistribute it and/or modify
18# it under the terms of the GNU General Public License as published by
19# the Free Software Foundation; either version 2 of the License, or
20# (at your option) any later version.
96d88dcb 21#
9cef6668 22# This program is distributed in the hope that it will be useful,
23# but WITHOUT ANY WARRANTY; without even the implied warranty of
24# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25# GNU General Public License for more details.
96d88dcb 26#
9cef6668 27# You should have received a copy of the GNU General Public License
28# along with this program; if not, write to the Free Software
29# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
30#
31
0f74202c 32COMMENT_START
cccac0a2 33 WELCOME TO SQUID @VERSION@
34 ----------------------------
3a278cb8 35
cccac0a2 36 This is the default Squid configuration file. You may wish
37 to look at the Squid home page (http://www.squid-cache.org/)
38 for the FAQ and other documentation.
3a278cb8 39
cccac0a2 40 The default Squid config file shows what the defaults for
41 various options happen to be. If you don't need to change the
42 default, you shouldn't uncomment the line. Doing so may cause
43 run-time problems. In some cases "none" refers to no default
44 setting at all, while in other cases it refers to a valid
45 option - the comments for that keyword indicate if this is the
46 case.
debd9a31 47
cccac0a2 48COMMENT_END
3a278cb8 49
592a09dc 50COMMENT_START
51 Configuration options can be included using the "include" directive.
52 Include takes a list of files to include. Quoting and wildcards is
53 supported.
54
55 For example,
56
57 include /path/to/included/file/squid.acl.config
58
59 Includes can be nested up to a hard-coded depth of 16 levels.
60 This arbitrary restriction is to prevent recursive include references
61 from causing Squid entering an infinite loop whilst trying to load
62 configuration files.
63COMMENT_END
64
5473c134 65COMMENT_START
41bd17a4 66 OPTIONS FOR AUTHENTICATION
5473c134 67 -----------------------------------------------------------------------------
68COMMENT_END
69
41bd17a4 70NAME: auth_param
71TYPE: authparam
72LOC: Config.authConfiguration
cccac0a2 73DEFAULT: none
74DOC_START
41bd17a4 75 This is used to define parameters for the various authentication
76 schemes supported by Squid.
cccac0a2 77
41bd17a4 78 format: auth_param scheme parameter [setting]
cccac0a2 79
41bd17a4 80 The order in which authentication schemes are presented to the client is
81 dependent on the order the scheme first appears in config file. IE
82 has a bug (it's not RFC 2617 compliant) in that it will use the basic
83 scheme if basic is the first entry presented, even if more secure
84 schemes are presented. For now use the order in the recommended
85 settings section below. If other browsers have difficulties (don't
86 recognize the schemes offered even if you are using basic) either
87 put basic first, or disable the other schemes (by commenting out their
88 program entry).
cccac0a2 89
41bd17a4 90 Once an authentication scheme is fully configured, it can only be
91 shutdown by shutting squid down and restarting. Changes can be made on
92 the fly and activated with a reconfigure. I.E. You can change to a
93 different helper, but not unconfigure the helper completely.
cccac0a2 94
41bd17a4 95 Please note that while this directive defines how Squid processes
96 authentication it does not automatically activate authentication.
97 To use authentication you must in addition make use of ACLs based
98 on login name in http_access (proxy_auth, proxy_auth_regex or
99 external with %LOGIN used in the format tag). The browser will be
100 challenged for authentication on the first such acl encountered
101 in http_access processing and will also be re-challenged for new
102 login credentials if the request is being denied by a proxy_auth
103 type acl.
cccac0a2 104
41bd17a4 105 WARNING: authentication can't be used in a transparently intercepting
106 proxy as the client then thinks it is talking to an origin server and
107 not the proxy. This is a limitation of bending the TCP/IP protocol to
108 transparently intercepting port 80, not a limitation in Squid.
cccac0a2 109
41bd17a4 110 === Parameters for the basic scheme follow. ===
cccac0a2 111
41bd17a4 112 "program" cmdline
113 Specify the command for the external authenticator. Such a program
114 reads a line containing "username password" and replies "OK" or
115 "ERR" in an endless loop. "ERR" responses may optionally be followed
116 by a error description available as %m in the returned error page.
117 If you use an authenticator, make sure you have 1 acl of type proxy_auth.
cccac0a2 118
41bd17a4 119 By default, the basic authentication scheme is not used unless a
120 program is specified.
cccac0a2 121
41bd17a4 122 If you want to use the traditional NCSA proxy authentication, set
123 this line to something like
307b83b7 124
41bd17a4 125 auth_param basic program @DEFAULT_PREFIX@/libexec/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
9e7dbc51 126
41bd17a4 127 "children" numberofchildren
128 The number of authenticator processes to spawn. If you start too few
129 Squid will have to wait for them to process a backlog of credential
130 verifications, slowing it down. When password verifications are
131 done via a (slow) network you are likely to need lots of
132 authenticator processes.
133 auth_param basic children 5
9e7dbc51 134
41bd17a4 135 "concurrency" concurrency
136 The number of concurrent requests the helper can process.
137 The default of 0 is used for helpers who only supports
138 one request at a time. Setting this changes the protocol used to
139 include a channel number first on the request/response line, allowing
140 multiple requests to be sent to the same helper in parallell without
141 wating for the response.
142 Must not be set unless it's known the helper supports this.
143 auth_param basic concurrency 0
0fdafae7 144
41bd17a4 145 "realm" realmstring
146 Specifies the realm name which is to be reported to the
147 client for the basic proxy authentication scheme (part of
148 the text the user will see when prompted their username and
149 password). There is no default.
150 auth_param basic realm Squid proxy-caching web server
d1b63fc8 151
41bd17a4 152 "credentialsttl" timetolive
153 Specifies how long squid assumes an externally validated
154 username:password pair is valid for - in other words how
155 often the helper program is called for that user. Set this
156 low to force revalidation with short lived passwords. Note
157 setting this high does not impact your susceptibility
158 to replay attacks unless you are using an one-time password
159 system (such as SecureID). If you are using such a system,
160 you will be vulnerable to replay attacks unless you also
161 use the max_user_ip ACL in an http_access rule.
cccac0a2 162
41bd17a4 163 "casesensitive" on|off
164 Specifies if usernames are case sensitive. Most user databases are
165 case insensitive allowing the same username to be spelled using both
166 lower and upper case letters, but some are case sensitive. This
167 makes a big difference for user_max_ip ACL processing and similar.
168 auth_param basic casesensitive off
cccac0a2 169
41bd17a4 170 === Parameters for the digest scheme follow ===
cccac0a2 171
41bd17a4 172 "program" cmdline
173 Specify the command for the external authenticator. Such
174 a program reads a line containing "username":"realm" and
175 replies with the appropriate H(A1) value hex encoded or
176 ERR if the user (or his H(A1) hash) does not exists.
177 See rfc 2616 for the definition of H(A1).
178 "ERR" responses may optionally be followed by a error description
179 available as %m in the returned error page.
cccac0a2 180
41bd17a4 181 By default, the digest authentication scheme is not used unless a
182 program is specified.
b8c0c06d 183
41bd17a4 184 If you want to use a digest authenticator, set this line to
185 something like
cccac0a2 186
41bd17a4 187 auth_param digest program @DEFAULT_PREFIX@/bin/digest_auth_pw @DEFAULT_PREFIX@/etc/digpass
cccac0a2 188
41bd17a4 189 "children" numberofchildren
190 The number of authenticator processes to spawn (no default).
191 If you start too few Squid will have to wait for them to
192 process a backlog of H(A1) calculations, slowing it down.
193 When the H(A1) calculations are done via a (slow) network
194 you are likely to need lots of authenticator processes.
195 auth_param digest children 5
cccac0a2 196
41bd17a4 197 "realm" realmstring
198 Specifies the realm name which is to be reported to the
199 client for the digest proxy authentication scheme (part of
200 the text the user will see when prompted their username and
201 password). There is no default.
202 auth_param digest realm Squid proxy-caching web server
cccac0a2 203
41bd17a4 204 "nonce_garbage_interval" timeinterval
205 Specifies the interval that nonces that have been issued
206 to client_agent's are checked for validity.
cccac0a2 207
41bd17a4 208 "nonce_max_duration" timeinterval
209 Specifies the maximum length of time a given nonce will be
210 valid for.
cccac0a2 211
41bd17a4 212 "nonce_max_count" number
213 Specifies the maximum number of times a given nonce can be
214 used.
cccac0a2 215
41bd17a4 216 "nonce_strictness" on|off
217 Determines if squid requires strict increment-by-1 behavior
218 for nonce counts, or just incrementing (off - for use when
219 useragents generate nonce counts that occasionally miss 1
220 (ie, 1,2,4,6)). Default off.
cccac0a2 221
41bd17a4 222 "check_nonce_count" on|off
223 This directive if set to off can disable the nonce count check
224 completely to work around buggy digest qop implementations in
225 certain mainstream browser versions. Default on to check the
226 nonce count to protect from authentication replay attacks.
cccac0a2 227
41bd17a4 228 "post_workaround" on|off
229 This is a workaround to certain buggy browsers who sends
230 an incorrect request digest in POST requests when reusing
231 the same nonce as acquired earlier on a GET request.
cccac0a2 232
41bd17a4 233 === NTLM scheme options follow ===
cccac0a2 234
41bd17a4 235 "program" cmdline
236 Specify the command for the external NTLM authenticator.
237 Such a program reads exchanged NTLMSSP packets with
238 the browser via Squid until authentication is completed.
239 If you use an NTLM authenticator, make sure you have 1 acl
240 of type proxy_auth. By default, the NTLM authenticator_program
241 is not used.
cccac0a2 242
41bd17a4 243 auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth
cccac0a2 244
41bd17a4 245 "children" numberofchildren
246 The number of authenticator processes to spawn (no default).
247 If you start too few Squid will have to wait for them to
248 process a backlog of credential verifications, slowing it
249 down. When credential verifications are done via a (slow)
250 network you are likely to need lots of authenticator
251 processes.
cccac0a2 252
41bd17a4 253 auth_param ntlm children 5
cccac0a2 254
41bd17a4 255 "keep_alive" on|off
256 If you experience problems with PUT/POST requests when using the
257 Negotiate authentication scheme then you can try setting this to
258 off. This will cause Squid to forcibly close the connection on
259 the initial requests where the browser asks which schemes are
260 supported by the proxy.
cccac0a2 261
41bd17a4 262 auth_param ntlm keep_alive on
cccac0a2 263
41bd17a4 264 === Options for configuring the NEGOTIATE auth-scheme follow ===
cccac0a2 265
41bd17a4 266 "program" cmdline
267 Specify the command for the external Negotiate authenticator.
268 This protocol is used in Microsoft Active-Directory enabled setups with
269 the Microsoft Internet Explorer or Mozilla Firefox browsers.
270 Its main purpose is to exchange credentials with the Squid proxy
271 using the Kerberos mechanisms.
272 If you use a Negotiate authenticator, make sure you have at least one acl
273 of type proxy_auth active. By default, the negotiate authenticator_program
274 is not used.
275 The only supported program for this role is the ntlm_auth
276 program distributed as part of Samba, version 4 or later.
cccac0a2 277
41bd17a4 278 auth_param negotiate program @DEFAULT_PREFIX@/bin/ntlm_auth --helper-protocol=gss-spnego
cccac0a2 279
41bd17a4 280 "children" numberofchildren
281 The number of authenticator processes to spawn (no default).
282 If you start too few Squid will have to wait for them to
283 process a backlog of credential verifications, slowing it
284 down. When crendential verifications are done via a (slow)
285 network you are likely to need lots of authenticator
286 processes.
287 auth_param negotiate children 5
d3803853 288
41bd17a4 289 "keep_alive" on|off
290 If you experience problems with PUT/POST requests when using the
291 Negotiate authentication scheme then you can try setting this to
292 off. This will cause Squid to forcibly close the connection on
293 the initial requests where the browser asks which schemes are
294 supported by the proxy.
527ee50d 295
41bd17a4 296 auth_param negotiate keep_alive on
cccac0a2 297
41bd17a4 298NOCOMMENT_START
299#Recommended minimum configuration per scheme:
300#auth_param negotiate program <uncomment and complete this line to activate>
301#auth_param negotiate children 5
302#auth_param negotiate keep_alive on
303#auth_param ntlm program <uncomment and complete this line to activate>
304#auth_param ntlm children 5
305#auth_param ntlm keep_alive on
306#auth_param digest program <uncomment and complete this line>
307#auth_param digest children 5
308#auth_param digest realm Squid proxy-caching web server
309#auth_param digest nonce_garbage_interval 5 minutes
310#auth_param digest nonce_max_duration 30 minutes
311#auth_param digest nonce_max_count 50
312#auth_param basic program <uncomment and complete this line>
313#auth_param basic children 5
314#auth_param basic realm Squid proxy-caching web server
315#auth_param basic credentialsttl 2 hours
316NOCOMMENT_END
317DOC_END
cccac0a2 318
41bd17a4 319NAME: authenticate_cache_garbage_interval
320TYPE: time_t
321DEFAULT: 1 hour
322LOC: Config.authenticateGCInterval
323DOC_START
324 The time period between garbage collection across the username cache.
325 This is a tradeoff between memory utilization (long intervals - say
326 2 days) and CPU (short intervals - say 1 minute). Only change if you
327 have good reason to.
328DOC_END
cccac0a2 329
41bd17a4 330NAME: authenticate_ttl
331TYPE: time_t
332DEFAULT: 1 hour
333LOC: Config.authenticateTTL
334DOC_START
335 The time a user & their credentials stay in the logged in
336 user cache since their last request. When the garbage
337 interval passes, all user credentials that have passed their
338 TTL are removed from memory.
339DOC_END
cccac0a2 340
41bd17a4 341NAME: authenticate_ip_ttl
342TYPE: time_t
343LOC: Config.authenticateIpTTL
344DEFAULT: 0 seconds
345DOC_START
346 If you use proxy authentication and the 'max_user_ip' ACL,
347 this directive controls how long Squid remembers the IP
348 addresses associated with each user. Use a small value
349 (e.g., 60 seconds) if your users might change addresses
350 quickly, as is the case with dialups. You might be safe
351 using a larger value (e.g., 2 hours) in a corporate LAN
352 environment with relatively static address assignments.
353DOC_END
cccac0a2 354
3d1e3e43 355COMMENT_START
356 ACCESS CONTROLS
357 -----------------------------------------------------------------------------
358COMMENT_END
359
41bd17a4 360NAME: external_acl_type
361TYPE: externalAclHelper
362LOC: Config.externalAclHelperList
cccac0a2 363DEFAULT: none
cccac0a2 364DOC_START
41bd17a4 365 This option defines external acl classes using a helper program
366 to look up the status
cccac0a2 367
41bd17a4 368 external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..]
cccac0a2 369
41bd17a4 370 Options:
cccac0a2 371
41bd17a4 372 ttl=n TTL in seconds for cached results (defaults to 3600
373 for 1 hour)
374 negative_ttl=n
375 TTL for cached negative lookups (default same
376 as ttl)
377 children=n Number of acl helper processes spawn to service
378 external acl lookups of this type. (default 5)
379 concurrency=n concurrency level per process. Only used with helpers
380 capable of processing more than one query at a time.
381 cache=n result cache size, 0 is unbounded (default)
382 grace=n Percentage remaining of TTL where a refresh of a
383 cached entry should be initiated without needing to
384 wait for a new reply. (default 0 for no grace period)
385 protocol=2.5 Compatibility mode for Squid-2.5 external acl helpers
cc192b50 386 ipv4 / ipv6 IP-mode used to communicate to this helper.
387 For compatability with older configurations and helpers
388 'ipv4' is the default unless --with-localhost-ipv6 is used.
389 --with-localhost-ipv6 changes the default to 'ipv6'.
390 SPECIAL NOTE: these options override --with-localhost-ipv6
cccac0a2 391
41bd17a4 392 FORMAT specifications
cccac0a2 393
41bd17a4 394 %LOGIN Authenticated user login name
395 %EXT_USER Username from external acl
396 %IDENT Ident user name
397 %SRC Client IP
398 %SRCPORT Client source port
399 %URI Requested URI
400 %DST Requested host
401 %PROTO Requested protocol
402 %PORT Requested port
403 %PATH Requested URL path
404 %METHOD Request method
405 %MYADDR Squid interface address
406 %MYPORT Squid http_port number
407 %PATH Requested URL-path (including query-string if any)
408 %USER_CERT SSL User certificate in PEM format
409 %USER_CERTCHAIN SSL User certificate chain in PEM format
410 %USER_CERT_xx SSL User certificate subject attribute xx
411 %USER_CA_xx SSL User certificate issuer attribute xx
412 %{Header} HTTP request header
413 %{Hdr:member} HTTP request header list member
414 %{Hdr:;member}
415 HTTP request header list member using ; as
416 list separator. ; can be any non-alphanumeric
417 character.
cccac0a2 418
41bd17a4 419 In addition to the above, any string specified in the referencing
420 acl will also be included in the helper request line, after the
421 specified formats (see the "acl external" directive)
cccac0a2 422
41bd17a4 423 The helper receives lines per the above format specification,
424 and returns lines starting with OK or ERR indicating the validity
425 of the request and optionally followed by additional keywords with
426 more details.
cccac0a2 427
41bd17a4 428 General result syntax:
cccac0a2 429
41bd17a4 430 OK/ERR keyword=value ...
cccac0a2 431
41bd17a4 432 Defined keywords:
cccac0a2 433
41bd17a4 434 user= The users name (login)
435 password= The users password (for login= cache_peer option)
436 message= Message describing the reason. Available as %o
437 in error pages
438 tag= Apply a tag to a request (for both ERR and OK results)
439 Only sets a tag, does not alter existing tags.
440 log= String to be logged in access.log. Available as
441 %ea in logformat specifications
934b03fc 442
41bd17a4 443 If protocol=3.0 (the default) then URL escaping is used to protect
444 each value in both requests and responses.
6a566b9c 445
41bd17a4 446 If using protocol=2.5 then all values need to be enclosed in quotes
447 if they may contain whitespace, or the whitespace escaped using \.
448 And quotes or \ characters within the keyword value must be \ escaped.
1e5562e3 449
41bd17a4 450 When using the concurrency= option the protocol is changed by
451 introducing a query channel tag infront of the request/response.
452 The query channel tag is a number between 0 and concurrency-1.
cccac0a2 453DOC_END
454
41bd17a4 455NAME: acl
456TYPE: acl
457LOC: Config.aclList
1f5bd0a4 458DEFAULT: all src all
cccac0a2 459DOC_START
41bd17a4 460 Defining an Access List
cccac0a2 461
41bd17a4 462 acl aclname acltype string1 ...
463 acl aclname acltype "file" ...
cccac0a2 464
41bd17a4 465 when using "file", the file should contain one item per line
cccac0a2 466
41bd17a4 467 acltype is one of the types described below
cccac0a2 468
41bd17a4 469 By default, regular expressions are CASE-SENSITIVE. To make
470 them case-insensitive, use the -i option.
cccac0a2 471
41bd17a4 472 acl aclname src ip-address/netmask ... (clients IP address)
473 acl aclname src addr1-addr2/netmask ... (range of addresses)
474 acl aclname dst ip-address/netmask ... (URL host's IP address)
475 acl aclname myip ip-address/netmask ... (local socket IP address)
cccac0a2 476
41bd17a4 477 acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
478 # The arp ACL requires the special configure option --enable-arp-acl.
479 # Furthermore, the ARP ACL code is not portable to all operating systems.
480 # It works on Linux, Solaris, Windows, FreeBSD, and some other *BSD variants.
481 #
482 # NOTE: Squid can only determine the MAC address for clients that are on
483 # the same subnet. If the client is on a different subnet, then Squid cannot
484 # find out its MAC address.
934b03fc 485
41bd17a4 486 acl aclname srcdomain .foo.com ... # reverse lookup, client IP
487 acl aclname dstdomain .foo.com ... # Destination server from URL
488 acl aclname srcdom_regex [-i] xxx ... # regex matching client name
489 acl aclname dstdom_regex [-i] xxx ... # regex matching server
490 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
491 # based URL is used and no match is found. The name "none" is used
492 # if the reverse lookup fails.
9bc73deb 493
41bd17a4 494 acl aclname http_status 200 301 500- 400-403 ... # status code in reply
7f7db318 495
41bd17a4 496 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
497 day-abbrevs:
498 S - Sunday
499 M - Monday
500 T - Tuesday
501 W - Wednesday
502 H - Thursday
503 F - Friday
504 A - Saturday
505 h1:m1 must be less than h2:m2
506 acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
507 acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path
508 acl aclname port 80 70 21 ...
509 acl aclname port 0-1024 ... # ranges allowed
510 acl aclname myport 3128 ... # (local socket TCP port)
197f6b3c 511 acl aclname myportname 3128 ... # http(s)_port name
41bd17a4 512 acl aclname proto HTTP FTP ...
513 acl aclname method GET POST ...
514 acl aclname browser [-i] regexp ...
515 # pattern match on User-Agent header (see also req_header below)
516 acl aclname referer_regex [-i] regexp ...
517 # pattern match on Referer header
518 # Referer is highly unreliable, so use with care
519 acl aclname ident username ...
520 acl aclname ident_regex [-i] pattern ...
521 # string match on ident output.
522 # use REQUIRED to accept any non-null ident.
523 acl aclname src_as number ...
524 acl aclname dst_as number ...
525 # Except for access control, AS numbers can be used for
526 # routing of requests to specific caches. Here's an
527 # example for routing all requests for AS#1241 and only
528 # those to mycache.mydomain.net:
529 # acl asexample dst_as 1241
530 # cache_peer_access mycache.mydomain.net allow asexample
531 # cache_peer_access mycache_mydomain.net deny all
cf5cc17e 532
41bd17a4 533 acl aclname proxy_auth [-i] username ...
534 acl aclname proxy_auth_regex [-i] pattern ...
535 # list of valid usernames
536 # use REQUIRED to accept any valid username.
537 #
538 # NOTE: when a Proxy-Authentication header is sent but it is not
539 # needed during ACL checking the username is NOT logged
540 # in access.log.
541 #
542 # NOTE: proxy_auth requires a EXTERNAL authentication program
543 # to check username/password combinations (see
544 # auth_param directive).
545 #
546 # NOTE: proxy_auth can't be used in a transparent proxy as
547 # the browser needs to be configured for using a proxy in order
548 # to respond to proxy authentication.
8e8d4f30 549
41bd17a4 550 acl aclname snmp_community string ...
551 # A community string to limit access to your SNMP Agent
552 # Example:
553 #
554 # acl snmppublic snmp_community public
934b03fc 555
41bd17a4 556 acl aclname maxconn number
557 # This will be matched when the client's IP address has
558 # more than <number> HTTP connections established.
1e5562e3 559
41bd17a4 560 acl aclname max_user_ip [-s] number
561 # This will be matched when the user attempts to log in from more
562 # than <number> different ip addresses. The authenticate_ip_ttl
563 # parameter controls the timeout on the ip entries.
564 # If -s is specified the limit is strict, denying browsing
565 # from any further IP addresses until the ttl has expired. Without
566 # -s Squid will just annoy the user by "randomly" denying requests.
567 # (the counter is reset each time the limit is reached and a
568 # request is denied)
569 # NOTE: in acceleration mode or where there is mesh of child proxies,
570 # clients may appear to come from multiple addresses if they are
571 # going through proxy farms, so a limit of 1 may cause user problems.
cccac0a2 572
41bd17a4 573 acl aclname req_mime_type mime-type1 ...
574 # regex match against the mime type of the request generated
575 # by the client. Can be used to detect file upload or some
576 # types HTTP tunneling requests.
577 # NOTE: This does NOT match the reply. You cannot use this
578 # to match the returned file type.
cccac0a2 579
41bd17a4 580 acl aclname req_header header-name [-i] any\.regex\.here
581 # regex match against any of the known request headers. May be
582 # thought of as a superset of "browser", "referer" and "mime-type"
583 # ACLs.
cccac0a2 584
41bd17a4 585 acl aclname rep_mime_type mime-type1 ...
586 # regex match against the mime type of the reply received by
587 # squid. Can be used to detect file download or some
588 # types HTTP tunneling requests.
589 # NOTE: This has no effect in http_access rules. It only has
590 # effect in rules that affect the reply data stream such as
591 # http_reply_access.
cccac0a2 592
41bd17a4 593 acl aclname rep_header header-name [-i] any\.regex\.here
594 # regex match against any of the known reply headers. May be
595 # thought of as a superset of "browser", "referer" and "mime-type"
596 # ACLs.
cccac0a2 597
41bd17a4 598 acl acl_name external class_name [arguments...]
599 # external ACL lookup via a helper class defined by the
600 # external_acl_type directive.
cccac0a2 601
41bd17a4 602 acl aclname user_cert attribute values...
603 # match against attributes in a user SSL certificate
604 # attribute is one of DN/C/O/CN/L/ST
cccac0a2 605
41bd17a4 606 acl aclname ca_cert attribute values...
607 # match against attributes a users issuing CA SSL certificate
608 # attribute is one of DN/C/O/CN/L/ST
cccac0a2 609
41bd17a4 610 acl aclname ext_user username ...
611 acl aclname ext_user_regex [-i] pattern ...
612 # string match on username returned by external acl helper
613 # use REQUIRED to accept any non-null user name.
cccac0a2 614
41bd17a4 615Examples:
616acl macaddress arp 09:00:2b:23:45:67
617acl myexample dst_as 1241
618acl password proxy_auth REQUIRED
619acl fileupload req_mime_type -i ^multipart/form-data$
620acl javascript rep_mime_type -i ^application/x-javascript$
cccac0a2 621
41bd17a4 622NOCOMMENT_START
623#Recommended minimum configuration:
41bd17a4 624acl manager proto cache_object
ee776778 625acl localhost src 127.0.0.1/32
41bd17a4 626acl to_localhost dst 127.0.0.0/8
ee776778 627#
628# Example rule allowing access from your local networks.
629# Adapt to list your (internal) IP networks from where browsing
630# should be allowed
631acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
632acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
633acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
634#
41bd17a4 635acl SSL_ports port 443
636acl Safe_ports port 80 # http
637acl Safe_ports port 21 # ftp
638acl Safe_ports port 443 # https
639acl Safe_ports port 70 # gopher
640acl Safe_ports port 210 # wais
641acl Safe_ports port 1025-65535 # unregistered ports
642acl Safe_ports port 280 # http-mgmt
643acl Safe_ports port 488 # gss-http
644acl Safe_ports port 591 # filemaker
645acl Safe_ports port 777 # multiling http
646acl CONNECT method CONNECT
647NOCOMMENT_END
648DOC_END
cccac0a2 649
41bd17a4 650NAME: http_access
651TYPE: acl_access
652LOC: Config.accessList.http
653DEFAULT: none
654DEFAULT_IF_NONE: deny all
655DOC_START
656 Allowing or Denying access based on defined access lists
cccac0a2 657
41bd17a4 658 Access to the HTTP port:
659 http_access allow|deny [!]aclname ...
cccac0a2 660
41bd17a4 661 NOTE on default values:
cccac0a2 662
41bd17a4 663 If there are no "access" lines present, the default is to deny
664 the request.
cccac0a2 665
41bd17a4 666 If none of the "access" lines cause a match, the default is the
667 opposite of the last line in the list. If the last line was
668 deny, the default is allow. Conversely, if the last line
669 is allow, the default will be deny. For these reasons, it is a
670 good idea to have an "deny all" or "allow all" entry at the end
671 of your access lists to avoid potential confusion.
cccac0a2 672
41bd17a4 673NOCOMMENT_START
674#Recommended minimum configuration:
675#
676# Only allow cachemgr access from localhost
677http_access allow manager localhost
678http_access deny manager
679# Deny requests to unknown ports
680http_access deny !Safe_ports
681# Deny CONNECT to other than SSL ports
682http_access deny CONNECT !SSL_ports
683#
684# We strongly recommend the following be uncommented to protect innocent
685# web applications running on the proxy server who think the only
686# one who can access services on "localhost" is a local user
687#http_access deny to_localhost
688#
689# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
c8f4eac4 690
ee776778 691# Example rule allowing access from your local networks.
692# Adapt localnet in the ACL section to list your (internal) IP networks
693# from where browsing should be allowed
694http_access allow localnet
7d90757b 695
41bd17a4 696# And finally deny all other access to this proxy
697http_access deny all
698NOCOMMENT_END
699DOC_END
7d90757b 700
41bd17a4 701NAME: http_reply_access
702TYPE: acl_access
703LOC: Config.accessList.reply
704DEFAULT: none
705DOC_START
706 Allow replies to client requests. This is complementary to http_access.
cccac0a2 707
41bd17a4 708 http_reply_access allow|deny [!] aclname ...
cccac0a2 709
41bd17a4 710 NOTE: if there are no access lines present, the default is to allow
711 all replies
1a224843 712
41bd17a4 713 If none of the access lines cause a match the opposite of the
714 last line will apply. Thus it is good practice to end the rules
715 with an "allow all" or "deny all" entry.
cccac0a2 716DOC_END
717
41bd17a4 718NAME: icp_access
719TYPE: acl_access
720LOC: Config.accessList.icp
721DEFAULT: none
722DEFAULT_IF_NONE: deny all
5473c134 723DOC_START
41bd17a4 724 Allowing or Denying access to the ICP port based on defined
725 access lists
5473c134 726
41bd17a4 727 icp_access allow|deny [!]aclname ...
5473c134 728
41bd17a4 729 See http_access for details
730
731NOCOMMENT_START
ee776778 732#Allow ICP queries from local networks only
4e9c5ff8 733icp_access allow localnet
734icp_access deny all
41bd17a4 735NOCOMMENT_END
5473c134 736DOC_END
737
41bd17a4 738NAME: htcp_access
739IFDEF: USE_HTCP
740TYPE: acl_access
741LOC: Config.accessList.htcp
742DEFAULT: none
743DEFAULT_IF_NONE: deny all
5473c134 744DOC_START
41bd17a4 745 Allowing or Denying access to the HTCP port based on defined
746 access lists
5473c134 747
41bd17a4 748 htcp_access allow|deny [!]aclname ...
5473c134 749
41bd17a4 750 See http_access for details
5473c134 751
0b48417e 752 NOTE: The default if no htcp_access lines are present is to
753 deny all traffic. This default may cause problems with peers
754 using the htcp or htcp-oldsquid options.
755
ee776778 756NOCOMMENT_START
757#Allow HTCP queries from local networks only
4e9c5ff8 758htcp_access allow localnet
759htcp_access deny all
ee776778 760NOCOMMENT_END
41bd17a4 761DOC_END
5473c134 762
41bd17a4 763NAME: htcp_clr_access
764IFDEF: USE_HTCP
765TYPE: acl_access
766LOC: Config.accessList.htcp_clr
767DEFAULT: none
768DEFAULT_IF_NONE: deny all
769DOC_START
770 Allowing or Denying access to purge content using HTCP based
771 on defined access lists
5473c134 772
41bd17a4 773 htcp_clr_access allow|deny [!]aclname ...
5473c134 774
41bd17a4 775 See http_access for details
5473c134 776
41bd17a4 777#Allow HTCP CLR requests from trusted peers
778acl htcp_clr_peer src 172.16.1.2
779htcp_clr_access allow htcp_clr_peer
5473c134 780DOC_END
781
41bd17a4 782NAME: miss_access
783TYPE: acl_access
784LOC: Config.accessList.miss
785DEFAULT: none
5473c134 786DOC_START
41bd17a4 787 Use to force your neighbors to use you as a sibling instead of
788 a parent. For example:
5473c134 789
41bd17a4 790 acl localclients src 172.16.0.0/16
791 miss_access allow localclients
792 miss_access deny !localclients
5473c134 793
41bd17a4 794 This means only your local clients are allowed to fetch
795 MISSES and all other clients can only fetch HITS.
5473c134 796
41bd17a4 797 By default, allow all clients who passed the http_access rules
798 to fetch MISSES from us.
5473c134 799
41bd17a4 800NOCOMMENT_START
801#Default setting:
802# miss_access allow all
803NOCOMMENT_END
804DOC_END
805
806NAME: ident_lookup_access
807TYPE: acl_access
808IFDEF: USE_IDENT
809DEFAULT: none
810DEFAULT_IF_NONE: deny all
811LOC: Config.accessList.identLookup
5473c134 812DOC_START
41bd17a4 813 A list of ACL elements which, if matched, cause an ident
814 (RFC 931) lookup to be performed for this request. For
815 example, you might choose to always perform ident lookups
816 for your main multi-user Unix boxes, but not for your Macs
817 and PCs. By default, ident lookups are not performed for
818 any requests.
5473c134 819
41bd17a4 820 To enable ident lookups for specific client addresses, you
821 can follow this example:
5473c134 822
41bd17a4 823 acl ident_aware_hosts src 198.168.1.0/255.255.255.0
824 ident_lookup_access allow ident_aware_hosts
825 ident_lookup_access deny all
5473c134 826
41bd17a4 827 Only src type ACL checks are fully supported. A src_domain
828 ACL might work at times, but it will not always provide
829 the correct result.
830DOC_END
5473c134 831
5b0f5383 832NAME: reply_body_max_size
833COMMENT: size [acl acl...]
834TYPE: acl_b_size_t
835DEFAULT: none
836LOC: Config.ReplyBodySize
837DOC_START
838 This option specifies the maximum size of a reply body. It can be
839 used to prevent users from downloading very large files, such as
840 MP3's and movies. When the reply headers are received, the
841 reply_body_max_size lines are processed, and the first line where
842 all (if any) listed ACLs are true is used as the maximum body size
843 for this reply.
844
845 This size is checked twice. First when we get the reply headers,
846 we check the content-length value. If the content length value exists
847 and is larger than the allowed size, the request is denied and the
848 user receives an error message that says "the request or reply
849 is too large." If there is no content-length, and the reply
850 size exceeds this limit, the client's connection is just closed
851 and they will receive a partial reply.
852
853 WARNING: downstream caches probably can not detect a partial reply
854 if there is no content-length header, so they will cache
855 partial responses and give them out as hits. You should NOT
856 use this option if you have downstream caches.
857
858 WARNING: A maximum size smaller than the size of squid's error messages
859 will cause an infinite loop and crash squid. Ensure that the smallest
860 non-zero value you use is greater that the maximum header size plus
861 the size of your largest error page.
862
863 If you set this parameter none (the default), there will be
864 no limit imposed.
865DOC_END
866
867COMMENT_START
868 NETWORK OPTIONS
869 -----------------------------------------------------------------------------
870COMMENT_END
871
872NAME: http_port ascii_port
873TYPE: http_port_list
874DEFAULT: none
875LOC: Config.Sockaddr.http
876DOC_START
877 Usage: port [options]
878 hostname:port [options]
879 1.2.3.4:port [options]
880
881 The socket addresses where Squid will listen for HTTP client
882 requests. You may specify multiple socket addresses.
883 There are three forms: port alone, hostname with port, and
884 IP address with port. If you specify a hostname or IP
885 address, Squid binds the socket to that specific
886 address. This replaces the old 'tcp_incoming_address'
887 option. Most likely, you do not need to bind to a specific
888 address, so you can use the port number alone.
889
890 If you are running Squid in accelerator mode, you
891 probably want to listen on port 80 also, or instead.
892
893 The -a command line option may be used to specify additional
894 port(s) where Squid listens for proxy request. Such ports will
895 be plain proxy ports with no options.
896
897 You may specify multiple socket addresses on multiple lines.
898
899 Options:
900
e77bdb4e 901 intercept Support for IP-Layer interception of
5b0f5383 902 outgoing requests without browser settings.
903
904 tproxy Support Linux TPROXY for spoofing outgoing
905 connections using the client IP address.
906
907 accel Accelerator mode. Also needs at least one of
908 vhost / vport / defaultsite.
909
910 defaultsite=domainname
911 What to use for the Host: header if it is not present
912 in a request. Determines what site (not origin server)
913 accelerators should consider the default.
914 Implies accel.
915
916 vhost Accelerator mode using Host header for virtual
917 domain support. Implies accel.
918
919 vport Accelerator with IP based virtual host support.
920 Implies accel.
921
922 vport=NN As above, but uses specified port number rather
923 than the http_port number. Implies accel.
924
925 protocol= Protocol to reconstruct accelerated requests with.
926 Defaults to http.
927
928 disable-pmtu-discovery=
929 Control Path-MTU discovery usage:
930 off lets OS decide on what to do (default).
931 transparent disable PMTU discovery when transparent
932 support is enabled.
933 always disable always PMTU discovery.
934
935 In many setups of transparently intercepting proxies
936 Path-MTU discovery can not work on traffic towards the
937 clients. This is the case when the intercepting device
938 does not fully track connections and fails to forward
939 ICMP must fragment messages to the cache server. If you
940 have such setup and experience that certain clients
941 sporadically hang or never complete requests set
942 disable-pmtu-discovery option to 'transparent'.
943
4c9da963 944 sslBump Intercept each CONNECT request matching ssl_bump ACL,
945 establish secure connection with the client and with
946 the server, decrypt HTTP messages as they pass through
947 Squid, and treat them as unencrypted HTTP messages,
948 becoming the man-in-the-middle.
949
950 When this option is enabled, additional options become
951 available to specify SSL-related properties of the
952 client-side connection: cert, key, version, cipher,
953 options, clientca, cafile, capath, crlfile, dhparams,
954 sslflags, and sslcontext. See the https_port directive
955 for more information on these options.
956
957 The ssl_bump option is required to fully enable
958 the SslBump feature.
959
81b6e9a7 960 name= Specifies a internal name for the port. Defaults to
961 the port specification (port or addr:port)
962
b2130d58 963 keepalive[=idle,interval,timeout]
964 Enable TCP keepalive probes of idle connections
965 idle is the initial time before TCP starts probing
966 the connection, interval how often to probe, and
967 timeout the time before giving up.
968
5b0f5383 969 If you run Squid on a dual-homed machine with an internal
970 and an external interface we recommend you to specify the
971 internal address:port in http_port. This way Squid will only be
972 visible on the internal address.
973
974NOCOMMENT_START
975# Squid normally listens to port 3128
976http_port @DEFAULT_HTTP_PORT@
977NOCOMMENT_END
978DOC_END
979
980NAME: https_port
981IFDEF: USE_SSL
982TYPE: https_port_list
983DEFAULT: none
984LOC: Config.Sockaddr.https
985DOC_START
986 Usage: [ip:]port cert=certificate.pem [key=key.pem] [options...]
987
988 The socket address where Squid will listen for HTTPS client
989 requests.
990
991 This is really only useful for situations where you are running
992 squid in accelerator mode and you want to do the SSL work at the
993 accelerator level.
994
995 You may specify multiple socket addresses on multiple lines,
996 each with their own SSL certificate and/or options.
997
998 Options:
999
1000 accel Accelerator mode. Also needs at least one of
1001 defaultsite or vhost.
1002
1003 defaultsite= The name of the https site presented on
1004 this port. Implies accel.
1005
1006 vhost Accelerator mode using Host header for virtual
1007 domain support. Requires a wildcard certificate
1008 or other certificate valid for more than one domain.
1009 Implies accel.
1010
1011 protocol= Protocol to reconstruct accelerated requests with.
1012 Defaults to https.
1013
1014 cert= Path to SSL certificate (PEM format).
1015
1016 key= Path to SSL private key file (PEM format)
1017 if not specified, the certificate file is
1018 assumed to be a combined certificate and
1019 key file.
1020
1021 version= The version of SSL/TLS supported
1022 1 automatic (default)
1023 2 SSLv2 only
1024 3 SSLv3 only
1025 4 TLSv1 only
1026
1027 cipher= Colon separated list of supported ciphers.
1028
1029 options= Various SSL engine options. The most important
1030 being:
1031 NO_SSLv2 Disallow the use of SSLv2
1032 NO_SSLv3 Disallow the use of SSLv3
1033 NO_TLSv1 Disallow the use of TLSv1
1034 SINGLE_DH_USE Always create a new key when using
1035 temporary/ephemeral DH key exchanges
1036 See src/ssl_support.c or OpenSSL SSL_CTX_set_options
1037 documentation for a complete list of options.
1038
1039 clientca= File containing the list of CAs to use when
1040 requesting a client certificate.
1041
1042 cafile= File containing additional CA certificates to
1043 use when verifying client certificates. If unset
1044 clientca will be used.
1045
1046 capath= Directory containing additional CA certificates
1047 and CRL lists to use when verifying client certificates.
1048
1049 crlfile= File of additional CRL lists to use when verifying
1050 the client certificate, in addition to CRLs stored in
1051 the capath. Implies VERIFY_CRL flag below.
1052
1053 dhparams= File containing DH parameters for temporary/ephemeral
1054 DH key exchanges.
1055
1056 sslflags= Various flags modifying the use of SSL:
1057 DELAYED_AUTH
1058 Don't request client certificates
1059 immediately, but wait until acl processing
1060 requires a certificate (not yet implemented).
1061 NO_DEFAULT_CA
1062 Don't use the default CA lists built in
1063 to OpenSSL.
1064 NO_SESSION_REUSE
1065 Don't allow for session reuse. Each connection
1066 will result in a new SSL session.
1067 VERIFY_CRL
1068 Verify CRL lists when accepting client
1069 certificates.
1070 VERIFY_CRL_ALL
1071 Verify CRL lists for all certificates in the
1072 client certificate chain.
1073
1074 sslcontext= SSL session ID context identifier.
1075
1076 vport Accelerator with IP based virtual host support.
1077
1078 vport=NN As above, but uses specified port number rather
1079 than the https_port number. Implies accel.
1080
81b6e9a7 1081 name= Specifies a internal name for the port. Defaults to
1082 the port specification (port or addr:port)
1083
5b0f5383 1084DOC_END
1085
41bd17a4 1086NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoing_dscp
1087TYPE: acl_tos
5473c134 1088DEFAULT: none
41bd17a4 1089LOC: Config.accessList.outgoing_tos
5473c134 1090DOC_START
41bd17a4 1091 Allows you to select a TOS/Diffserv value to mark outgoing
1092 connections with, based on the username or source address
1093 making the request.
5473c134 1094
41bd17a4 1095 tcp_outgoing_tos ds-field [!]aclname ...
cccac0a2 1096
41bd17a4 1097 Example where normal_service_net uses the TOS value 0x00
1098 and normal_service_net uses 0x20
cccac0a2 1099
41bd17a4 1100 acl normal_service_net src 10.0.0.0/255.255.255.0
1101 acl good_service_net src 10.0.1.0/255.255.255.0
2c73de90 1102 tcp_outgoing_tos 0x00 normal_service_net
41bd17a4 1103 tcp_outgoing_tos 0x20 good_service_net
fa38076e 1104
41bd17a4 1105 TOS/DSCP values really only have local significance - so you should
1106 know what you're specifying. For more information, see RFC2474 and
1107 RFC3260.
cccac0a2 1108
41bd17a4 1109 The TOS/DSCP byte must be exactly that - a octet value 0 - 255, or
1110 "default" to use whatever default your host has. Note that in
1111 practice often only values 0 - 63 is usable as the two highest bits
1112 have been redefined for use by ECN (RFC3168).
cccac0a2 1113
41bd17a4 1114 Processing proceeds in the order specified, and stops at first fully
1115 matching line.
cccac0a2 1116
41bd17a4 1117 Note: The use of this directive using client dependent ACLs is
1118 incompatible with the use of server side persistent connections. To
1119 ensure correct results it is best to set server_persisten_connections
1120 to off when using this directive in such configurations.
cccac0a2 1121DOC_END
1122
41bd17a4 1123NAME: clientside_tos
1124TYPE: acl_tos
cccac0a2 1125DEFAULT: none
41bd17a4 1126LOC: Config.accessList.clientside_tos
cccac0a2 1127DOC_START
41bd17a4 1128 Allows you to select a TOS/Diffserv value to mark client-side
1129 connections with, based on the username or source address
1130 making the request.
1131DOC_END
cccac0a2 1132
41bd17a4 1133NAME: tcp_outgoing_address
1134TYPE: acl_address
1135DEFAULT: none
1136LOC: Config.accessList.outgoing_address
1137DOC_START
1138 Allows you to map requests to different outgoing IP addresses
1139 based on the username or source address of the user making
1140 the request.
7f7db318 1141
41bd17a4 1142 tcp_outgoing_address ipaddr [[!]aclname] ...
c33aa074 1143
41bd17a4 1144 Example where requests from 10.0.0.0/24 will be forwarded
1145 with source address 10.1.0.1, 10.0.2.0/24 forwarded with
1146 source address 10.1.0.2 and the rest will be forwarded with
1147 source address 10.1.0.3.
9197cd13 1148
17148b2f 1149 acl normal_service_net src 10.0.0.0/24
1150 acl good_service_net src 10.0.2.0/24
1151 tcp_outgoing_address 10.1.0.1 normal_service_net
1152 tcp_outgoing_address 10.1.0.2 good_service_net
1153 tcp_outgoing_address 10.1.0.3
9197cd13 1154
41bd17a4 1155 Processing proceeds in the order specified, and stops at first fully
1156 matching line.
cccac0a2 1157
41bd17a4 1158 Note: The use of this directive using client dependent ACLs is
1159 incompatible with the use of server side persistent connections. To
1160 ensure correct results it is best to set server_persistent_connections
1161 to off when using this directive in such configurations.
cc192b50 1162
1163
1164 IPv6 Magic:
1165
1166 Squid is built with a capability of bridging the IPv4 and IPv6 internets.
1167 tcp_outgoing_address as exampled above breaks this bridging by forcing
1168 all outbound traffic through a certain IPv4 which may be on the wrong
1169 side of the IPv4/IPv6 boundary.
1170
1171 To operate with tcp_outgoing_address and keep the bridging benefits
1172 an additional ACL needs to be used which ensures the IPv6-bound traffic
1173 is never forced or permitted out the IPv4 interface.
1174
1175 acl to_ipv6 dst ipv6
1176 tcp_outgoing_address 2002::c001 good_service_net to_ipv6
17148b2f 1177 tcp_outgoing_address 10.1.0.2 good_service_net !to_ipv6
cc192b50 1178
1179 tcp_outgoing_address 2002::beef normal_service_net to_ipv6
17148b2f 1180 tcp_outgoing_address 10.1.0.1 normal_service_net !to_ipv6
cc192b50 1181
1182 tcp_outgoing_address 2002::1 to_ipv6
17148b2f 1183 tcp_outgoing_address 10.1.0.3 !to_ipv6
cccac0a2 1184DOC_END
1185
41bd17a4 1186COMMENT_START
1187 SSL OPTIONS
1188 -----------------------------------------------------------------------------
1189COMMENT_END
1190
1191NAME: ssl_unclean_shutdown
1192IFDEF: USE_SSL
cccac0a2 1193TYPE: onoff
1194DEFAULT: off
41bd17a4 1195LOC: Config.SSL.unclean_shutdown
cccac0a2 1196DOC_START
41bd17a4 1197 Some browsers (especially MSIE) bugs out on SSL shutdown
1198 messages.
cccac0a2 1199DOC_END
1200
41bd17a4 1201NAME: ssl_engine
1202IFDEF: USE_SSL
cccac0a2 1203TYPE: string
41bd17a4 1204LOC: Config.SSL.ssl_engine
1205DEFAULT: none
cccac0a2 1206DOC_START
41bd17a4 1207 The OpenSSL engine to use. You will need to set this if you
1208 would like to use hardware SSL acceleration for example.
cccac0a2 1209DOC_END
1210
41bd17a4 1211NAME: sslproxy_client_certificate
1212IFDEF: USE_SSL
cccac0a2 1213DEFAULT: none
41bd17a4 1214LOC: Config.ssl_client.cert
1215TYPE: string
cccac0a2 1216DOC_START
41bd17a4 1217 Client SSL Certificate to use when proxying https:// URLs
cccac0a2 1218DOC_END
1219
41bd17a4 1220NAME: sslproxy_client_key
1221IFDEF: USE_SSL
cccac0a2 1222DEFAULT: none
41bd17a4 1223LOC: Config.ssl_client.key
1224TYPE: string
cccac0a2 1225DOC_START
41bd17a4 1226 Client SSL Key to use when proxying https:// URLs
cccac0a2 1227DOC_END
1228
41bd17a4 1229NAME: sslproxy_version
1230IFDEF: USE_SSL
1231DEFAULT: 1
1232LOC: Config.ssl_client.version
1233TYPE: int
cccac0a2 1234DOC_START
41bd17a4 1235 SSL version level to use when proxying https:// URLs
cccac0a2 1236DOC_END
1237
41bd17a4 1238NAME: sslproxy_options
1239IFDEF: USE_SSL
1240DEFAULT: none
1241LOC: Config.ssl_client.options
1242TYPE: string
cccac0a2 1243DOC_START
41bd17a4 1244 SSL engine options to use when proxying https:// URLs
cccac0a2 1245DOC_END
1246
41bd17a4 1247NAME: sslproxy_cipher
1248IFDEF: USE_SSL
1249DEFAULT: none
1250LOC: Config.ssl_client.cipher
1251TYPE: string
cccac0a2 1252DOC_START
41bd17a4 1253 SSL cipher list to use when proxying https:// URLs
cccac0a2 1254DOC_END
1255
41bd17a4 1256NAME: sslproxy_cafile
1257IFDEF: USE_SSL
1258DEFAULT: none
1259LOC: Config.ssl_client.cafile
1260TYPE: string
cccac0a2 1261DOC_START
41bd17a4 1262 file containing CA certificates to use when verifying server
1263 certificates while proxying https:// URLs
cccac0a2 1264DOC_END
0976f8db 1265
41bd17a4 1266NAME: sslproxy_capath
1267IFDEF: USE_SSL
5473c134 1268DEFAULT: none
41bd17a4 1269LOC: Config.ssl_client.capath
1270TYPE: string
5473c134 1271DOC_START
41bd17a4 1272 directory containing CA certificates to use when verifying
1273 server certificates while proxying https:// URLs
5473c134 1274DOC_END
1275
4c9da963 1276NAME: ssl_bump
1277IFDEF: USE_SSL
1278TYPE: acl_access
1279LOC: Config.accessList.ssl_bump
1280DEFAULT: none
1281DOC_START
1282 This ACL controls which CONNECT requests to an http_port
1283 marked with an sslBump flag are actually "bumped". Please
1284 see the sslBump flag of an http_port option for more details
1285 about decoding proxied SSL connections.
1286
1287 By default, no requests are bumped.
1288
1289 See also: http_port sslBump
1290
1291NOCOMMENT_START
1292# Example: Bump all requests except those originating from localhost and
1293# those going to webax.com or example.com sites.
1294#
1295# acl localhost src 127.0.0.1/32
1296# acl broken_sites dstdomain .webax.com
1297# acl broken_sites dstdomain .example.com
1298# ssl_bump deny localhost
1299# ssl_bump deny broken_sites
1300# ssl_bump allow all
1301NOCOMMENT_END
1302DOC_END
1303
41bd17a4 1304NAME: sslproxy_flags
1305IFDEF: USE_SSL
1306DEFAULT: none
1307LOC: Config.ssl_client.flags
1308TYPE: string
5473c134 1309DOC_START
41bd17a4 1310 Various flags modifying the use of SSL while proxying https:// URLs:
4c9da963 1311 DONT_VERIFY_PEER Accept certificates that fail verification.
1312 For refined control, see sslproxy_cert_error.
41bd17a4 1313 NO_DEFAULT_CA Don't use the default CA list built in
1314 to OpenSSL.
5473c134 1315DOC_END
1316
4c9da963 1317
1318NAME: sslproxy_cert_error
1319IFDEF: USE_SSL
1320DEFAULT: none
1321LOC: Config.ssl_client.cert_error
1322TYPE: acl_access
1323DOC_START
1324 Use this ACL to bypass server certificate validation errors.
1325
1326 For example, the following lines will bypass all validation errors
1327 when talking to servers located at 172.16.0.0/16. All other
1328 validation errors will result in ERR_SECURE_CONNECT_FAIL error.
1329
1330 acl BrokenServersAtTrustedIP dst 172.16.0.0/16
1331 sslproxy_cert_error allow BrokenServersAtTrustedIP
1332 sslproxy_cert_error deny all
1333
1334 This option must use fast ACL expressions only. Expressions that use
1335 external lookups or communication result in unpredictable behavior or
1336 crashes.
1337
1338 Without this option, all server certificate validation errors
1339 terminate the transaction. Bypassing validation errors is dangerous
1340 because an error usually implies that the server cannot be trusted and
1341 the connection may be insecure.
1342
1343 See also: sslproxy_flags and DONT_VERIFY_PEER.
1344
1345NOCOMMENT_START
1346#Default setting:
1347# sslproxy_cert_error deny all
1348NOCOMMENT_END
1349DOC_END
1350
1351
1352
41bd17a4 1353NAME: sslpassword_program
1354IFDEF: USE_SSL
1355DEFAULT: none
1356LOC: Config.Program.ssl_password
1357TYPE: string
5473c134 1358DOC_START
41bd17a4 1359 Specify a program used for entering SSL key passphrases
1360 when using encrypted SSL certificate keys. If not specified
1361 keys must either be unencrypted, or Squid started with the -N
1362 option to allow it to query interactively for the passphrase.
5473c134 1363DOC_END
1364
cccac0a2 1365COMMENT_START
41bd17a4 1366 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
cccac0a2 1367 -----------------------------------------------------------------------------
1368COMMENT_END
1369
41bd17a4 1370NAME: cache_peer
1371TYPE: peer
1372DEFAULT: none
1373LOC: Config.peers
cccac0a2 1374DOC_START
41bd17a4 1375 To specify other caches in a hierarchy, use the format:
cccac0a2 1376
41bd17a4 1377 cache_peer hostname type http-port icp-port [options]
cccac0a2 1378
41bd17a4 1379 For example,
cccac0a2 1380
41bd17a4 1381 # proxy icp
1382 # hostname type port port options
1383 # -------------------- -------- ----- ----- -----------
1384 cache_peer parent.foo.net parent 3128 3130 proxy-only default
1385 cache_peer sib1.foo.net sibling 3128 3130 proxy-only
1386 cache_peer sib2.foo.net sibling 3128 3130 proxy-only
cccac0a2 1387
41bd17a4 1388 type: either 'parent', 'sibling', or 'multicast'.
d5277f40 1389
41bd17a4 1390 proxy-port: The port number where the cache listens for proxy
1391 requests.
8d6275c0 1392
41bd17a4 1393 icp-port: Used for querying neighbor caches about
1394 objects. To have a non-ICP neighbor
1395 specify '7' for the ICP port and make sure the
1396 neighbor machine has the UDP echo port
1397 enabled in its /etc/inetd.conf file.
1398 NOTE: Also requires icp_port option enabled to send/receive
1399 requests via this method.
a78278e2 1400
41bd17a4 1401 options: proxy-only
1402 weight=n
1403 basetime=n
1404 ttl=n
1405 no-query
1406 background-ping
1407 default
1408 round-robin
1409 weighted-round-robin
1410 carp
1411 multicast-responder
1412 closest-only
1413 no-digest
1414 no-netdb-exchange
1415 no-delay
1416 login=user:password | PASS | *:password
1417 connect-timeout=nn
1418 digest-url=url
1419 allow-miss
1420 max-conn=n
1421 htcp
1422 htcp-oldsquid
1423 originserver
1424 name=xxx
1425 forceddomain=name
1426 ssl
1427 sslcert=/path/to/ssl/certificate
1428 sslkey=/path/to/ssl/key
1429 sslversion=1|2|3|4
1430 sslcipher=...
1431 ssloptions=...
1432 front-end-https[=on|auto]
cccac0a2 1433
41bd17a4 1434 use 'proxy-only' to specify objects fetched
1435 from this cache should not be saved locally.
cccac0a2 1436
41bd17a4 1437 use 'weight=n' to affect the selection of a peer
1438 during any weighted peer-selection mechanisms.
1439 The weight must be an integer; default is 1,
1440 larger weights are favored more.
1441 This option does not affect parent selection if a peering
1442 protocol is not in use.
cccac0a2 1443
41bd17a4 1444 use 'basetime=n' to specify a base amount to
1445 be subtracted from round trip times of parents.
1446 It is subtracted before division by weight in calculating
1447 which parent to fectch from. If the rtt is less than the
1448 base time the rtt is set to a minimal value.
cccac0a2 1449
41bd17a4 1450 use 'ttl=n' to specify a IP multicast TTL to use
1451 when sending an ICP queries to this address.
1452 Only useful when sending to a multicast group.
1453 Because we don't accept ICP replies from random
1454 hosts, you must configure other group members as
1455 peers with the 'multicast-responder' option below.
5473c134 1456
41bd17a4 1457 use 'no-query' to NOT send ICP queries to this
1458 neighbor.
5473c134 1459
41bd17a4 1460 use 'background-ping' to only send ICP queries to this
1461 neighbor infrequently. This is used to keep the neighbor
1462 round trip time updated and is usually used in
1463 conjunction with weighted-round-robin.
cccac0a2 1464
41bd17a4 1465 use 'default' if this is a parent cache which can
1466 be used as a "last-resort" if a peer cannot be located
1467 by any of the peer-selection mechanisms.
1468 If specified more than once, only the first is used.
cccac0a2 1469
41bd17a4 1470 use 'round-robin' to define a set of parents which
1471 should be used in a round-robin fashion in the
1472 absence of any ICP queries.
cccac0a2 1473
41bd17a4 1474 use 'weighted-round-robin' to define a set of parents
1475 which should be used in a round-robin fashion with the
1476 frequency of each parent being based on the round trip
1477 time. Closer parents are used more often.
1478 Usually used for background-ping parents.
cccac0a2 1479
41bd17a4 1480 use 'carp' to define a set of parents which should
1481 be used as a CARP array. The requests will be
1482 distributed among the parents based on the CARP load
382db7eb 1483 balancing hash function based on their weight.
cccac0a2 1484
41bd17a4 1485 'multicast-responder' indicates the named peer
1486 is a member of a multicast group. ICP queries will
1487 not be sent directly to the peer, but ICP replies
1488 will be accepted from it.
cccac0a2 1489
41bd17a4 1490 'closest-only' indicates that, for ICP_OP_MISS
1491 replies, we'll only forward CLOSEST_PARENT_MISSes
1492 and never FIRST_PARENT_MISSes.
cccac0a2 1493
41bd17a4 1494 use 'no-digest' to NOT request cache digests from
1495 this neighbor.
cccac0a2 1496
41bd17a4 1497 'no-netdb-exchange' disables requesting ICMP
1498 RTT database (NetDB) from the neighbor.
cccac0a2 1499
41bd17a4 1500 use 'no-delay' to prevent access to this neighbor
1501 from influencing the delay pools.
7d90757b 1502
41bd17a4 1503 use 'login=user:password' if this is a personal/workgroup
1504 proxy and your parent requires proxy authentication.
1505 Note: The string can include URL escapes (i.e. %20 for
1506 spaces). This also means % must be written as %%.
7d90757b 1507
41bd17a4 1508 use 'login=PASS' if users must authenticate against
1509 the upstream proxy or in the case of a reverse proxy
1510 configuration, the origin web server. This will pass
1511 the users credentials as they are to the peer.
1512 This only works for the Basic HTTP authentication scheme.
1513 Note: To combine this with proxy_auth both proxies must
1514 share the same user database as HTTP only allows for
1515 a single login (one for proxy, one for origin server).
1516 Also be warned this will expose your users proxy
1517 password to the peer. USE WITH CAUTION
7d90757b 1518
41bd17a4 1519 use 'login=*:password' to pass the username to the
1520 upstream cache, but with a fixed password. This is meant
1521 to be used when the peer is in another administrative
1522 domain, but it is still needed to identify each user.
1523 The star can optionally be followed by some extra
1524 information which is added to the username. This can
1525 be used to identify this proxy to the peer, similar to
1526 the login=username:password option above.
cccac0a2 1527
41bd17a4 1528 use 'connect-timeout=nn' to specify a peer
1529 specific connect timeout (also see the
1530 peer_connect_timeout directive)
7f7db318 1531
41bd17a4 1532 use 'digest-url=url' to tell Squid to fetch the cache
1533 digest (if digests are enabled) for this host from
1534 the specified URL rather than the Squid default
1535 location.
cccac0a2 1536
41bd17a4 1537 use 'allow-miss' to disable Squid's use of only-if-cached
1538 when forwarding requests to siblings. This is primarily
1539 useful when icp_hit_stale is used by the sibling. To
1540 extensive use of this option may result in forwarding
1541 loops, and you should avoid having two-way peerings
1542 with this option. (for example to deny peer usage on
1543 requests from peer by denying cache_peer_access if the
1544 source is a peer)
cccac0a2 1545
41bd17a4 1546 use 'max-conn=n' to limit the amount of connections Squid
1547 may open to this peer.
cccac0a2 1548
41bd17a4 1549 use 'htcp' to send HTCP, instead of ICP, queries
1550 to the neighbor. You probably also want to
1551 set the "icp port" to 4827 instead of 3130.
0b48417e 1552 You MUST also set htcp_access expicitly. The default of
1553 deny all will prevent peer traffic.
cccac0a2 1554
41bd17a4 1555 use 'htcp-oldsquid' to send HTCP to old Squid versions
0b48417e 1556 You MUST also set htcp_access expicitly. The default of
1557 deny all will prevent peer traffic.
cccac0a2 1558
41bd17a4 1559 'originserver' causes this parent peer to be contacted as
1560 a origin server. Meant to be used in accelerator setups.
cccac0a2 1561
41bd17a4 1562 use 'name=xxx' if you have multiple peers on the same
1563 host but different ports. This name can be used to
1564 differentiate the peers in cache_peer_access and similar
1565 directives.
cccac0a2 1566
41bd17a4 1567 use 'forceddomain=name' to forcibly set the Host header
1568 of requests forwarded to this peer. Useful in accelerator
1569 setups where the server (peer) expects a certain domain
1570 name and using redirectors to feed this domain name
1571 is not feasible.
64658378 1572
41bd17a4 1573 use 'ssl' to indicate connections to this peer should
1574 be SSL/TLS encrypted.
cccac0a2 1575
41bd17a4 1576 use 'sslcert=/path/to/ssl/certificate' to specify a client
1577 SSL certificate to use when connecting to this peer.
4c9fa5d5 1578
41bd17a4 1579 use 'sslkey=/path/to/ssl/key' to specify the private SSL
1580 key corresponding to sslcert above. If 'sslkey' is not
1581 specified 'sslcert' is assumed to reference a
1582 combined file containing both the certificate and the key.
4c9fa5d5 1583
41bd17a4 1584 use sslversion=1|2|3|4 to specify the SSL version to use
1585 when connecting to this peer
1586 1 = automatic (default)
1587 2 = SSL v2 only
1588 3 = SSL v3 only
1589 4 = TLS v1 only
cccac0a2 1590
41bd17a4 1591 use sslcipher=... to specify the list of valid SSL ciphers
1592 to use when connecting to this peer.
cccac0a2 1593
41bd17a4 1594 use ssloptions=... to specify various SSL engine options:
1595 NO_SSLv2 Disallow the use of SSLv2
1596 NO_SSLv3 Disallow the use of SSLv3
1597 NO_TLSv1 Disallow the use of TLSv1
1598 See src/ssl_support.c or the OpenSSL documentation for
1599 a more complete list.
cccac0a2 1600
41bd17a4 1601 use sslcafile=... to specify a file containing
1602 additional CA certificates to use when verifying the
1603 peer certificate.
cccac0a2 1604
41bd17a4 1605 use sslcapath=... to specify a directory containing
1606 additional CA certificates to use when verifying the
1607 peer certificate.
cccac0a2 1608
41bd17a4 1609 use sslcrlfile=... to specify a certificate revocation
1610 list file to use when verifying the peer certificate.
1611
1612 use sslflags=... to specify various flags modifying the
1613 SSL implementation:
1614 DONT_VERIFY_PEER
1615 Accept certificates even if they fail to
1616 verify.
1617 NO_DEFAULT_CA
1618 Don't use the default CA list built in
1619 to OpenSSL.
1620 DONT_VERIFY_DOMAIN
1621 Don't verify the peer certificate
1622 matches the server name
cccac0a2 1623
41bd17a4 1624 use ssldomain= to specify the peer name as advertised
1625 in it's certificate. Used for verifying the correctness
1626 of the received peer certificate. If not specified the
1627 peer hostname will be used.
cccac0a2 1628
41bd17a4 1629 use front-end-https to enable the "Front-End-Https: On"
1630 header needed when using Squid as a SSL frontend in front
1631 of Microsoft OWA. See MS KB document Q307347 for details
1632 on this header. If set to auto the header will
1633 only be added if the request is forwarded as a https://
1634 URL.
1635DOC_END
cccac0a2 1636
41bd17a4 1637NAME: cache_peer_domain cache_host_domain
1638TYPE: hostdomain
1639DEFAULT: none
1640LOC: none
1641DOC_START
1642 Use to limit the domains for which a neighbor cache will be
1643 queried. Usage:
cccac0a2 1644
41bd17a4 1645 cache_peer_domain cache-host domain [domain ...]
1646 cache_peer_domain cache-host !domain
cccac0a2 1647
41bd17a4 1648 For example, specifying
cccac0a2 1649
41bd17a4 1650 cache_peer_domain parent.foo.net .edu
cccac0a2 1651
41bd17a4 1652 has the effect such that UDP query packets are sent to
1653 'bigserver' only when the requested object exists on a
1654 server in the .edu domain. Prefixing the domainname
1655 with '!' means the cache will be queried for objects
1656 NOT in that domain.
cccac0a2 1657
41bd17a4 1658 NOTE: * Any number of domains may be given for a cache-host,
1659 either on the same or separate lines.
1660 * When multiple domains are given for a particular
1661 cache-host, the first matched domain is applied.
1662 * Cache hosts with no domain restrictions are queried
1663 for all requests.
1664 * There are no defaults.
1665 * There is also a 'cache_peer_access' tag in the ACL
1666 section.
1667DOC_END
dd9b1776 1668
41bd17a4 1669NAME: cache_peer_access
1670TYPE: peer_access
1671DEFAULT: none
1672LOC: none
1673DOC_START
1674 Similar to 'cache_peer_domain' but provides more flexibility by
1675 using ACL elements.
cccac0a2 1676
41bd17a4 1677 cache_peer_access cache-host allow|deny [!]aclname ...
dd9b1776 1678
41bd17a4 1679 The syntax is identical to 'http_access' and the other lists of
1680 ACL elements. See the comments for 'http_access' below, or
1681 the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html).
1682DOC_END
dd9b1776 1683
41bd17a4 1684NAME: neighbor_type_domain
1685TYPE: hostdomaintype
1686DEFAULT: none
1687LOC: none
1688DOC_START
1689 usage: neighbor_type_domain neighbor parent|sibling domain domain ...
cccac0a2 1690
41bd17a4 1691 Modifying the neighbor type for specific domains is now
1692 possible. You can treat some domains differently than the the
1693 default neighbor type specified on the 'cache_peer' line.
1694 Normally it should only be necessary to list domains which
1695 should be treated differently because the default neighbor type
1696 applies for hostnames which do not match domains listed here.
6bf4f823 1697
41bd17a4 1698EXAMPLE:
dbe3992d 1699 cache_peer cache.foo.org parent 3128 3130
41bd17a4 1700 neighbor_type_domain cache.foo.org sibling .com .net
1701 neighbor_type_domain cache.foo.org sibling .au .de
1702DOC_END
6bf4f823 1703
41bd17a4 1704NAME: dead_peer_timeout
1705COMMENT: (seconds)
1706DEFAULT: 10 seconds
1707TYPE: time_t
1708LOC: Config.Timeout.deadPeer
1709DOC_START
1710 This controls how long Squid waits to declare a peer cache
1711 as "dead." If there are no ICP replies received in this
1712 amount of time, Squid will declare the peer dead and not
1713 expect to receive any further ICP replies. However, it
1714 continues to send ICP queries, and will mark the peer as
1715 alive upon receipt of the first subsequent ICP reply.
699acd19 1716
41bd17a4 1717 This timeout also affects when Squid expects to receive ICP
1718 replies from peers. If more than 'dead_peer' seconds have
1719 passed since the last ICP reply was received, Squid will not
1720 expect to receive an ICP reply on the next query. Thus, if
1721 your time between requests is greater than this timeout, you
1722 will see a lot of requests sent DIRECT to origin servers
1723 instead of to your parents.
1724DOC_END
cccac0a2 1725
41bd17a4 1726NAME: hierarchy_stoplist
1727TYPE: wordlist
1728DEFAULT: none
1729LOC: Config.hierarchy_stoplist
1730DOC_START
1731 A list of words which, if found in a URL, cause the object to
1732 be handled directly by this cache. In other words, use this
1733 to not query neighbor caches for certain objects. You may
1734 list this option multiple times.
1735 Note: never_direct overrides this option.
cccac0a2 1736NOCOMMENT_START
41bd17a4 1737#We recommend you to use at least the following line.
1738hierarchy_stoplist cgi-bin ?
6b698a21 1739NOCOMMENT_END
1740DOC_END
0976f8db 1741
41bd17a4 1742COMMENT_START
1743 MEMORY CACHE OPTIONS
1744 -----------------------------------------------------------------------------
1745COMMENT_END
1746
1747NAME: cache_mem
1748COMMENT: (bytes)
1749TYPE: b_size_t
1750DEFAULT: 8 MB
1751LOC: Config.memMaxSize
6b698a21 1752DOC_START
41bd17a4 1753 NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE.
1754 IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL
1755 USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER
1756 THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS.
1757
1758 'cache_mem' specifies the ideal amount of memory to be used
1759 for:
1760 * In-Transit objects
1761 * Hot Objects
1762 * Negative-Cached objects
1763
1764 Data for these objects are stored in 4 KB blocks. This
1765 parameter specifies the ideal upper limit on the total size of
1766 4 KB blocks allocated. In-Transit objects take the highest
1767 priority.
1768
1769 In-transit objects have priority over the others. When
1770 additional space is needed for incoming data, negative-cached
1771 and hot objects will be released. In other words, the
1772 negative-cached and hot objects will fill up any unused space
1773 not needed for in-transit objects.
1774
1775 If circumstances require, this limit will be exceeded.
1776 Specifically, if your incoming request rate requires more than
1777 'cache_mem' of memory to hold in-transit objects, Squid will
1778 exceed this limit to satisfy the new requests. When the load
1779 decreases, blocks will be freed until the high-water mark is
1780 reached. Thereafter, blocks will be used to store hot
1781 objects.
6b698a21 1782DOC_END
0976f8db 1783
41bd17a4 1784NAME: maximum_object_size_in_memory
1785COMMENT: (bytes)
1786TYPE: b_size_t
1787DEFAULT: 8 KB
1788LOC: Config.Store.maxInMemObjSize
6b698a21 1789DOC_START
41bd17a4 1790 Objects greater than this size will not be attempted to kept in
1791 the memory cache. This should be set high enough to keep objects
1792 accessed frequently in memory to improve performance whilst low
1793 enough to keep larger objects from hoarding cache_mem.
6b698a21 1794DOC_END
0976f8db 1795
41bd17a4 1796NAME: memory_replacement_policy
1797TYPE: removalpolicy
1798LOC: Config.memPolicy
1799DEFAULT: lru
6b698a21 1800DOC_START
41bd17a4 1801 The memory replacement policy parameter determines which
1802 objects are purged from memory when memory space is needed.
7f7db318 1803
41bd17a4 1804 See cache_replacement_policy for details.
1805DOC_END
6b698a21 1806
41bd17a4 1807COMMENT_START
1808 DISK CACHE OPTIONS
1809 -----------------------------------------------------------------------------
1810COMMENT_END
6b698a21 1811
41bd17a4 1812NAME: cache_replacement_policy
1813TYPE: removalpolicy
1814LOC: Config.replPolicy
1815DEFAULT: lru
1816DOC_START
1817 The cache replacement policy parameter determines which
1818 objects are evicted (replaced) when disk space is needed.
6b698a21 1819
41bd17a4 1820 lru : Squid's original list based LRU policy
1821 heap GDSF : Greedy-Dual Size Frequency
1822 heap LFUDA: Least Frequently Used with Dynamic Aging
1823 heap LRU : LRU policy implemented using a heap
6b698a21 1824
41bd17a4 1825 Applies to any cache_dir lines listed below this.
7f7db318 1826
41bd17a4 1827 The LRU policies keeps recently referenced objects.
0976f8db 1828
41bd17a4 1829 The heap GDSF policy optimizes object hit rate by keeping smaller
1830 popular objects in cache so it has a better chance of getting a
1831 hit. It achieves a lower byte hit rate than LFUDA though since
1832 it evicts larger (possibly popular) objects.
0976f8db 1833
41bd17a4 1834 The heap LFUDA policy keeps popular objects in cache regardless of
1835 their size and thus optimizes byte hit rate at the expense of
1836 hit rate since one large, popular object will prevent many
1837 smaller, slightly less popular objects from being cached.
0976f8db 1838
41bd17a4 1839 Both policies utilize a dynamic aging mechanism that prevents
1840 cache pollution that can otherwise occur with frequency-based
1841 replacement policies.
7d90757b 1842
41bd17a4 1843 NOTE: if using the LFUDA replacement policy you should increase
1844 the value of maximum_object_size above its default of 4096 KB to
1845 to maximize the potential byte hit rate improvement of LFUDA.
dc1af3cf 1846
41bd17a4 1847 For more information about the GDSF and LFUDA cache replacement
1848 policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
1849 and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html.
6b698a21 1850DOC_END
0976f8db 1851
41bd17a4 1852NAME: cache_dir
1853TYPE: cachedir
1854DEFAULT: none
41bd17a4 1855LOC: Config.cacheSwap
6b698a21 1856DOC_START
41bd17a4 1857 Usage:
0976f8db 1858
41bd17a4 1859 cache_dir Type Directory-Name Fs-specific-data [options]
0976f8db 1860
41bd17a4 1861 You can specify multiple cache_dir lines to spread the
1862 cache among different disk partitions.
0976f8db 1863
41bd17a4 1864 Type specifies the kind of storage system to use. Only "ufs"
1865 is built by default. To enable any of the other storage systems
1866 see the --enable-storeio configure option.
0976f8db 1867
41bd17a4 1868 'Directory' is a top-level directory where cache swap
1869 files will be stored. If you want to use an entire disk
1870 for caching, this can be the mount-point directory.
1871 The directory must exist and be writable by the Squid
1872 process. Squid will NOT create this directory for you.
0976f8db 1873
41bd17a4 1874 The ufs store type:
0976f8db 1875
41bd17a4 1876 "ufs" is the old well-known Squid storage format that has always
1877 been there.
0976f8db 1878
41bd17a4 1879 cache_dir ufs Directory-Name Mbytes L1 L2 [options]
0976f8db 1880
41bd17a4 1881 'Mbytes' is the amount of disk space (MB) to use under this
1882 directory. The default is 100 MB. Change this to suit your
1883 configuration. Do NOT put the size of your disk drive here.
1884 Instead, if you want Squid to use the entire disk drive,
1885 subtract 20% and use that value.
0976f8db 1886
41bd17a4 1887 'Level-1' is the number of first-level subdirectories which
1888 will be created under the 'Directory'. The default is 16.
0976f8db 1889
41bd17a4 1890 'Level-2' is the number of second-level subdirectories which
1891 will be created under each first-level directory. The default
1892 is 256.
0976f8db 1893
41bd17a4 1894 The aufs store type:
7f7db318 1895
41bd17a4 1896 "aufs" uses the same storage format as "ufs", utilizing
1897 POSIX-threads to avoid blocking the main Squid process on
1898 disk-I/O. This was formerly known in Squid as async-io.
38f9c547 1899
41bd17a4 1900 cache_dir aufs Directory-Name Mbytes L1 L2 [options]
38f9c547 1901
41bd17a4 1902 see argument descriptions under ufs above
38f9c547 1903
41bd17a4 1904 The diskd store type:
38f9c547 1905
41bd17a4 1906 "diskd" uses the same storage format as "ufs", utilizing a
1907 separate process to avoid blocking the main Squid process on
1908 disk-I/O.
4c3ef9b2 1909
41bd17a4 1910 cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
0976f8db 1911
41bd17a4 1912 see argument descriptions under ufs above
0976f8db 1913
41bd17a4 1914 Q1 specifies the number of unacknowledged I/O requests when Squid
1915 stops opening new files. If this many messages are in the queues,
1916 Squid won't open new files. Default is 64
0976f8db 1917
41bd17a4 1918 Q2 specifies the number of unacknowledged messages when Squid
1919 starts blocking. If this many messages are in the queues,
1920 Squid blocks until it receives some replies. Default is 72
0976f8db 1921
41bd17a4 1922 When Q1 < Q2 (the default), the cache directory is optimized
1923 for lower response time at the expense of a decrease in hit
1924 ratio. If Q1 > Q2, the cache directory is optimized for
1925 higher hit ratio at the expense of an increase in response
1926 time.
0976f8db 1927
41bd17a4 1928 The coss store type:
0976f8db 1929
41bd17a4 1930 block-size=n defines the "block size" for COSS cache_dir's.
1931 Squid uses file numbers as block numbers. Since file numbers
1932 are limited to 24 bits, the block size determines the maximum
1933 size of the COSS partition. The default is 512 bytes, which
1934 leads to a maximum cache_dir size of 512<<24, or 8 GB. Note
1935 you should not change the coss block size after Squid
1936 has written some objects to the cache_dir.
0976f8db 1937
41bd17a4 1938 The coss file store has changed from 2.5. Now it uses a file
1939 called 'stripe' in the directory names in the config - and
1940 this will be created by squid -z.
0976f8db 1941
41bd17a4 1942 Common options:
0976f8db 1943
41bd17a4 1944 no-store, no new objects should be stored to this cache_dir
0976f8db 1945
41bd17a4 1946 max-size=n, refers to the max object size this storedir supports.
1947 It is used to initially choose the storedir to dump the object.
1948 Note: To make optimal use of the max-size limits you should order
1949 the cache_dir lines with the smallest max-size value first and the
1950 ones with no max-size specification last.
0976f8db 1951
41bd17a4 1952 Note for coss, max-size must be less than COSS_MEMBUF_SZ,
1953 which can be changed with the --with-coss-membuf-size=N configure
1954 option.
bebc043b 1955NOCOMMENT_START
dee5bef7 1956cache_dir ufs @DEFAULT_SWAP_DIR@ 100 16 256
bebc043b 1957NOCOMMENT_END
6b698a21 1958DOC_END
0976f8db 1959
41bd17a4 1960NAME: store_dir_select_algorithm
1961TYPE: string
1962LOC: Config.store_dir_select_algorithm
1963DEFAULT: least-load
6b698a21 1964DOC_START
41bd17a4 1965 Set this to 'round-robin' as an alternative.
6b698a21 1966DOC_END
0976f8db 1967
41bd17a4 1968NAME: max_open_disk_fds
1969TYPE: int
1970LOC: Config.max_open_disk_fds
1971DEFAULT: 0
6b698a21 1972DOC_START
41bd17a4 1973 To avoid having disk as the I/O bottleneck Squid can optionally
1974 bypass the on-disk cache if more than this amount of disk file
1975 descriptors are open.
1976
1977 A value of 0 indicates no limit.
6b698a21 1978DOC_END
0976f8db 1979
41bd17a4 1980NAME: minimum_object_size
6b698a21 1981COMMENT: (bytes)
47f6e231 1982TYPE: b_int64_t
6b698a21 1983DEFAULT: 0 KB
41bd17a4 1984LOC: Config.Store.minObjectSize
6b698a21 1985DOC_START
41bd17a4 1986 Objects smaller than this size will NOT be saved on disk. The
1987 value is specified in kilobytes, and the default is 0 KB, which
1988 means there is no minimum.
6b698a21 1989DOC_END
0976f8db 1990
41bd17a4 1991NAME: maximum_object_size
1992COMMENT: (bytes)
1993TYPE: b_int64_t
1994DEFAULT: 4096 KB
1995LOC: Config.Store.maxObjectSize
777831e0 1996DOC_START
41bd17a4 1997 Objects larger than this size will NOT be saved on disk. The
1998 value is specified in kilobytes, and the default is 4MB. If
1999 you wish to get a high BYTES hit ratio, you should probably
2000 increase this (one 32 MB object hit counts for 3200 10KB
2001 hits). If you wish to increase speed more than your want to
2002 save bandwidth you should leave this low.
777831e0 2003
41bd17a4 2004 NOTE: if using the LFUDA replacement policy you should increase
2005 this value to maximize the byte hit rate improvement of LFUDA!
2006 See replacement_policy below for a discussion of this policy.
6b698a21 2007DOC_END
0976f8db 2008
41bd17a4 2009NAME: cache_swap_low
2010COMMENT: (percent, 0-100)
5473c134 2011TYPE: int
41bd17a4 2012DEFAULT: 90
2013LOC: Config.Swap.lowWaterMark
2014DOC_NONE
2015
2016NAME: cache_swap_high
2017COMMENT: (percent, 0-100)
2018TYPE: int
2019DEFAULT: 95
2020LOC: Config.Swap.highWaterMark
6b698a21 2021DOC_START
41bd17a4 2022
2023 The low- and high-water marks for cache object replacement.
2024 Replacement begins when the swap (disk) usage is above the
2025 low-water mark and attempts to maintain utilization near the
2026 low-water mark. As swap utilization gets close to high-water
2027 mark object eviction becomes more aggressive. If utilization is
2028 close to the low-water mark less replacement is done each time.
2029
2030 Defaults are 90% and 95%. If you have a large cache, 5% could be
2031 hundreds of MB. If this is the case you may wish to set these
2032 numbers closer together.
6b698a21 2033DOC_END
0976f8db 2034
5473c134 2035COMMENT_START
41bd17a4 2036 LOGFILE OPTIONS
5473c134 2037 -----------------------------------------------------------------------------
2038COMMENT_END
0976f8db 2039
41bd17a4 2040NAME: logformat
2041TYPE: logformat
2042LOC: Config.Log.logformats
5473c134 2043DEFAULT: none
6b698a21 2044DOC_START
41bd17a4 2045 Usage:
0976f8db 2046
41bd17a4 2047 logformat <name> <format specification>
0976f8db 2048
41bd17a4 2049 Defines an access log format.
6b698a21 2050
41bd17a4 2051 The <format specification> is a string with embedded % format codes
5473c134 2052
41bd17a4 2053 % format codes all follow the same basic structure where all but
2054 the formatcode is optional. Output strings are automatically escaped
2055 as required according to their context and the output format
2056 modifiers are usually not needed, but can be specified if an explicit
2057 output format is desired.
6b698a21 2058
41bd17a4 2059 % ["|[|'|#] [-] [[0]width] [{argument}] formatcode
0976f8db 2060
41bd17a4 2061 " output in quoted string format
2062 [ output in squid text log format as used by log_mime_hdrs
2063 # output in URL quoted format
2064 ' output as-is
5473c134 2065
41bd17a4 2066 - left aligned
2067 width field width. If starting with 0 the
2068 output is zero padded
2069 {arg} argument such as header name etc
5473c134 2070
41bd17a4 2071 Format codes:
5473c134 2072
41bd17a4 2073 >a Client source IP address
2074 >A Client FQDN
2075 >p Client source port
2076 <A Server IP address or peer name
2077 la Local IP address (http_port)
2078 lp Local port number (http_port)
2079 ts Seconds since epoch
2080 tu subsecond time (milliseconds)
2081 tl Local time. Optional strftime format argument
2082 default %d/%b/%Y:%H:%M:%S %z
2083 tg GMT time. Optional strftime format argument
2084 default %d/%b/%Y:%H:%M:%S %z
2085 tr Response time (milliseconds)
2086 >h Request header. Optional header name argument
2087 on the format header[:[separator]element]
2088 <h Reply header. Optional header name argument
2089 as for >h
2090 un User name
2091 ul User name from authentication
2092 ui User name from ident
2093 us User name from SSL
2094 ue User name from external acl helper
2095 Hs HTTP status code
2096 Ss Squid request status (TCP_MISS etc)
2097 Sh Squid hierarchy status (DEFAULT_PARENT etc)
2098 mt MIME content type
2099 rm Request method (GET/POST etc)
2100 ru Request URL
2101 rp Request URL-Path excluding hostname
2102 rv Request protocol version
2103 et Tag returned by external acl
2104 ea Log string returned by external acl
2105 <st Reply size including HTTP headers
2106 <sH Reply high offset sent
2107 <sS Upstream object size
2108 % a literal % character
5473c134 2109
41bd17a4 2110logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
2111logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
2112logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
2113logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
5473c134 2114DOC_END
2115
41bd17a4 2116NAME: access_log cache_access_log
2117TYPE: access_log
2118LOC: Config.Log.accesslogs
5473c134 2119DEFAULT: none
2120DOC_START
41bd17a4 2121 These files log client request activities. Has a line every HTTP or
2122 ICP request. The format is:
2123 access_log <filepath> [<logformat name> [acl acl ...]]
2124 access_log none [acl acl ...]]
5473c134 2125
41bd17a4 2126 Will log to the specified file using the specified format (which
2127 must be defined in a logformat directive) those entries which match
2128 ALL the acl's specified (which must be defined in acl clauses).
2129 If no acl is specified, all requests will be logged to this file.
5473c134 2130
41bd17a4 2131 To disable logging of a request use the filepath "none", in which case
2132 a logformat name should not be specified.
5473c134 2133
41bd17a4 2134 To log the request via syslog specify a filepath of "syslog":
5473c134 2135
41bd17a4 2136 access_log syslog[:facility.priority] [format [acl1 [acl2 ....]]]
2137 where facility could be any of:
2138 authpriv, daemon, local0 .. local7 or user.
5473c134 2139
41bd17a4 2140 And priority could be any of:
2141 err, warning, notice, info, debug.
2142NOCOMMENT_START
2143access_log @DEFAULT_ACCESS_LOG@ squid
2144NOCOMMENT_END
2145DOC_END
5473c134 2146
5b0f5383 2147NAME: log_access
2148TYPE: acl_access
2149LOC: Config.accessList.log
2150DEFAULT: none
2151COMMENT: allow|deny acl acl...
2152DOC_START
2153 This options allows you to control which requests gets logged
2154 to access.log (see access_log directive). Requests denied for
2155 logging will also not be accounted for in performance counters.
2156DOC_END
2157
41bd17a4 2158NAME: cache_log
2159TYPE: string
2160DEFAULT: @DEFAULT_CACHE_LOG@
2161LOC: Config.Log.log
2162DOC_START
2163 Cache logging file. This is where general information about
2164 your cache's behavior goes. You can increase the amount of data
2165 logged to this file with the "debug_options" tag below.
2166DOC_END
5473c134 2167
41bd17a4 2168NAME: cache_store_log
2169TYPE: string
2170DEFAULT: @DEFAULT_STORE_LOG@
2171LOC: Config.Log.store
2172DOC_START
2173 Logs the activities of the storage manager. Shows which
2174 objects are ejected from the cache, and which objects are
2175 saved and for how long. To disable, enter "none". There are
2176 not really utilities to analyze this data, so you can safely
2177 disable it.
5473c134 2178DOC_END
2179
41bd17a4 2180NAME: cache_swap_state cache_swap_log
2181TYPE: string
2182LOC: Config.Log.swap
5473c134 2183DEFAULT: none
2184DOC_START
41bd17a4 2185 Location for the cache "swap.state" file. This index file holds
2186 the metadata of objects saved on disk. It is used to rebuild
2187 the cache during startup. Normally this file resides in each
2188 'cache_dir' directory, but you may specify an alternate
2189 pathname here. Note you must give a full filename, not just
2190 a directory. Since this is the index for the whole object
2191 list you CANNOT periodically rotate it!
5473c134 2192
41bd17a4 2193 If %s can be used in the file name it will be replaced with a
2194 a representation of the cache_dir name where each / is replaced
2195 with '.'. This is needed to allow adding/removing cache_dir
2196 lines when cache_swap_log is being used.
5473c134 2197
41bd17a4 2198 If have more than one 'cache_dir', and %s is not used in the name
2199 these swap logs will have names such as:
5473c134 2200
41bd17a4 2201 cache_swap_log.00
2202 cache_swap_log.01
2203 cache_swap_log.02
5473c134 2204
41bd17a4 2205 The numbered extension (which is added automatically)
2206 corresponds to the order of the 'cache_dir' lines in this
2207 configuration file. If you change the order of the 'cache_dir'
2208 lines in this file, these index files will NOT correspond to
2209 the correct 'cache_dir' entry (unless you manually rename
2210 them). We recommend you do NOT use this option. It is
2211 better to keep these index files in each 'cache_dir' directory.
5473c134 2212DOC_END
2213
41bd17a4 2214NAME: logfile_rotate
2215TYPE: int
2216DEFAULT: 10
2217LOC: Config.Log.rotateNumber
5473c134 2218DOC_START
41bd17a4 2219 Specifies the number of logfile rotations to make when you
2220 type 'squid -k rotate'. The default is 10, which will rotate
2221 with extensions 0 through 9. Setting logfile_rotate to 0 will
2222 disable the file name rotation, but the logfiles are still closed
2223 and re-opened. This will enable you to rename the logfiles
2224 yourself just before sending the rotate signal.
5473c134 2225
41bd17a4 2226 Note, the 'squid -k rotate' command normally sends a USR1
2227 signal to the running squid process. In certain situations
2228 (e.g. on Linux with Async I/O), USR1 is used for other
2229 purposes, so -k rotate uses another signal. It is best to get
2230 in the habit of using 'squid -k rotate' instead of 'kill -USR1
2231 <pid>'.
2232DOC_END
5473c134 2233
41bd17a4 2234NAME: emulate_httpd_log
2235COMMENT: on|off
2236TYPE: onoff
2237DEFAULT: off
2238LOC: Config.onoff.common_log
2239DOC_START
2240 The Cache can emulate the log file format which many 'httpd'
2241 programs use. To disable/enable this emulation, set
2242 emulate_httpd_log to 'off' or 'on'. The default
2243 is to use the native log format since it includes useful
2244 information Squid-specific log analyzers use.
5473c134 2245DOC_END
2246
41bd17a4 2247NAME: log_ip_on_direct
2248COMMENT: on|off
2249TYPE: onoff
5473c134 2250DEFAULT: on
41bd17a4 2251LOC: Config.onoff.log_ip_on_direct
5473c134 2252DOC_START
41bd17a4 2253 Log the destination IP address in the hierarchy log tag when going
2254 direct. Earlier Squid versions logged the hostname here. If you
2255 prefer the old way set this to off.
2256DOC_END
5473c134 2257
41bd17a4 2258NAME: mime_table
2259TYPE: string
2260DEFAULT: @DEFAULT_MIME_TABLE@
2261LOC: Config.mimeTablePathname
2262DOC_START
2263 Pathname to Squid's MIME table. You shouldn't need to change
2264 this, but the default file contains examples and formatting
2265 information if you do.
5473c134 2266DOC_END
2267
41bd17a4 2268NAME: log_mime_hdrs
2269COMMENT: on|off
2270TYPE: onoff
2271LOC: Config.onoff.log_mime_hdrs
2272DEFAULT: off
2273DOC_START
2274 The Cache can record both the request and the response MIME
2275 headers for each HTTP transaction. The headers are encoded
2276 safely and will appear as two bracketed fields at the end of
2277 the access log (for either the native or httpd-emulated log
2278 formats). To enable this logging set log_mime_hdrs to 'on'.
2279DOC_END
5473c134 2280
41bd17a4 2281NAME: useragent_log
2282TYPE: string
2283LOC: Config.Log.useragent
2284DEFAULT: none
2285IFDEF: USE_USERAGENT_LOG
5473c134 2286DOC_START
41bd17a4 2287 Squid will write the User-Agent field from HTTP requests
2288 to the filename specified here. By default useragent_log
2289 is disabled.
5473c134 2290DOC_END
2291
41bd17a4 2292NAME: referer_log referrer_log
2293TYPE: string
2294LOC: Config.Log.referer
2295DEFAULT: none
2296IFDEF: USE_REFERER_LOG
5473c134 2297DOC_START
41bd17a4 2298 Squid will write the Referer field from HTTP requests to the
2299 filename specified here. By default referer_log is disabled.
2300 Note that "referer" is actually a misspelling of "referrer"
2301 however the misspelt version has been accepted into the HTTP RFCs
2302 and we accept both.
5473c134 2303DOC_END
2304
41bd17a4 2305NAME: pid_filename
2306TYPE: string
2307DEFAULT: @DEFAULT_PID_FILE@
2308LOC: Config.pidFilename
5473c134 2309DOC_START
41bd17a4 2310 A filename to write the process-id to. To disable, enter "none".
5473c134 2311DOC_END
2312
41bd17a4 2313NAME: debug_options
fb6a61d1 2314TYPE: eol
41bd17a4 2315DEFAULT: ALL,1
2316LOC: Config.debugOptions
5473c134 2317DOC_START
41bd17a4 2318 Logging options are set as section,level where each source file
2319 is assigned a unique section. Lower levels result in less
2320 output, Full debugging (level 9) can result in a very large
2321 log file, so be careful. The magic word "ALL" sets debugging
2322 levels for all sections. We recommend normally running with
2323 "ALL,1".
5473c134 2324DOC_END
2325
41bd17a4 2326NAME: log_fqdn
2327COMMENT: on|off
2328TYPE: onoff
2329DEFAULT: off
2330LOC: Config.onoff.log_fqdn
5473c134 2331DOC_START
41bd17a4 2332 Turn this on if you wish to log fully qualified domain names
2333 in the access.log. To do this Squid does a DNS lookup of all
2334 IP's connecting to it. This can (in some situations) increase
2335 latency, which makes your cache seem slower for interactive
2336 browsing.
5473c134 2337DOC_END
2338
41bd17a4 2339NAME: client_netmask
2340TYPE: address
2341LOC: Config.Addrs.client_netmask
2342DEFAULT: 255.255.255.255
5473c134 2343DOC_START
41bd17a4 2344 A netmask for client addresses in logfiles and cachemgr output.
2345 Change this to protect the privacy of your cache clients.
2346 A netmask of 255.255.255.0 will log all IP's in that range with
2347 the last digit set to '0'.
5473c134 2348DOC_END
2349
41bd17a4 2350NAME: forward_log
2351IFDEF: WIP_FWD_LOG
2352TYPE: string
2353DEFAULT: none
2354LOC: Config.Log.forward
5473c134 2355DOC_START
41bd17a4 2356 Logs the server-side requests.
5473c134 2357
41bd17a4 2358 This is currently work in progress.
5473c134 2359DOC_END
2360
41bd17a4 2361NAME: strip_query_terms
5473c134 2362TYPE: onoff
41bd17a4 2363LOC: Config.onoff.strip_query_terms
5473c134 2364DEFAULT: on
2365DOC_START
41bd17a4 2366 By default, Squid strips query terms from requested URLs before
2367 logging. This protects your user's privacy.
5473c134 2368DOC_END
2369
41bd17a4 2370NAME: buffered_logs
2371COMMENT: on|off
2372TYPE: onoff
2373DEFAULT: off
2374LOC: Config.onoff.buffered_logs
5473c134 2375DOC_START
41bd17a4 2376 cache.log log file is written with stdio functions, and as such
2377 it can be buffered or unbuffered. By default it will be unbuffered.
2378 Buffering it can speed up the writing slightly (though you are
2379 unlikely to need to worry unless you run with tons of debugging
2380 enabled in which case performance will suffer badly anyway..).
6b698a21 2381DOC_END
0976f8db 2382
2b753521 2383NAME: netdb_filename
2384TYPE: string
2385DEFAULT: @DEFAULT_NETDB_FILE@
2386LOC: Config.netdbFilename
fb6a61d1 2387IFDEF: USE_ICMP
2b753521 2388DOC_START
2389 A filename where Squid stores it's netdb state between restarts.
2390 To disable, enter "none".
2391DOC_END
2392
41bd17a4 2393COMMENT_START
2394 OPTIONS FOR FTP GATEWAYING
2395 -----------------------------------------------------------------------------
2396COMMENT_END
2397
2398NAME: ftp_user
2399TYPE: string
2400DEFAULT: Squid@
2401LOC: Config.Ftp.anon_user
6b698a21 2402DOC_START
41bd17a4 2403 If you want the anonymous login password to be more informative
2404 (and enable the use of picky ftp servers), set this to something
2405 reasonable for your domain, like wwwuser@somewhere.net
7f7db318 2406
41bd17a4 2407 The reason why this is domainless by default is the
2408 request can be made on the behalf of a user in any domain,
2409 depending on how the cache is used.
2410 Some ftp server also validate the email address is valid
2411 (for example perl.com).
6b698a21 2412DOC_END
0976f8db 2413
41bd17a4 2414NAME: ftp_list_width
2415TYPE: size_t
2416DEFAULT: 32
2417LOC: Config.Ftp.list_width
6b698a21 2418DOC_START
41bd17a4 2419 Sets the width of ftp listings. This should be set to fit in
2420 the width of a standard browser. Setting this too small
2421 can cut off long filenames when browsing ftp sites.
6b698a21 2422DOC_END
9e7dbc51 2423
41bd17a4 2424NAME: ftp_passive
2425TYPE: onoff
2426DEFAULT: on
2427LOC: Config.Ftp.passive
6b698a21 2428DOC_START
41bd17a4 2429 If your firewall does not allow Squid to use passive
2430 connections, turn off this option.
a689bd4e 2431
2432 Use of ftp_epsv_all option requires this to be ON.
2433DOC_END
2434
2435NAME: ftp_epsv_all
2436TYPE: onoff
2437DEFAULT: off
2438LOC: Config.Ftp.epsv_all
2439DOC_START
2440 FTP Protocol extensions permit the use of a special "EPSV ALL" command.
2441
2442 NATs may be able to put the connection on a "fast path" through the
2443 translator, as the EPRT command will never be used and therefore,
2444 translation of the data portion of the segments will never be needed.
2445
2446 When a client only expects to do two-way FTP transfers this may be useful.
2447 If squid finds that it must do a three-way FTP transfer after issuing
2448 an EPSV ALL command, the FTP session will fail.
2449
2450 If you have any doubts about this option do not use it.
2451 Squid will nicely attempt all other connection methods.
2452
2453 Requires ftp_passive to be ON (default)
41bd17a4 2454DOC_END
9e7dbc51 2455
41bd17a4 2456NAME: ftp_sanitycheck
2457TYPE: onoff
2458DEFAULT: on
2459LOC: Config.Ftp.sanitycheck
2460DOC_START
2461 For security and data integrity reasons Squid by default performs
2462 sanity checks of the addresses of FTP data connections ensure the
2463 data connection is to the requested server. If you need to allow
2464 FTP connections to servers using another IP address for the data
2465 connection turn this off.
2466DOC_END
9e7dbc51 2467
41bd17a4 2468NAME: ftp_telnet_protocol
2469TYPE: onoff
2470DEFAULT: on
2471LOC: Config.Ftp.telnet
2472DOC_START
2473 The FTP protocol is officially defined to use the telnet protocol
2474 as transport channel for the control connection. However, many
2475 implementations are broken and does not respect this aspect of
2476 the FTP protocol.
2477
2478 If you have trouble accessing files with ASCII code 255 in the
2479 path or similar problems involving this ASCII code you can
2480 try setting this directive to off. If that helps, report to the
2481 operator of the FTP server in question that their FTP server
2482 is broken and does not follow the FTP standard.
2483DOC_END
2484
2485COMMENT_START
2486 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
2487 -----------------------------------------------------------------------------
2488COMMENT_END
2489
2490NAME: diskd_program
2491TYPE: string
2492DEFAULT: @DEFAULT_DISKD@
2493LOC: Config.Program.diskd
2494DOC_START
2495 Specify the location of the diskd executable.
2496 Note this is only useful if you have compiled in
2497 diskd as one of the store io modules.
2498DOC_END
2499
2500NAME: unlinkd_program
2501IFDEF: USE_UNLINKD
2502TYPE: string
2503DEFAULT: @DEFAULT_UNLINKD@
2504LOC: Config.Program.unlinkd
2505DOC_START
2506 Specify the location of the executable for file deletion process.
2507DOC_END
2508
2509NAME: pinger_program
2510TYPE: string
2511DEFAULT: @DEFAULT_PINGER@
cc192b50 2512LOC: Config.pinger.program
41bd17a4 2513IFDEF: USE_ICMP
2514DOC_START
2515 Specify the location of the executable for the pinger process.
2516DOC_END
2517
cc192b50 2518NAME: pinger_enable
2519TYPE: onoff
2520DEFAULT: on
2521LOC: Config.pinger.enable
2522IFDEF: USE_ICMP
2523DOC_START
2524 Control whether the pinger is active at run-time.
2525 Enables turning ICMP pinger on and off with a simple squid -k reconfigure.
2526DOC_END
2527
2528
41bd17a4 2529COMMENT_START
2530 OPTIONS FOR URL REWRITING
2531 -----------------------------------------------------------------------------
2532COMMENT_END
2533
2534NAME: url_rewrite_program redirect_program
2535TYPE: wordlist
2536LOC: Config.Program.redirect
2537DEFAULT: none
2538DOC_START
2539 Specify the location of the executable for the URL rewriter.
2540 Since they can perform almost any function there isn't one included.
2541
2542 For each requested URL rewriter will receive on line with the format
2543
c71adec1 2544 URL <SP> client_ip "/" fqdn <SP> user <SP> method [<SP> kvpairs]<NL>
2545
2546 In the future, the rewriter interface will be extended with
2547 key=value pairs ("kvpairs" shown above). Rewriter programs
2548 should be prepared to receive and possibly ignore additional
2549 whitespace-separated tokens on each input line.
41bd17a4 2550
2551 And the rewriter may return a rewritten URL. The other components of
2552 the request line does not need to be returned (ignored if they are).
2553
2554 The rewriter can also indicate that a client-side redirect should
2555 be performed to the new URL. This is done by prefixing the returned
2556 URL with "301:" (moved permanently) or 302: (moved temporarily).
2557
2558 By default, a URL rewriter is not used.
2559DOC_END
2560
2561NAME: url_rewrite_children redirect_children
2562TYPE: int
2563DEFAULT: 5
2564LOC: Config.redirectChildren
2565DOC_START
2566 The number of redirector processes to spawn. If you start
2567 too few Squid will have to wait for them to process a backlog of
2568 URLs, slowing it down. If you start too many they will use RAM
2569 and other system resources.
2570DOC_END
2571
2572NAME: url_rewrite_concurrency redirect_concurrency
2573TYPE: int
2574DEFAULT: 0
2575LOC: Config.redirectConcurrency
2576DOC_START
2577 The number of requests each redirector helper can handle in
2578 parallel. Defaults to 0 which indicates the redirector
2579 is a old-style single threaded redirector.
2580DOC_END
2581
2582NAME: url_rewrite_host_header redirect_rewrites_host_header
2583TYPE: onoff
2584DEFAULT: on
2585LOC: Config.onoff.redir_rewrites_host
2586DOC_START
2587 By default Squid rewrites any Host: header in redirected
2588 requests. If you are running an accelerator this may
2589 not be a wanted effect of a redirector.
2590
2591 WARNING: Entries are cached on the result of the URL rewriting
2592 process, so be careful if you have domain-virtual hosts.
2593DOC_END
2594
2595NAME: url_rewrite_access redirector_access
2596TYPE: acl_access
2597DEFAULT: none
2598LOC: Config.accessList.redirector
2599DOC_START
2600 If defined, this access list specifies which requests are
2601 sent to the redirector processes. By default all requests
2602 are sent.
2603DOC_END
2604
2605NAME: url_rewrite_bypass redirector_bypass
2606TYPE: onoff
2607LOC: Config.onoff.redirector_bypass
2608DEFAULT: off
2609DOC_START
2610 When this is 'on', a request will not go through the
2611 redirector if all redirectors are busy. If this is 'off'
2612 and the redirector queue grows too large, Squid will exit
2613 with a FATAL error and ask you to increase the number of
2614 redirectors. You should only enable this if the redirectors
2615 are not critical to your caching system. If you use
2616 redirectors for access control, and you enable this option,
2617 users may have access to pages they should not
2618 be allowed to request.
2619DOC_END
2620
2621COMMENT_START
2622 OPTIONS FOR TUNING THE CACHE
2623 -----------------------------------------------------------------------------
2624COMMENT_END
2625
f04b37d8 2626NAME: cache no_cache
2627TYPE: acl_access
2628DEFAULT: none
2629LOC: Config.accessList.noCache
41bd17a4 2630DOC_START
240887f0 2631 A list of ACL elements which, if matched and denied, cause the request to
f04b37d8 2632 not be satisfied from the cache and the reply to not be cached.
2633 In other words, use this to force certain objects to never be cached.
41bd17a4 2634
240887f0 2635 You must use the words 'allow' or 'deny' to indicate whether items
2636 matching the ACL should be allowed or denied into the cache.
f04b37d8 2637
240887f0 2638 Default is to allow all to be cached.
41bd17a4 2639DOC_END
2640
2641NAME: refresh_pattern
2642TYPE: refreshpattern
2643LOC: Config.Refresh
2644DEFAULT: none
2645DOC_START
2646 usage: refresh_pattern [-i] regex min percent max [options]
9e7dbc51 2647
6b698a21 2648 By default, regular expressions are CASE-SENSITIVE. To make
2649 them case-insensitive, use the -i option.
9e7dbc51 2650
41bd17a4 2651 'Min' is the time (in minutes) an object without an explicit
2652 expiry time should be considered fresh. The recommended
2653 value is 0, any higher values may cause dynamic applications
2654 to be erroneously cached unless the application designer
2655 has taken the appropriate actions.
9e7dbc51 2656
41bd17a4 2657 'Percent' is a percentage of the objects age (time since last
2658 modification age) an object without explicit expiry time
2659 will be considered fresh.
5b807763 2660
41bd17a4 2661 'Max' is an upper limit on how long objects without an explicit
2662 expiry time will be considered fresh.
9e7dbc51 2663
41bd17a4 2664 options: override-expire
2665 override-lastmod
2666 reload-into-ims
2667 ignore-reload
2668 ignore-no-cache
2669 ignore-no-store
2670 ignore-private
2671 ignore-auth
2672 refresh-ims
a0ec9f68 2673
41bd17a4 2674 override-expire enforces min age even if the server
2675 sent a Expires: header. Doing this VIOLATES the HTTP
2676 standard. Enabling this feature could make you liable
2677 for problems which it causes.
6468fe10 2678
41bd17a4 2679 override-lastmod enforces min age even on objects
2680 that were modified recently.
934b03fc 2681
41bd17a4 2682 reload-into-ims changes client no-cache or ``reload''
2683 to If-Modified-Since requests. Doing this VIOLATES the
2684 HTTP standard. Enabling this feature could make you
2685 liable for problems which it causes.
dba79ac5 2686
41bd17a4 2687 ignore-reload ignores a client no-cache or ``reload''
2688 header. Doing this VIOLATES the HTTP standard. Enabling
2689 this feature could make you liable for problems which
2690 it causes.
9bc73deb 2691
41bd17a4 2692 ignore-no-cache ignores any ``Pragma: no-cache'' and
2693 ``Cache-control: no-cache'' headers received from a server.
2694 The HTTP RFC never allows the use of this (Pragma) header
2695 from a server, only a client, though plenty of servers
2696 send it anyway.
2697
2698 ignore-no-store ignores any ``Cache-control: no-store''
2699 headers received from a server. Doing this VIOLATES
2700 the HTTP standard. Enabling this feature could make you
2701 liable for problems which it causes.
2702
2703 ignore-private ignores any ``Cache-control: private''
2704 headers received from a server. Doing this VIOLATES
2705 the HTTP standard. Enabling this feature could make you
2706 liable for problems which it causes.
2707
2708 ignore-auth caches responses to requests with authorization,
2709 as if the originserver had sent ``Cache-control: public''
2710 in the response header. Doing this VIOLATES the HTTP standard.
2711 Enabling this feature could make you liable for problems which
2712 it causes.
2713
2714 refresh-ims causes squid to contact the origin server
2715 when a client issues an If-Modified-Since request. This
2716 ensures that the client will receive an updated version
2717 if one is available.
2718
2719 Basically a cached object is:
2720
2721 FRESH if expires < now, else STALE
2722 STALE if age > max
2723 FRESH if lm-factor < percent, else STALE
2724 FRESH if age < min
2725 else STALE
2726
2727 The refresh_pattern lines are checked in the order listed here.
2728 The first entry which matches is used. If none of the entries
2729 match the default will be used.
2730
2731 Note, you must uncomment all the default lines if you want
2732 to change one. The default setting is only active if none is
2733 used.
2734
2735Suggested default:
2736NOCOMMENT_START
2737refresh_pattern ^ftp: 1440 20% 10080
2738refresh_pattern ^gopher: 1440 0% 1440
89db45fa 2739refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
41bd17a4 2740refresh_pattern . 0 20% 4320
2741NOCOMMENT_END
2742DOC_END
2743
2744NAME: quick_abort_min
2745COMMENT: (KB)
2746TYPE: kb_int64_t
2747DEFAULT: 16 KB
2748LOC: Config.quickAbort.min
2749DOC_NONE
2750
2751NAME: quick_abort_max
2752COMMENT: (KB)
2753TYPE: kb_int64_t
2754DEFAULT: 16 KB
2755LOC: Config.quickAbort.max
2756DOC_NONE
2757
2758NAME: quick_abort_pct
2759COMMENT: (percent)
2760TYPE: int
2761DEFAULT: 95
2762LOC: Config.quickAbort.pct
2763DOC_START
2764 The cache by default continues downloading aborted requests
2765 which are almost completed (less than 16 KB remaining). This
2766 may be undesirable on slow (e.g. SLIP) links and/or very busy
2767 caches. Impatient users may tie up file descriptors and
2768 bandwidth by repeatedly requesting and immediately aborting
2769 downloads.
2770
2771 When the user aborts a request, Squid will check the
2772 quick_abort values to the amount of data transfered until
2773 then.
2774
2775 If the transfer has less than 'quick_abort_min' KB remaining,
2776 it will finish the retrieval.
2777
2778 If the transfer has more than 'quick_abort_max' KB remaining,
2779 it will abort the retrieval.
2780
2781 If more than 'quick_abort_pct' of the transfer has completed,
2782 it will finish the retrieval.
2783
2784 If you do not want any retrieval to continue after the client
2785 has aborted, set both 'quick_abort_min' and 'quick_abort_max'
2786 to '0 KB'.
2787
2788 If you want retrievals to always continue if they are being
2789 cached set 'quick_abort_min' to '-1 KB'.
2790DOC_END
60d096f4 2791
41bd17a4 2792NAME: read_ahead_gap
2793COMMENT: buffer-size
2794TYPE: b_int64_t
2795LOC: Config.readAheadGap
2796DEFAULT: 16 KB
2797DOC_START
2798 The amount of data the cache will buffer ahead of what has been
2799 sent to the client when retrieving an object from another server.
2800DOC_END
53e738c6 2801
41bd17a4 2802NAME: negative_ttl
2803COMMENT: time-units
2804TYPE: time_t
2805LOC: Config.negativeTtl
2806DEFAULT: 5 minutes
2807DOC_START
2808 Time-to-Live (TTL) for failed requests. Certain types of
2809 failures (such as "connection refused" and "404 Not Found") are
2810 negatively-cached for a configurable amount of time. The
2811 default is 5 minutes. Note that this is different from
2812 negative caching of DNS lookups.
2813DOC_END
53e738c6 2814
41bd17a4 2815NAME: positive_dns_ttl
2816COMMENT: time-units
2817TYPE: time_t
2818LOC: Config.positiveDnsTtl
2819DEFAULT: 6 hours
2820DOC_START
2821 Upper limit on how long Squid will cache positive DNS responses.
2822 Default is 6 hours (360 minutes). This directive must be set
2823 larger than negative_dns_ttl.
2824DOC_END
c4ab8329 2825
41bd17a4 2826NAME: negative_dns_ttl
2827COMMENT: time-units
2828TYPE: time_t
2829LOC: Config.negativeDnsTtl
2830DEFAULT: 1 minutes
2831DOC_START
2832 Time-to-Live (TTL) for negative caching of failed DNS lookups.
2833 This also sets the lower cache limit on positive lookups.
2834 Minimum value is 1 second, and it is not recommendable to go
2835 much below 10 seconds.
2836DOC_END
7df0bfd7 2837
41bd17a4 2838NAME: range_offset_limit
2839COMMENT: (bytes)
2840TYPE: b_int64_t
2841LOC: Config.rangeOffsetLimit
2842DEFAULT: 0 KB
2843DOC_START
2844 Sets a upper limit on how far into the the file a Range request
2845 may be to cause Squid to prefetch the whole file. If beyond this
2846 limit Squid forwards the Range request as it is and the result
2847 is NOT cached.
c4ab8329 2848
41bd17a4 2849 This is to stop a far ahead range request (lets say start at 17MB)
2850 from making Squid fetch the whole object up to that point before
2851 sending anything to the client.
a7ad6e4e 2852
41bd17a4 2853 A value of -1 causes Squid to always fetch the object from the
2854 beginning so it may cache the result. (2.0 style)
a7ad6e4e 2855
41bd17a4 2856 A value of 0 causes Squid to never fetch more than the
2857 client requested. (default)
2858DOC_END
d95b862f 2859
41bd17a4 2860NAME: minimum_expiry_time
2861COMMENT: (seconds)
2862TYPE: time_t
2863LOC: Config.minimum_expiry_time
2864DEFAULT: 60 seconds
2865DOC_START
2866 The minimum caching time according to (Expires - Date)
2867 Headers Squid honors if the object can't be revalidated
2868 defaults to 60 seconds. In reverse proxy enorinments it
2869 might be desirable to honor shorter object lifetimes. It
2870 is most likely better to make your server return a
2871 meaningful Last-Modified header however. In ESI environments
2872 where page fragments often have short lifetimes, this will
2873 often be best set to 0.
2874DOC_END
c68e9c6b 2875
41bd17a4 2876NAME: store_avg_object_size
2877COMMENT: (kbytes)
3e62bd58 2878TYPE: kb_int64_t
41bd17a4 2879DEFAULT: 13 KB
2880LOC: Config.Store.avgObjectSize
2881DOC_START
2882 Average object size, used to estimate number of objects your
2883 cache can hold. The default is 13 KB.
cccac0a2 2884DOC_END
2885
41bd17a4 2886NAME: store_objects_per_bucket
2887TYPE: int
2888DEFAULT: 20
2889LOC: Config.Store.objectsPerBucket
2890DOC_START
2891 Target number of objects per bucket in the store hash table.
2892 Lowering this value increases the total number of buckets and
2893 also the storage maintenance rate. The default is 20.
2894DOC_END
2895
2896COMMENT_START
2897 HTTP OPTIONS
2898 -----------------------------------------------------------------------------
2899COMMENT_END
2900
f04b37d8 2901NAME: request_header_max_size
2902COMMENT: (KB)
2903TYPE: b_size_t
2904DEFAULT: 20 KB
2905LOC: Config.maxRequestHeaderSize
2906DOC_START
2907 This specifies the maximum size for HTTP headers in a request.
2908 Request headers are usually relatively small (about 512 bytes).
2909 Placing a limit on the request header size will catch certain
2910 bugs (for example with persistent connections) and possibly
2911 buffer-overflow or denial-of-service attacks.
2912DOC_END
2913
2914NAME: reply_header_max_size
2915COMMENT: (KB)
2916TYPE: b_size_t
2917DEFAULT: 20 KB
2918LOC: Config.maxReplyHeaderSize
2919DOC_START
2920 This specifies the maximum size for HTTP headers in a reply.
2921 Reply headers are usually relatively small (about 512 bytes).
2922 Placing a limit on the reply header size will catch certain
2923 bugs (for example with persistent connections) and possibly
2924 buffer-overflow or denial-of-service attacks.
2925DOC_END
2926
2927NAME: request_body_max_size
2928COMMENT: (bytes)
2929TYPE: b_int64_t
2930DEFAULT: 0 KB
2931LOC: Config.maxRequestBodySize
2932DOC_START
2933 This specifies the maximum size for an HTTP request body.
2934 In other words, the maximum size of a PUT/POST request.
2935 A user who attempts to send a request with a body larger
2936 than this limit receives an "Invalid Request" error message.
2937 If you set this parameter to a zero (the default), there will
2938 be no limit imposed.
2939DOC_END
2940
41bd17a4 2941NAME: broken_posts
cccac0a2 2942TYPE: acl_access
cccac0a2 2943DEFAULT: none
41bd17a4 2944LOC: Config.accessList.brokenPosts
cccac0a2 2945DOC_START
41bd17a4 2946 A list of ACL elements which, if matched, causes Squid to send
2947 an extra CRLF pair after the body of a PUT/POST request.
cccac0a2 2948
41bd17a4 2949 Some HTTP servers has broken implementations of PUT/POST,
2950 and rely on an extra CRLF pair sent by some WWW clients.
cccac0a2 2951
41bd17a4 2952 Quote from RFC2616 section 4.1 on this matter:
cccac0a2 2953
41bd17a4 2954 Note: certain buggy HTTP/1.0 client implementations generate an
2955 extra CRLF's after a POST request. To restate what is explicitly
2956 forbidden by the BNF, an HTTP/1.1 client must not preface or follow
2957 a request with an extra CRLF.
cccac0a2 2958
41bd17a4 2959Example:
2960 acl buggy_server url_regex ^http://....
2961 broken_posts allow buggy_server
2962DOC_END
cccac0a2 2963
41bd17a4 2964NAME: via
2965IFDEF: HTTP_VIOLATIONS
2966COMMENT: on|off
2967TYPE: onoff
2968DEFAULT: on
2969LOC: Config.onoff.via
2970DOC_START
2971 If set (default), Squid will include a Via header in requests and
2972 replies as required by RFC2616.
2973DOC_END
4cc6eb12 2974
41bd17a4 2975NAME: ie_refresh
2976COMMENT: on|off
2977TYPE: onoff
2978LOC: Config.onoff.ie_refresh
2979DEFAULT: off
2980DOC_START
2981 Microsoft Internet Explorer up until version 5.5 Service
2982 Pack 1 has an issue with transparent proxies, wherein it
2983 is impossible to force a refresh. Turning this on provides
2984 a partial fix to the problem, by causing all IMS-REFRESH
2985 requests from older IE versions to check the origin server
2986 for fresh content. This reduces hit ratio by some amount
2987 (~10% in my experience), but allows users to actually get
2988 fresh content when they want it. Note because Squid
2989 cannot tell if the user is using 5.5 or 5.5SP1, the behavior
2990 of 5.5 is unchanged from old versions of Squid (i.e. a
2991 forced refresh is impossible). Newer versions of IE will,
2992 hopefully, continue to have the new behavior and will be
2993 handled based on that assumption. This option defaults to
2994 the old Squid behavior, which is better for hit ratios but
2995 worse for clients using IE, if they need to be able to
2996 force fresh content.
2997DOC_END
b9d7fe3e 2998
41bd17a4 2999NAME: vary_ignore_expire
3000COMMENT: on|off
3001TYPE: onoff
3002LOC: Config.onoff.vary_ignore_expire
3003DEFAULT: off
3004DOC_START
3005 Many HTTP servers supporting Vary gives such objects
3006 immediate expiry time with no cache-control header
3007 when requested by a HTTP/1.0 client. This option
3008 enables Squid to ignore such expiry times until
3009 HTTP/1.1 is fully implemented.
3010 WARNING: This may eventually cause some varying
3011 objects not intended for caching to get cached.
cccac0a2 3012DOC_END
c4ab8329 3013
41bd17a4 3014NAME: request_entities
3015TYPE: onoff
3016LOC: Config.onoff.request_entities
3017DEFAULT: off
3018DOC_START
3019 Squid defaults to deny GET and HEAD requests with request entities,
3020 as the meaning of such requests are undefined in the HTTP standard
3021 even if not explicitly forbidden.
0976f8db 3022
41bd17a4 3023 Set this directive to on if you have clients which insists
3024 on sending request entities in GET or HEAD requests. But be warned
3025 that there is server software (both proxies and web servers) which
3026 can fail to properly process this kind of request which may make you
3027 vulnerable to cache pollution attacks if enabled.
cccac0a2 3028DOC_END
6b53c392 3029
41bd17a4 3030NAME: request_header_access
3031IFDEF: HTTP_VIOLATIONS
3032TYPE: http_header_access[]
3033LOC: Config.request_header_access
cccac0a2 3034DEFAULT: none
cccac0a2 3035DOC_START
41bd17a4 3036 Usage: request_header_access header_name allow|deny [!]aclname ...
0976f8db 3037
41bd17a4 3038 WARNING: Doing this VIOLATES the HTTP standard. Enabling
3039 this feature could make you liable for problems which it
3040 causes.
0976f8db 3041
41bd17a4 3042 This option replaces the old 'anonymize_headers' and the
3043 older 'http_anonymizer' option with something that is much
3044 more configurable. This new method creates a list of ACLs
3045 for each header, allowing you very fine-tuned header
3046 mangling.
934b03fc 3047
41bd17a4 3048 This option only applies to request headers, i.e., from the
3049 client to the server.
5401aa8d 3050
41bd17a4 3051 You can only specify known headers for the header name.
3052 Other headers are reclassified as 'Other'. You can also
3053 refer to all the headers with 'All'.
5401aa8d 3054
41bd17a4 3055 For example, to achieve the same behavior as the old
3056 'http_anonymizer standard' option, you should use:
5401aa8d 3057
41bd17a4 3058 request_header_access From deny all
3059 request_header_access Referer deny all
3060 request_header_access Server deny all
3061 request_header_access User-Agent deny all
3062 request_header_access WWW-Authenticate deny all
3063 request_header_access Link deny all
5401aa8d 3064
41bd17a4 3065 Or, to reproduce the old 'http_anonymizer paranoid' feature
3066 you should use:
5401aa8d 3067
41bd17a4 3068 request_header_access Allow allow all
3069 request_header_access Authorization allow all
3070 request_header_access WWW-Authenticate allow all
3071 request_header_access Proxy-Authorization allow all
3072 request_header_access Proxy-Authenticate allow all
3073 request_header_access Cache-Control allow all
3074 request_header_access Content-Encoding allow all
3075 request_header_access Content-Length allow all
3076 request_header_access Content-Type allow all
3077 request_header_access Date allow all
3078 request_header_access Expires allow all
3079 request_header_access Host allow all
3080 request_header_access If-Modified-Since allow all
3081 request_header_access Last-Modified allow all
3082 request_header_access Location allow all
3083 request_header_access Pragma allow all
3084 request_header_access Accept allow all
3085 request_header_access Accept-Charset allow all
3086 request_header_access Accept-Encoding allow all
3087 request_header_access Accept-Language allow all
3088 request_header_access Content-Language allow all
3089 request_header_access Mime-Version allow all
3090 request_header_access Retry-After allow all
3091 request_header_access Title allow all
3092 request_header_access Connection allow all
3093 request_header_access Proxy-Connection allow all
3094 request_header_access All deny all
5401aa8d 3095
41bd17a4 3096 although many of those are HTTP reply headers, and so should be
3097 controlled with the reply_header_access directive.
5401aa8d 3098
41bd17a4 3099 By default, all headers are allowed (no anonymizing is
3100 performed).
5401aa8d 3101DOC_END
3102
41bd17a4 3103NAME: reply_header_access
3104IFDEF: HTTP_VIOLATIONS
3105TYPE: http_header_access[]
3106LOC: Config.reply_header_access
cccac0a2 3107DEFAULT: none
3108DOC_START
41bd17a4 3109 Usage: reply_header_access header_name allow|deny [!]aclname ...
934b03fc 3110
41bd17a4 3111 WARNING: Doing this VIOLATES the HTTP standard. Enabling
3112 this feature could make you liable for problems which it
3113 causes.
934b03fc 3114
41bd17a4 3115 This option only applies to reply headers, i.e., from the
3116 server to the client.
934b03fc 3117
41bd17a4 3118 This is the same as request_header_access, but in the other
3119 direction.
6b53c392 3120
41bd17a4 3121 This option replaces the old 'anonymize_headers' and the
3122 older 'http_anonymizer' option with something that is much
3123 more configurable. This new method creates a list of ACLs
3124 for each header, allowing you very fine-tuned header
3125 mangling.
cccac0a2 3126
41bd17a4 3127 You can only specify known headers for the header name.
3128 Other headers are reclassified as 'Other'. You can also
3129 refer to all the headers with 'All'.
cccac0a2 3130
41bd17a4 3131 For example, to achieve the same behavior as the old
3132 'http_anonymizer standard' option, you should use:
cccac0a2 3133
41bd17a4 3134 reply_header_access From deny all
3135 reply_header_access Referer deny all
3136 reply_header_access Server deny all
3137 reply_header_access User-Agent deny all
3138 reply_header_access WWW-Authenticate deny all
3139 reply_header_access Link deny all
cccac0a2 3140
41bd17a4 3141 Or, to reproduce the old 'http_anonymizer paranoid' feature
3142 you should use:
cccac0a2 3143
41bd17a4 3144 reply_header_access Allow allow all
3145 reply_header_access Authorization allow all
3146 reply_header_access WWW-Authenticate allow all
3147 reply_header_access Proxy-Authorization allow all
3148 reply_header_access Proxy-Authenticate allow all
3149 reply_header_access Cache-Control allow all
3150 reply_header_access Content-Encoding allow all
3151 reply_header_access Content-Length allow all
3152 reply_header_access Content-Type allow all
3153 reply_header_access Date allow all
3154 reply_header_access Expires allow all
3155 reply_header_access Host allow all
3156 reply_header_access If-Modified-Since allow all
3157 reply_header_access Last-Modified allow all
3158 reply_header_access Location allow all
3159 reply_header_access Pragma allow all
3160 reply_header_access Accept allow all
3161 reply_header_access Accept-Charset allow all
3162 reply_header_access Accept-Encoding allow all
3163 reply_header_access Accept-Language allow all
3164 reply_header_access Content-Language allow all
3165 reply_header_access Mime-Version allow all
3166 reply_header_access Retry-After allow all
3167 reply_header_access Title allow all
3168 reply_header_access Connection allow all
3169 reply_header_access Proxy-Connection allow all
3170 reply_header_access All deny all
cccac0a2 3171
41bd17a4 3172 although the HTTP request headers won't be usefully controlled
3173 by this directive -- see request_header_access for details.
cccac0a2 3174
41bd17a4 3175 By default, all headers are allowed (no anonymizing is
3176 performed).
cccac0a2 3177DOC_END
3178
41bd17a4 3179NAME: header_replace
3180IFDEF: HTTP_VIOLATIONS
3181TYPE: http_header_replace[]
3182LOC: Config.request_header_access
cccac0a2 3183DEFAULT: none
41bd17a4 3184DOC_START
3185 Usage: header_replace header_name message
3186 Example: header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit)
cccac0a2 3187
41bd17a4 3188 This option allows you to change the contents of headers
3189 denied with header_access above, by replacing them with
3190 some fixed string. This replaces the old fake_user_agent
3191 option.
cccac0a2 3192
41bd17a4 3193 This only applies to request headers, not reply headers.
cccac0a2 3194
41bd17a4 3195 By default, headers are removed if denied.
3196DOC_END
cccac0a2 3197
41bd17a4 3198NAME: relaxed_header_parser
3199COMMENT: on|off|warn
3200TYPE: tristate
3201LOC: Config.onoff.relaxed_header_parser
3202DEFAULT: on
3203DOC_START
3204 In the default "on" setting Squid accepts certain forms
3205 of non-compliant HTTP messages where it is unambiguous
3206 what the sending application intended even if the message
3207 is not correctly formatted. The messages is then normalized
3208 to the correct form when forwarded by Squid.
cccac0a2 3209
41bd17a4 3210 If set to "warn" then a warning will be emitted in cache.log
3211 each time such HTTP error is encountered.
cccac0a2 3212
41bd17a4 3213 If set to "off" then such HTTP errors will cause the request
3214 or response to be rejected.
3215DOC_END
7d90757b 3216
41bd17a4 3217COMMENT_START
3218 TIMEOUTS
3219 -----------------------------------------------------------------------------
3220COMMENT_END
3221
3222NAME: forward_timeout
3223COMMENT: time-units
3224TYPE: time_t
3225LOC: Config.Timeout.forward
3226DEFAULT: 4 minutes
3227DOC_START
3228 This parameter specifies how long Squid should at most attempt in
3229 finding a forwarding path for the request before giving up.
cccac0a2 3230DOC_END
3231
41bd17a4 3232NAME: connect_timeout
3233COMMENT: time-units
3234TYPE: time_t
3235LOC: Config.Timeout.connect
3236DEFAULT: 1 minute
057f5854 3237DOC_START
41bd17a4 3238 This parameter specifies how long to wait for the TCP connect to
3239 the requested server or peer to complete before Squid should
3240 attempt to find another path where to forward the request.
057f5854 3241DOC_END
3242
41bd17a4 3243NAME: peer_connect_timeout
3244COMMENT: time-units
3245TYPE: time_t
3246LOC: Config.Timeout.peer_connect
3247DEFAULT: 30 seconds
cccac0a2 3248DOC_START
41bd17a4 3249 This parameter specifies how long to wait for a pending TCP
3250 connection to a peer cache. The default is 30 seconds. You
3251 may also set different timeout values for individual neighbors
3252 with the 'connect-timeout' option on a 'cache_peer' line.
3253DOC_END
7f7db318 3254
41bd17a4 3255NAME: read_timeout
3256COMMENT: time-units
3257TYPE: time_t
3258LOC: Config.Timeout.read
3259DEFAULT: 15 minutes
3260DOC_START
3261 The read_timeout is applied on server-side connections. After
3262 each successful read(), the timeout will be extended by this
3263 amount. If no data is read again after this amount of time,
3264 the request is aborted and logged with ERR_READ_TIMEOUT. The
3265 default is 15 minutes.
3266DOC_END
cccac0a2 3267
41bd17a4 3268NAME: request_timeout
3269TYPE: time_t
3270LOC: Config.Timeout.request
3271DEFAULT: 5 minutes
3272DOC_START
3273 How long to wait for an HTTP request after initial
3274 connection establishment.
3275DOC_END
cccac0a2 3276
41bd17a4 3277NAME: persistent_request_timeout
3278TYPE: time_t
3279LOC: Config.Timeout.persistent_request
3280DEFAULT: 2 minutes
3281DOC_START
3282 How long to wait for the next HTTP request on a persistent
3283 connection after the previous request completes.
3284DOC_END
cccac0a2 3285
41bd17a4 3286NAME: client_lifetime
3287COMMENT: time-units
3288TYPE: time_t
3289LOC: Config.Timeout.lifetime
3290DEFAULT: 1 day
3291DOC_START
3292 The maximum amount of time a client (browser) is allowed to
3293 remain connected to the cache process. This protects the Cache
3294 from having a lot of sockets (and hence file descriptors) tied up
3295 in a CLOSE_WAIT state from remote clients that go away without
3296 properly shutting down (either because of a network failure or
3297 because of a poor client implementation). The default is one
3298 day, 1440 minutes.
7d90757b 3299
41bd17a4 3300 NOTE: The default value is intended to be much larger than any
3301 client would ever need to be connected to your cache. You
3302 should probably change client_lifetime only as a last resort.
3303 If you seem to have many client connections tying up
3304 filedescriptors, we recommend first tuning the read_timeout,
3305 request_timeout, persistent_request_timeout and quick_abort values.
cccac0a2 3306DOC_END
3307
41bd17a4 3308NAME: half_closed_clients
3309TYPE: onoff
3310LOC: Config.onoff.half_closed_clients
3311DEFAULT: on
4eb368f9 3312DOC_START
41bd17a4 3313 Some clients may shutdown the sending side of their TCP
3314 connections, while leaving their receiving sides open. Sometimes,
3315 Squid can not tell the difference between a half-closed and a
3316 fully-closed TCP connection. By default, half-closed client
3317 connections are kept open until a read(2) or write(2) on the
3318 socket returns an error. Change this option to 'off' and Squid
3319 will immediately close client connections when read(2) returns
3320 "no more data to read."
4eb368f9 3321DOC_END
3322
41bd17a4 3323NAME: pconn_timeout
3324TYPE: time_t
3325LOC: Config.Timeout.pconn
3326DEFAULT: 1 minute
cccac0a2 3327DOC_START
41bd17a4 3328 Timeout for idle persistent connections to servers and other
3329 proxies.
3330DOC_END
cccac0a2 3331
41bd17a4 3332NAME: ident_timeout
3333TYPE: time_t
3334IFDEF: USE_IDENT
3335LOC: Config.Timeout.ident
3336DEFAULT: 10 seconds
3337DOC_START
3338 Maximum time to wait for IDENT lookups to complete.
cccac0a2 3339
41bd17a4 3340 If this is too high, and you enabled IDENT lookups from untrusted
3341 users, you might be susceptible to denial-of-service by having
3342 many ident requests going at once.
cccac0a2 3343DOC_END
3344
41bd17a4 3345NAME: shutdown_lifetime
3346COMMENT: time-units
3347TYPE: time_t
3348LOC: Config.shutdownLifetime
3349DEFAULT: 30 seconds
cccac0a2 3350DOC_START
41bd17a4 3351 When SIGTERM or SIGHUP is received, the cache is put into
3352 "shutdown pending" mode until all active sockets are closed.
3353 This value is the lifetime to set for all open descriptors
3354 during shutdown mode. Any active clients after this many
3355 seconds will receive a 'timeout' message.
cccac0a2 3356DOC_END
0976f8db 3357
cccac0a2 3358COMMENT_START
3359 ADMINISTRATIVE PARAMETERS
3360 -----------------------------------------------------------------------------
3361COMMENT_END
3362
3363NAME: cache_mgr
3364TYPE: string
3365DEFAULT: webmaster
3366LOC: Config.adminEmail
3367DOC_START
3368 Email-address of local cache manager who will receive
3369 mail if the cache dies. The default is "webmaster."
3370DOC_END
3371
abacf776 3372NAME: mail_from
3373TYPE: string
3374DEFAULT: none
3375LOC: Config.EmailFrom
3376DOC_START
3377 From: email-address for mail sent when the cache dies.
3378 The default is to use 'appname@unique_hostname'.
b8c0c06d 3379 Default appname value is "squid", can be changed into
abacf776 3380 src/globals.h before building squid.
3381DOC_END
3382
d084bf20 3383NAME: mail_program
3384TYPE: eol
3385DEFAULT: mail
3386LOC: Config.EmailProgram
3387DOC_START
3388 Email program used to send mail if the cache dies.
846a5e31 3389 The default is "mail". The specified program must comply
d084bf20 3390 with the standard Unix mail syntax:
846a5e31 3391 mail-program recipient < mailfile
3392
d084bf20 3393 Optional command line options can be specified.
3394DOC_END
3395
cccac0a2 3396NAME: cache_effective_user
3397TYPE: string
5483d916 3398DEFAULT: @DEFAULT_CACHE_EFFECTIVE_USER@
cccac0a2 3399LOC: Config.effectiveUser
e3d74828 3400DOC_START
3401 If you start Squid as root, it will change its effective/real
3402 UID/GID to the user specified below. The default is to change
5483d916 3403 to UID of @DEFAULT_CACHE_EFFECTIVE_USER@.
64e288bd 3404 see also; cache_effective_group
e3d74828 3405DOC_END
3406
cccac0a2 3407NAME: cache_effective_group
3408TYPE: string
3409DEFAULT: none
3410LOC: Config.effectiveGroup
3411DOC_START
64e288bd 3412 Squid sets the GID to the effective user's default group ID
3413 (taken from the password file) and supplementary group list
3414 from the groups membership.
3415
e3d74828 3416 If you want Squid to run with a specific GID regardless of
3417 the group memberships of the effective user then set this
3418 to the group (or GID) you want Squid to run as. When set
64e288bd 3419 all other group privileges of the effective user are ignored
e3d74828 3420 and only this GID is effective. If Squid is not started as
64e288bd 3421 root the user starting Squid MUST be member of the specified
e3d74828 3422 group.
64e288bd 3423
3424 This option is not recommended by the Squid Team.
3425 Our preference is for administrators to configure a secure
3426 user account for squid with UID/GID matching system policies.
cccac0a2 3427DOC_END
3428
d3caee79 3429NAME: httpd_suppress_version_string
3430COMMENT: on|off
3431TYPE: onoff
3432DEFAULT: off
3433LOC: Config.onoff.httpd_suppress_version_string
3434DOC_START
3435 Suppress Squid version string info in HTTP headers and HTML error pages.
3436DOC_END
3437
cccac0a2 3438NAME: visible_hostname
3439TYPE: string
3440LOC: Config.visibleHostname
3441DEFAULT: none
3442DOC_START
3443 If you want to present a special hostname in error messages, etc,
7f7db318 3444 define this. Otherwise, the return value of gethostname()
cccac0a2 3445 will be used. If you have multiple caches in a cluster and
3446 get errors about IP-forwarding you must set them to have individual
3447 names with this setting.
3448DOC_END
3449
cccac0a2 3450NAME: unique_hostname
3451TYPE: string
3452LOC: Config.uniqueHostname
3453DEFAULT: none
3454DOC_START
3455 If you want to have multiple machines with the same
7f7db318 3456 'visible_hostname' you must give each machine a different
3457 'unique_hostname' so forwarding loops can be detected.
cccac0a2 3458DOC_END
3459
cccac0a2 3460NAME: hostname_aliases
3461TYPE: wordlist
3462LOC: Config.hostnameAliases
3463DEFAULT: none
3464DOC_START
7f7db318 3465 A list of other DNS names your cache has.
cccac0a2 3466DOC_END
0976f8db 3467
cccac0a2 3468COMMENT_START
3469 OPTIONS FOR THE CACHE REGISTRATION SERVICE
3470 -----------------------------------------------------------------------------
3471
3472 This section contains parameters for the (optional) cache
3473 announcement service. This service is provided to help
3474 cache administrators locate one another in order to join or
3475 create cache hierarchies.
3476
3477 An 'announcement' message is sent (via UDP) to the registration
3478 service by Squid. By default, the announcement message is NOT
3479 SENT unless you enable it with 'announce_period' below.
3480
3481 The announcement message includes your hostname, plus the
3482 following information from this configuration file:
3483
3484 http_port
3485 icp_port
3486 cache_mgr
3487
3488 All current information is processed regularly and made
3489 available on the Web at http://www.ircache.net/Cache/Tracker/.
3490COMMENT_END
3491
3492NAME: announce_period
3493TYPE: time_t
3494LOC: Config.Announce.period
3495DEFAULT: 0
3496DOC_START
3497 This is how frequently to send cache announcements. The
3498 default is `0' which disables sending the announcement
3499 messages.
3500
3501 To enable announcing your cache, just uncomment the line
3502 below.
3503
3504NOCOMMENT_START
9e7dbc51 3505#To enable announcing your cache, just uncomment the line below.
3506#announce_period 1 day
cccac0a2 3507NOCOMMENT_END
3508DOC_END
3509
cccac0a2 3510NAME: announce_host
3511TYPE: string
3512DEFAULT: tracker.ircache.net
3513LOC: Config.Announce.host
3514DOC_NONE
3515
3516NAME: announce_file
3517TYPE: string
3518DEFAULT: none
3519LOC: Config.Announce.file
3520DOC_NONE
3521
3522NAME: announce_port
3523TYPE: ushort
3524DEFAULT: 3131
3525LOC: Config.Announce.port
3526DOC_START
3527 announce_host and announce_port set the hostname and port
3528 number where the registration message will be sent.
3529
3530 Hostname will default to 'tracker.ircache.net' and port will
3531 default default to 3131. If the 'filename' argument is given,
3532 the contents of that file will be included in the announce
3533 message.
3534DOC_END
3535
8d6275c0 3536COMMENT_START
3537 HTTPD-ACCELERATOR OPTIONS
3538 -----------------------------------------------------------------------------
3539COMMENT_END
3540
cccac0a2 3541NAME: httpd_accel_surrogate_id
f41735ea 3542IFDEF: USE_SQUID_ESI
cccac0a2 3543TYPE: string
3544LOC: Config.Accel.surrogate_id
3545DEFAULT: unset-id
3546DOC_START
3547 Surrogates (http://www.esi.org/architecture_spec_1.0.html)
3548 need an identification token to allow control targeting. Because
3549 a farm of surrogates may all perform the same tasks, they may share
3550 an identification token.
3551DOC_END
3552
3553NAME: http_accel_surrogate_remote
f41735ea 3554IFDEF: USE_SQUID_ESI
cccac0a2 3555COMMENT: on|off
3556TYPE: onoff
3557DEFAULT: off
3558LOC: Config.onoff.surrogate_is_remote
3559DOC_START
3560 Remote surrogates (such as those in a CDN) honour Surrogate-Control: no-store-remote.
3561 Set this to on to have squid behave as a remote surrogate.
3562DOC_END
3563
3564NAME: esi_parser
f41735ea 3565IFDEF: USE_SQUID_ESI
964b44c3 3566COMMENT: libxml2|expat|custom
cccac0a2 3567TYPE: string
3568LOC: ESIParser::Type
3569DEFAULT: custom
3570DOC_START
3571 ESI markup is not strictly XML compatible. The custom ESI parser
3572 will give higher performance, but cannot handle non ASCII character
3573 encodings.
3574DOC_END
0976f8db 3575
9edd9041 3576COMMENT_START
8d6275c0 3577 DELAY POOL PARAMETERS
9edd9041 3578 -----------------------------------------------------------------------------
3579COMMENT_END
3580
3581NAME: delay_pools
3582TYPE: delay_pool_count
3583DEFAULT: 0
3584IFDEF: DELAY_POOLS
3585LOC: Config.Delay
3586DOC_START
3587 This represents the number of delay pools to be used. For example,
3588 if you have one class 2 delay pool and one class 3 delays pool, you
3589 have a total of 2 delay pools.
3590DOC_END
3591
3592NAME: delay_class
3593TYPE: delay_pool_class
3594DEFAULT: none
3595IFDEF: DELAY_POOLS
3596LOC: Config.Delay
3597DOC_START
3598 This defines the class of each delay pool. There must be exactly one
3599 delay_class line for each delay pool. For example, to define two
3600 delay pools, one of class 2 and one of class 3, the settings above
3601 and here would be:
3602
3603Example:
3604 delay_pools 4 # 4 delay pools
3605 delay_class 1 2 # pool 1 is a class 2 pool
3606 delay_class 2 3 # pool 2 is a class 3 pool
3607 delay_class 3 4 # pool 3 is a class 4 pool
3608 delay_class 4 5 # pool 4 is a class 5 pool
3609
3610 The delay pool classes are:
3611
3612 class 1 Everything is limited by a single aggregate
3613 bucket.
3614
3615 class 2 Everything is limited by a single aggregate
3616 bucket as well as an "individual" bucket chosen
3617 from bits 25 through 32 of the IP address.
3618
3619 class 3 Everything is limited by a single aggregate
3620 bucket as well as a "network" bucket chosen
3621 from bits 17 through 24 of the IP address and a
3622 "individual" bucket chosen from bits 17 through
3623 32 of the IP address.
3624
3625 class 4 Everything in a class 3 delay pool, with an
3626 additional limit on a per user basis. This
3627 only takes effect if the username is established
3628 in advance - by forcing authentication in your
3629 http_access rules.
3630
3631 class 5 Requests are grouped according their tag (see
3632 external_acl's tag= reply).
3633
3634 NOTE: If an IP address is a.b.c.d
3635 -> bits 25 through 32 are "d"
3636 -> bits 17 through 24 are "c"
3637 -> bits 17 through 32 are "c * 256 + d"
3638DOC_END
3639
3640NAME: delay_access
3641TYPE: delay_pool_access
3642DEFAULT: none
3643IFDEF: DELAY_POOLS
3644LOC: Config.Delay
3645DOC_START
3646 This is used to determine which delay pool a request falls into.
3647
3648 delay_access is sorted per pool and the matching starts with pool 1,
3649 then pool 2, ..., and finally pool N. The first delay pool where the
3650 request is allowed is selected for the request. If it does not allow
3651 the request to any pool then the request is not delayed (default).
3652
3653 For example, if you want some_big_clients in delay
3654 pool 1 and lotsa_little_clients in delay pool 2:
3655
3656Example:
3657 delay_access 1 allow some_big_clients
3658 delay_access 1 deny all
3659 delay_access 2 allow lotsa_little_clients
3660 delay_access 2 deny all
3661 delay_access 3 allow authenticated_clients
3662DOC_END
3663
3664NAME: delay_parameters
3665TYPE: delay_pool_rates
3666DEFAULT: none
3667IFDEF: DELAY_POOLS
3668LOC: Config.Delay
3669DOC_START
3670 This defines the parameters for a delay pool. Each delay pool has
3671 a number of "buckets" associated with it, as explained in the
3672 description of delay_class. For a class 1 delay pool, the syntax is:
3673
3674delay_parameters pool aggregate
3675
3676 For a class 2 delay pool:
3677
3678delay_parameters pool aggregate individual
3679
3680 For a class 3 delay pool:
3681
3682delay_parameters pool aggregate network individual
3683
3684 For a class 4 delay pool:
3685
3686delay_parameters pool aggregate network individual user
3687
3688 For a class 5 delay pool:
3689
3690delay_parameters pool tag
3691
3692 The variables here are:
3693
3694 pool a pool number - ie, a number between 1 and the
3695 number specified in delay_pools as used in
3696 delay_class lines.
3697
3698 aggregate the "delay parameters" for the aggregate bucket
3699 (class 1, 2, 3).
3700
3701 individual the "delay parameters" for the individual
3702 buckets (class 2, 3).
3703
3704 network the "delay parameters" for the network buckets
3705 (class 3).
3706
3707 user the delay parameters for the user buckets
3708 (class 4).
3709
3710 tag the delay parameters for the tag buckets
3711 (class 5).
3712
3713 A pair of delay parameters is written restore/maximum, where restore is
3714 the number of bytes (not bits - modem and network speeds are usually
3715 quoted in bits) per second placed into the bucket, and maximum is the
3716 maximum number of bytes which can be in the bucket at any time.
3717
3718 For example, if delay pool number 1 is a class 2 delay pool as in the
3719 above example, and is being used to strictly limit each host to 64kbps
3720 (plus overheads), with no overall limit, the line is:
3721
3722delay_parameters 1 -1/-1 8000/8000
3723
3724 Note that the figure -1 is used to represent "unlimited".
3725
3726 And, if delay pool number 2 is a class 3 delay pool as in the above
3727 example, and you want to limit it to a total of 256kbps (strict limit)
3728 with each 8-bit network permitted 64kbps (strict limit) and each
3729 individual host permitted 4800bps with a bucket maximum size of 64kb
3730 to permit a decent web page to be downloaded at a decent speed
3731 (if the network is not being limited due to overuse) but slow down
3732 large downloads more significantly:
3733
3734delay_parameters 2 32000/32000 8000/8000 600/8000
3735
3736 There must be one delay_parameters line for each delay pool.
3737
3738 Finally, for a class 4 delay pool as in the example - each user will
3739 be limited to 128Kb no matter how many workstations they are logged into.:
3740
3741delay_parameters 4 32000/32000 8000/8000 600/64000 16000/16000
3742DOC_END
3743
3744NAME: delay_initial_bucket_level
3745COMMENT: (percent, 0-100)
3746TYPE: ushort
3747DEFAULT: 50
3748IFDEF: DELAY_POOLS
3749LOC: Config.Delay.initial
3750DOC_START
3751 The initial bucket percentage is used to determine how much is put
3752 in each bucket when squid starts, is reconfigured, or first notices
3753 a host accessing it (in class 2 and class 3, individual hosts and
3754 networks only have buckets associated with them once they have been
3755 "seen" by squid).
3756DOC_END
3757
cccac0a2 3758COMMENT_START
8d6275c0 3759 WCCPv1 AND WCCPv2 CONFIGURATION OPTIONS
cccac0a2 3760 -----------------------------------------------------------------------------
3761COMMENT_END
3762
8d6275c0 3763NAME: wccp_router
3764TYPE: address
3765LOC: Config.Wccp.router
3766DEFAULT: 0.0.0.0
3767IFDEF: USE_WCCP
3768DOC_NONE
3769NAME: wccp2_router
cc192b50 3770TYPE: IPAddress_list
8d6275c0 3771LOC: Config.Wccp2.router
cccac0a2 3772DEFAULT: none
8d6275c0 3773IFDEF: USE_WCCPv2
cccac0a2 3774DOC_START
8d6275c0 3775 Use this option to define your WCCP ``home'' router for
3776 Squid.
cccac0a2 3777
8d6275c0 3778 wccp_router supports a single WCCP(v1) router
cccac0a2 3779
8d6275c0 3780 wccp2_router supports multiple WCCPv2 routers
cccac0a2 3781
8d6275c0 3782 only one of the two may be used at the same time and defines
3783 which version of WCCP to use.
3784DOC_END
3785
3786NAME: wccp_version
cccac0a2 3787TYPE: int
8d6275c0 3788LOC: Config.Wccp.version
3789DEFAULT: 4
3790IFDEF: USE_WCCP
cccac0a2 3791DOC_START
8d6275c0 3792 This directive is only relevant if you need to set up WCCP(v1)
3793 to some very old and end-of-life Cisco routers. In all other
3794 setups it must be left unset or at the default setting.
3795 It defines an internal version in the WCCP(v1) protocol,
3796 with version 4 being the officially documented protocol.
cccac0a2 3797
8d6275c0 3798 According to some users, Cisco IOS 11.2 and earlier only
3799 support WCCP version 3. If you're using that or an earlier
3800 version of IOS, you may need to change this value to 3, otherwise
3801 do not specify this parameter.
cccac0a2 3802DOC_END
3803
8d6275c0 3804NAME: wccp2_rebuild_wait
3805TYPE: onoff
3806LOC: Config.Wccp2.rebuildwait
3807DEFAULT: on
3808IFDEF: USE_WCCPv2
3809DOC_START
3810 If this is enabled Squid will wait for the cache dir rebuild to finish
3811 before sending the first wccp2 HereIAm packet
3812DOC_END
cccac0a2 3813
8d6275c0 3814NAME: wccp2_forwarding_method
3815TYPE: int
3816LOC: Config.Wccp2.forwarding_method
3817DEFAULT: 1
3818IFDEF: USE_WCCPv2
cccac0a2 3819DOC_START
699acd19 3820 WCCP2 allows the setting of forwarding methods between the
8d6275c0 3821 router/switch and the cache. Valid values are as follows:
cccac0a2 3822
8d6275c0 3823 1 - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
3824 2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
cccac0a2 3825
8d6275c0 3826 Currently (as of IOS 12.4) cisco routers only support GRE.
3827 Cisco switches only support the L2 redirect assignment method.
cccac0a2 3828DOC_END
3829
8d6275c0 3830NAME: wccp2_return_method
3831TYPE: int
3832LOC: Config.Wccp2.return_method
3833DEFAULT: 1
3834IFDEF: USE_WCCPv2
cccac0a2 3835DOC_START
699acd19 3836 WCCP2 allows the setting of return methods between the
8d6275c0 3837 router/switch and the cache for packets that the cache
3838 decides not to handle. Valid values are as follows:
cccac0a2 3839
8d6275c0 3840 1 - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
3841 2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
cccac0a2 3842
8d6275c0 3843 Currently (as of IOS 12.4) cisco routers only support GRE.
3844 Cisco switches only support the L2 redirect assignment.
cccac0a2 3845
699acd19 3846 If the "ip wccp redirect exclude in" command has been
8d6275c0 3847 enabled on the cache interface, then it is still safe for
3848 the proxy server to use a l2 redirect method even if this
3849 option is set to GRE.
cccac0a2 3850DOC_END
3851
8d6275c0 3852NAME: wccp2_assignment_method
3853TYPE: int
3854LOC: Config.Wccp2.assignment_method
3855DEFAULT: 1
3856IFDEF: USE_WCCPv2
cccac0a2 3857DOC_START
8d6275c0 3858 WCCP2 allows the setting of methods to assign the WCCP hash
3859 Valid values are as follows:
cccac0a2 3860
8d6275c0 3861 1 - Hash assignment
3862 2 - Mask assignment
cccac0a2 3863
8d6275c0 3864 As a general rule, cisco routers support the hash assignment method
3865 and cisco switches support the mask assignment method.
3866DOC_END
cccac0a2 3867
8d6275c0 3868NAME: wccp2_service
3869TYPE: wccp2_service
3870LOC: Config.Wccp2.info
3871DEFAULT: none
3872DEFAULT_IF_NONE: standard 0
3873IFDEF: USE_WCCPv2
3874DOC_START
3875 WCCP2 allows for multiple traffic services. There are two
3876 types: "standard" and "dynamic". The standard type defines
3877 one service id - http (id 0). The dynamic service ids can be from
3878 51 to 255 inclusive. In order to use a dynamic service id
3879 one must define the type of traffic to be redirected; this is done
3880 using the wccp2_service_info option.
3881
3882 The "standard" type does not require a wccp2_service_info option,
3883 just specifying the service id will suffice.
3884
3885 MD5 service authentication can be enabled by adding
3886 "password=<password>" to the end of this service declaration.
3887
3888 Examples:
3889
3890 wccp2_service standard 0 # for the 'web-cache' standard service
3891 wccp2_service dynamic 80 # a dynamic service type which will be
3892 # fleshed out with subsequent options.
3893 wccp2_service standard 0 password=foo
3894
3895DOC_END
3896
3897NAME: wccp2_service_info
3898TYPE: wccp2_service_info
3899LOC: Config.Wccp2.info
3900DEFAULT: none
3901IFDEF: USE_WCCPv2
3902DOC_START
3903 Dynamic WCCPv2 services require further information to define the
3904 traffic you wish to have diverted.
3905
3906 The format is:
3907
3908 wccp2_service_info <id> protocol=<protocol> flags=<flag>,<flag>..
3909 priority=<priority> ports=<port>,<port>..
3910
3911 The relevant WCCPv2 flags:
3912 + src_ip_hash, dst_ip_hash
3913 + source_port_hash, dest_port_hash
3914 + src_ip_alt_hash, dst_ip_alt_hash
3915 + src_port_alt_hash, dst_port_alt_hash
3916 + ports_source
3917
3918 The port list can be one to eight entries.
3919
3920 Example:
3921
3922 wccp2_service_info 80 protocol=tcp flags=src_ip_hash,ports_source
3923 priority=240 ports=80
3924
3925 Note: the service id must have been defined by a previous
3926 'wccp2_service dynamic <id>' entry.
3927DOC_END
3928
3929NAME: wccp2_weight
3930TYPE: int
3931LOC: Config.Wccp2.weight
3932DEFAULT: 10000
3933IFDEF: USE_WCCPv2
3934DOC_START
3935 Each cache server gets assigned a set of the destination
3936 hash proportional to their weight.
3937DOC_END
3938
3939NAME: wccp_address
3940TYPE: address
3941LOC: Config.Wccp.address
3942DEFAULT: 0.0.0.0
3943IFDEF: USE_WCCP
3944DOC_NONE
3945NAME: wccp2_address
3946TYPE: address
3947LOC: Config.Wccp2.address
3948DEFAULT: 0.0.0.0
3949IFDEF: USE_WCCPv2
3950DOC_START
3951 Use this option if you require WCCP to use a specific
3952 interface address.
3953
3954 The default behavior is to not bind to any specific address.
3955DOC_END
3956
3957COMMENT_START
3958 PERSISTENT CONNECTION HANDLING
3959 -----------------------------------------------------------------------------
3960
3961 Also see "pconn_timeout" in the TIMEOUTS section
3962COMMENT_END
3963
3964NAME: client_persistent_connections
3965TYPE: onoff
3966LOC: Config.onoff.client_pconns
3967DEFAULT: on
3968DOC_NONE
3969
3970NAME: server_persistent_connections
3971TYPE: onoff
3972LOC: Config.onoff.server_pconns
3973DEFAULT: on
3974DOC_START
3975 Persistent connection support for clients and servers. By
3976 default, Squid uses persistent connections (when allowed)
3977 with its clients and servers. You can use these options to
3978 disable persistent connections with clients and/or servers.
3979DOC_END
3980
3981NAME: persistent_connection_after_error
3982TYPE: onoff
3983LOC: Config.onoff.error_pconns
3984DEFAULT: off
3985DOC_START
3986 With this directive the use of persistent connections after
3987 HTTP errors can be disabled. Useful if you have clients
3988 who fail to handle errors on persistent connections proper.
3989DOC_END
3990
3991NAME: detect_broken_pconn
3992TYPE: onoff
3993LOC: Config.onoff.detect_broken_server_pconns
3994DEFAULT: off
3995DOC_START
3996 Some servers have been found to incorrectly signal the use
3997 of HTTP/1.0 persistent connections even on replies not
3998 compatible, causing significant delays. This server problem
3999 has mostly been seen on redirects.
4000
4001 By enabling this directive Squid attempts to detect such
4002 broken replies and automatically assume the reply is finished
4003 after 10 seconds timeout.
4004DOC_END
4005
4006COMMENT_START
4007 CACHE DIGEST OPTIONS
4008 -----------------------------------------------------------------------------
4009COMMENT_END
4010
4011NAME: digest_generation
4012IFDEF: USE_CACHE_DIGESTS
4013TYPE: onoff
4014LOC: Config.onoff.digest_generation
4015DEFAULT: on
4016DOC_START
4017 This controls whether the server will generate a Cache Digest
4018 of its contents. By default, Cache Digest generation is
13e917b5 4019 enabled if Squid is compiled with --enable-cache-digests defined.
8d6275c0 4020DOC_END
4021
4022NAME: digest_bits_per_entry
4023IFDEF: USE_CACHE_DIGESTS
4024TYPE: int
4025LOC: Config.digest.bits_per_entry
4026DEFAULT: 5
4027DOC_START
4028 This is the number of bits of the server's Cache Digest which
4029 will be associated with the Digest entry for a given HTTP
4030 Method and URL (public key) combination. The default is 5.
4031DOC_END
4032
4033NAME: digest_rebuild_period
4034IFDEF: USE_CACHE_DIGESTS
4035COMMENT: (seconds)
4036TYPE: time_t
4037LOC: Config.digest.rebuild_period
4038DEFAULT: 1 hour
4039DOC_START
749ceff8 4040 This is the wait time between Cache Digest rebuilds.
8d6275c0 4041DOC_END
4042
4043NAME: digest_rewrite_period
4044COMMENT: (seconds)
4045IFDEF: USE_CACHE_DIGESTS
4046TYPE: time_t
4047LOC: Config.digest.rewrite_period
4048DEFAULT: 1 hour
4049DOC_START
749ceff8 4050 This is the wait time between Cache Digest writes to
8d6275c0 4051 disk.
4052DOC_END
4053
4054NAME: digest_swapout_chunk_size
4055COMMENT: (bytes)
4056TYPE: b_size_t
4057IFDEF: USE_CACHE_DIGESTS
4058LOC: Config.digest.swapout_chunk_size
4059DEFAULT: 4096 bytes
4060DOC_START
4061 This is the number of bytes of the Cache Digest to write to
4062 disk at a time. It defaults to 4096 bytes (4KB), the Squid
4063 default swap page.
4064DOC_END
4065
4066NAME: digest_rebuild_chunk_percentage
4067COMMENT: (percent, 0-100)
4068IFDEF: USE_CACHE_DIGESTS
4069TYPE: int
4070LOC: Config.digest.rebuild_chunk_percentage
4071DEFAULT: 10
4072DOC_START
4073 This is the percentage of the Cache Digest to be scanned at a
4074 time. By default it is set to 10% of the Cache Digest.
4075DOC_END
4076
1db9eacd 4077COMMENT_START
5473c134 4078 SNMP OPTIONS
1db9eacd 4079 -----------------------------------------------------------------------------
4080COMMENT_END
4081
5473c134 4082NAME: snmp_port
4083TYPE: ushort
4084LOC: Config.Port.snmp
87630341 4085DEFAULT: 0
5473c134 4086IFDEF: SQUID_SNMP
8d6275c0 4087DOC_START
87630341 4088 The port number where Squid listens for SNMP requests. To enable
4089 SNMP support set this to a suitable port number. Port number
4090 3401 is often used for the Squid SNMP agent. By default it's
4091 set to "0" (disabled)
4092NOCOMMENT_START
4093#snmp_port 3401
4094NOCOMMENT_END
8d6275c0 4095DOC_END
4096
5473c134 4097NAME: snmp_access
4098TYPE: acl_access
4099LOC: Config.accessList.snmp
8d6275c0 4100DEFAULT: none
5473c134 4101DEFAULT_IF_NONE: deny all
4102IFDEF: SQUID_SNMP
8d6275c0 4103DOC_START
5473c134 4104 Allowing or denying access to the SNMP port.
8d6275c0 4105
5473c134 4106 All access to the agent is denied by default.
4107 usage:
8d6275c0 4108
5473c134 4109 snmp_access allow|deny [!]aclname ...
8d6275c0 4110
5473c134 4111Example:
4112 snmp_access allow snmppublic localhost
4113 snmp_access deny all
cccac0a2 4114DOC_END
4115
5473c134 4116NAME: snmp_incoming_address
4117TYPE: address
4118LOC: Config.Addrs.snmp_incoming
4119DEFAULT: 0.0.0.0
4120IFDEF: SQUID_SNMP
4121DOC_NONE
4122NAME: snmp_outgoing_address
4123TYPE: address
4124LOC: Config.Addrs.snmp_outgoing
4125DEFAULT: 255.255.255.255
4126IFDEF: SQUID_SNMP
cccac0a2 4127DOC_START
5473c134 4128 Just like 'udp_incoming_address' above, but for the SNMP port.
cccac0a2 4129
5473c134 4130 snmp_incoming_address is used for the SNMP socket receiving
4131 messages from SNMP agents.
4132 snmp_outgoing_address is used for SNMP packets returned to SNMP
4133 agents.
cccac0a2 4134
5473c134 4135 The default snmp_incoming_address (0.0.0.0) is to listen on all
4136 available network interfaces.
cccac0a2 4137
5473c134 4138 If snmp_outgoing_address is set to 255.255.255.255 (the default)
4139 it will use the same socket as snmp_incoming_address. Only
4140 change this if you want to have SNMP replies sent using another
4141 address than where this Squid listens for SNMP queries.
cccac0a2 4142
5473c134 4143 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
4144 the same value since they both use port 3401.
cccac0a2 4145DOC_END
4146
5473c134 4147COMMENT_START
4148 ICP OPTIONS
4149 -----------------------------------------------------------------------------
4150COMMENT_END
4151
4152NAME: icp_port udp_port
4153TYPE: ushort
4154DEFAULT: 0
4155LOC: Config.Port.icp
cccac0a2 4156DOC_START
5473c134 4157 The port number where Squid sends and receives ICP queries to
4158 and from neighbor caches. The standard UDP port for ICP is 3130.
4159 Default is disabled (0).
4160NOCOMMENT_START
4161icp_port @DEFAULT_ICP_PORT@
4162NOCOMMENT_END
cccac0a2 4163DOC_END
4164
5473c134 4165NAME: htcp_port
4166IFDEF: USE_HTCP
4167TYPE: ushort
87630341 4168DEFAULT: 0
5473c134 4169LOC: Config.Port.htcp
cccac0a2 4170DOC_START
5473c134 4171 The port number where Squid sends and receives HTCP queries to
87630341 4172 and from neighbor caches. To turn it on you want to set it to
4173 4827. By default it is set to "0" (disabled).
4174NOCOMMENT_START
4175#htcp_port 4827
4176NOCOMMENT_END
cccac0a2 4177DOC_END
4178
4179NAME: log_icp_queries
4180COMMENT: on|off
4181TYPE: onoff
4182DEFAULT: on
4183LOC: Config.onoff.log_udp
4184DOC_START
4185 If set, ICP queries are logged to access.log. You may wish
4186 do disable this if your ICP load is VERY high to speed things
4187 up or to simplify log analysis.
4188DOC_END
4189
5473c134 4190NAME: udp_incoming_address
4191TYPE: address
4192LOC:Config.Addrs.udp_incoming
4193DEFAULT: 0.0.0.0
8524d4b2 4194DOC_START
4195 udp_incoming_address is used for UDP packets received from other
4196 caches.
4197
4198 The default behavior is to not bind to any specific address.
4199
4200 Only change this if you want to have all UDP queries received on
4201 a specific interface/address.
4202
4203 NOTE: udp_incoming_address is used by the ICP, HTCP, and DNS
4204 modules. Altering it will affect all of them in the same manner.
4205
4206 see also; udp_outgoing_address
4207
4208 NOTE, udp_incoming_address and udp_outgoing_address can not
4209 have the same value since they both use the same port.
4210DOC_END
cccac0a2 4211
5473c134 4212NAME: udp_outgoing_address
4213TYPE: address
4214LOC: Config.Addrs.udp_outgoing
4215DEFAULT: 255.255.255.255
cccac0a2 4216DOC_START
8524d4b2 4217 udp_outgoing_address is used for UDP packets sent out to other
5473c134 4218 caches.
cccac0a2 4219
5473c134 4220 The default behavior is to not bind to any specific address.
cccac0a2 4221
8524d4b2 4222 Instead it will use the same socket as udp_incoming_address.
4223 Only change this if you want to have UDP queries sent using another
4224 address than where this Squid listens for UDP queries from other
5473c134 4225 caches.
4226
8524d4b2 4227 NOTE: udp_outgoing_address is used by the ICP, HTCP, and DNS
4228 modules. Altering it will affect all of them in the same manner.
4229
4230 see also; udp_incoming_address
4231
5473c134 4232 NOTE, udp_incoming_address and udp_outgoing_address can not
8524d4b2 4233 have the same value since they both use the same port.
cccac0a2 4234DOC_END
4235
3d1e3e43 4236NAME: icp_hit_stale
4237COMMENT: on|off
4238TYPE: onoff
4239DEFAULT: off
4240LOC: Config.onoff.icp_hit_stale
4241DOC_START
4242 If you want to return ICP_HIT for stale cache objects, set this
4243 option to 'on'. If you have sibling relationships with caches
4244 in other administrative domains, this should be 'off'. If you only
4245 have sibling relationships with caches under your control,
4246 it is probably okay to set this to 'on'.
4247 If set to 'on', your siblings should use the option "allow-miss"
4248 on their cache_peer lines for connecting to you.
4249DOC_END
4250
5473c134 4251NAME: minimum_direct_hops
cccac0a2 4252TYPE: int
5473c134 4253DEFAULT: 4
4254LOC: Config.minDirectHops
cccac0a2 4255DOC_START
5473c134 4256 If using the ICMP pinging stuff, do direct fetches for sites
4257 which are no more than this many hops away.
cccac0a2 4258DOC_END
4259
5473c134 4260NAME: minimum_direct_rtt
4261TYPE: int
4262DEFAULT: 400
4263LOC: Config.minDirectRtt
cccac0a2 4264DOC_START
5473c134 4265 If using the ICMP pinging stuff, do direct fetches for sites
4266 which are no more than this many rtt milliseconds away.
cccac0a2 4267DOC_END
4268
cccac0a2 4269NAME: netdb_low
4270TYPE: int
4271DEFAULT: 900
4272LOC: Config.Netdb.low
4273DOC_NONE
4274
4275NAME: netdb_high
4276TYPE: int
4277DEFAULT: 1000
4278LOC: Config.Netdb.high
4279DOC_START
4280 The low and high water marks for the ICMP measurement
4281 database. These are counts, not percents. The defaults are
4282 900 and 1000. When the high water mark is reached, database
4283 entries will be deleted until the low mark is reached.
4284DOC_END
4285
cccac0a2 4286NAME: netdb_ping_period
4287TYPE: time_t
4288LOC: Config.Netdb.period
4289DEFAULT: 5 minutes
4290DOC_START
4291 The minimum period for measuring a site. There will be at
4292 least this much delay between successive pings to the same
4293 network. The default is five minutes.
4294DOC_END
4295
cccac0a2 4296NAME: query_icmp
4297COMMENT: on|off
4298TYPE: onoff
4299DEFAULT: off
4300LOC: Config.onoff.query_icmp
4301DOC_START
4302 If you want to ask your peers to include ICMP data in their ICP
4303 replies, enable this option.
4304
4305 If your peer has configured Squid (during compilation) with
7f7db318 4306 '--enable-icmp' that peer will send ICMP pings to origin server
4307 sites of the URLs it receives. If you enable this option the
cccac0a2 4308 ICP replies from that peer will include the ICMP data (if available).
4309 Then, when choosing a parent cache, Squid will choose the parent with
4310 the minimal RTT to the origin server. When this happens, the
4311 hierarchy field of the access.log will be
4312 "CLOSEST_PARENT_MISS". This option is off by default.
4313DOC_END
4314
4315NAME: test_reachability
4316COMMENT: on|off
4317TYPE: onoff
4318DEFAULT: off
4319LOC: Config.onoff.test_reachability
4320DOC_START
4321 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
4322 instead of ICP_MISS if the target host is NOT in the ICMP
4323 database, or has a zero RTT.
4324DOC_END
4325
5473c134 4326NAME: icp_query_timeout
4327COMMENT: (msec)
4328DEFAULT: 0
4329TYPE: int
4330LOC: Config.Timeout.icp_query
4c3ef9b2 4331DOC_START
5473c134 4332 Normally Squid will automatically determine an optimal ICP
4333 query timeout value based on the round-trip-time of recent ICP
4334 queries. If you want to override the value determined by
4335 Squid, set this 'icp_query_timeout' to a non-zero value. This
4336 value is specified in MILLISECONDS, so, to use a 2-second
4337 timeout (the old default), you would write:
4c3ef9b2 4338
5473c134 4339 icp_query_timeout 2000
4c3ef9b2 4340DOC_END
4341
5473c134 4342NAME: maximum_icp_query_timeout
4343COMMENT: (msec)
4344DEFAULT: 2000
4345TYPE: int
4346LOC: Config.Timeout.icp_query_max
cccac0a2 4347DOC_START
5473c134 4348 Normally the ICP query timeout is determined dynamically. But
4349 sometimes it can lead to very large values (say 5 seconds).
4350 Use this option to put an upper limit on the dynamic timeout
4351 value. Do NOT use this option to always use a fixed (instead
4352 of a dynamic) timeout value. To set a fixed timeout see the
4353 'icp_query_timeout' directive.
cccac0a2 4354DOC_END
4355
5473c134 4356NAME: minimum_icp_query_timeout
4357COMMENT: (msec)
4358DEFAULT: 5
4359TYPE: int
4360LOC: Config.Timeout.icp_query_min
cccac0a2 4361DOC_START
5473c134 4362 Normally the ICP query timeout is determined dynamically. But
4363 sometimes it can lead to very small timeouts, even lower than
4364 the normal latency variance on your link due to traffic.
4365 Use this option to put an lower limit on the dynamic timeout
4366 value. Do NOT use this option to always use a fixed (instead
4367 of a dynamic) timeout value. To set a fixed timeout see the
4368 'icp_query_timeout' directive.
cccac0a2 4369DOC_END
4370
5473c134 4371NAME: background_ping_rate
4372COMMENT: time-units
4373TYPE: time_t
4374DEFAULT: 10 seconds
4375LOC: Config.backgroundPingRate
cccac0a2 4376DOC_START
5473c134 4377 Controls how often the ICP pings are sent to siblings that
4378 have background-ping set.
cccac0a2 4379DOC_END
4380
5473c134 4381COMMENT_START
4382 MULTICAST ICP OPTIONS
4383 -----------------------------------------------------------------------------
4384COMMENT_END
4385
4386NAME: mcast_groups
4387TYPE: wordlist
4388LOC: Config.mcast_group_list
8c01ada0 4389DEFAULT: none
4390DOC_START
5473c134 4391 This tag specifies a list of multicast groups which your server
4392 should join to receive multicasted ICP queries.
8c01ada0 4393
5473c134 4394 NOTE! Be very careful what you put here! Be sure you
4395 understand the difference between an ICP _query_ and an ICP
4396 _reply_. This option is to be set only if you want to RECEIVE
4397 multicast queries. Do NOT set this option to SEND multicast
4398 ICP (use cache_peer for that). ICP replies are always sent via
4399 unicast, so this option does not affect whether or not you will
4400 receive replies from multicast group members.
8c01ada0 4401
5473c134 4402 You must be very careful to NOT use a multicast address which
4403 is already in use by another group of caches.
8c01ada0 4404
5473c134 4405 If you are unsure about multicast, please read the Multicast
4406 chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/).
8c01ada0 4407
5473c134 4408 Usage: mcast_groups 239.128.16.128 224.0.1.20
8c01ada0 4409
5473c134 4410 By default, Squid doesn't listen on any multicast groups.
4411DOC_END
8c01ada0 4412
5473c134 4413NAME: mcast_miss_addr
4414IFDEF: MULTICAST_MISS_STREAM
4415TYPE: address
4416LOC: Config.mcast_miss.addr
4417DEFAULT: 255.255.255.255
4418DOC_START
4419 If you enable this option, every "cache miss" URL will
4420 be sent out on the specified multicast address.
cccac0a2 4421
5473c134 4422 Do not enable this option unless you are are absolutely
4423 certain you understand what you are doing.
cccac0a2 4424DOC_END
4425
5473c134 4426NAME: mcast_miss_ttl
4427IFDEF: MULTICAST_MISS_STREAM
4428TYPE: ushort
4429LOC: Config.mcast_miss.ttl
4430DEFAULT: 16
cccac0a2 4431DOC_START
5473c134 4432 This is the time-to-live value for packets multicasted
4433 when multicasting off cache miss URLs is enabled. By
4434 default this is set to 'site scope', i.e. 16.
4435DOC_END
cccac0a2 4436
5473c134 4437NAME: mcast_miss_port
4438IFDEF: MULTICAST_MISS_STREAM
4439TYPE: ushort
4440LOC: Config.mcast_miss.port
4441DEFAULT: 3135
4442DOC_START
4443 This is the port number to be used in conjunction with
4444 'mcast_miss_addr'.
4445DOC_END
cccac0a2 4446
5473c134 4447NAME: mcast_miss_encode_key
4448IFDEF: MULTICAST_MISS_STREAM
4449TYPE: string
4450LOC: Config.mcast_miss.encode_key
4451DEFAULT: XXXXXXXXXXXXXXXX
4452DOC_START
4453 The URLs that are sent in the multicast miss stream are
4454 encrypted. This is the encryption key.
4455DOC_END
8c01ada0 4456
5473c134 4457NAME: mcast_icp_query_timeout
4458COMMENT: (msec)
4459DEFAULT: 2000
4460TYPE: int
4461LOC: Config.Timeout.mcast_icp_query
4462DOC_START
4463 For multicast peers, Squid regularly sends out ICP "probes" to
4464 count how many other peers are listening on the given multicast
4465 address. This value specifies how long Squid should wait to
4466 count all the replies. The default is 2000 msec, or 2
4467 seconds.
cccac0a2 4468DOC_END
4469
5473c134 4470COMMENT_START
4471 INTERNAL ICON OPTIONS
4472 -----------------------------------------------------------------------------
4473COMMENT_END
4474
cccac0a2 4475NAME: icon_directory
4476TYPE: string
4477LOC: Config.icons.directory
4478DEFAULT: @DEFAULT_ICON_DIR@
4479DOC_START
4480 Where the icons are stored. These are normally kept in
4481 @DEFAULT_ICON_DIR@
4482DOC_END
4483
f024c970 4484NAME: global_internal_static
4485TYPE: onoff
4486LOC: Config.onoff.global_internal_static
4487DEFAULT: on
4488DOC_START
4489 This directive controls is Squid should intercept all requests for
4490 /squid-internal-static/ no matter which host the URL is requesting
4491 (default on setting), or if nothing special should be done for
4492 such URLs (off setting). The purpose of this directive is to make
4493 icons etc work better in complex cache hierarchies where it may
4494 not always be possible for all corners in the cache mesh to reach
4495 the server generating a directory listing.
4496DOC_END
4497
5473c134 4498NAME: short_icon_urls
4499TYPE: onoff
4500LOC: Config.icons.use_short_names
4501DEFAULT: on
4502DOC_START
4503 If this is enabled Squid will use short URLs for icons.
4504 If disabled it will revert to the old behavior of including
4505 it's own name and port in the URL.
4506
4507 If you run a complex cache hierarchy with a mix of Squid and
4508 other proxies you may need to disable this directive.
4509DOC_END
4510
4511COMMENT_START
4512 ERROR PAGE OPTIONS
4513 -----------------------------------------------------------------------------
4514COMMENT_END
4515
4516NAME: error_directory
4517TYPE: string
4518LOC: Config.errorDirectory
4519DEFAULT: @DEFAULT_ERROR_DIR@
4520DOC_START
4521 If you wish to create your own versions of the default
4522 (English) error files, either to customize them to suit your
4523 language or company copy the template English files to another
4524 directory and point this tag at them.
4525
4526 The squid developers are interested in making squid available in
4527 a wide variety of languages. If you are making translations for a
4528 langauge that Squid does not currently provide please consider
4529 contributing your translation back to the project.
4530DOC_END
4531
4532NAME: err_html_text
4533TYPE: eol
4534LOC: Config.errHtmlText
4535DEFAULT: none
4536DOC_START
4537 HTML text to include in error messages. Make this a "mailto"
4538 URL to your admin address, or maybe just a link to your
4539 organizations Web page.
4540
4541 To include this in your error messages, you must rewrite
4542 the error template files (found in the "errors" directory).
4543 Wherever you want the 'err_html_text' line to appear,
4544 insert a %L tag in the error template file.
4545DOC_END
4546
4547NAME: email_err_data
4548COMMENT: on|off
4549TYPE: onoff
4550LOC: Config.onoff.emailErrData
4551DEFAULT: on
4552DOC_START
4553 If enabled, information about the occurred error will be
4554 included in the mailto links of the ERR pages (if %W is set)
4555 so that the email body contains the data.
4556 Syntax is <A HREF="mailto:%w%W">%w</A>
4557DOC_END
4558
4559NAME: deny_info
4560TYPE: denyinfo
4561LOC: Config.denyInfoList
4562DEFAULT: none
4563DOC_START
4564 Usage: deny_info err_page_name acl
4565 or deny_info http://... acl
4566 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
4567
4568 This can be used to return a ERR_ page for requests which
4569 do not pass the 'http_access' rules. Squid remembers the last
4570 acl it evaluated in http_access, and if a 'deny_info' line exists
4571 for that ACL Squid returns a corresponding error page.
4572
4573 The acl is typically the last acl on the http_access deny line which
4574 denied access. The exceptions to this rule are:
4575 - When Squid needs to request authentication credentials. It's then
4576 the first authentication related acl encountered
4577 - When none of the http_access lines matches. It's then the last
4578 acl processed on the last http_access line.
4579
4580 You may use ERR_ pages that come with Squid or create your own pages
4581 and put them into the configured errors/ directory.
4582
4583 Alternatively you can specify an error URL. The browsers will
4584 get redirected (302) to the specified URL. %s in the redirection
4585 URL will be replaced by the requested URL.
4586
4587 Alternatively you can tell Squid to reset the TCP connection
4588 by specifying TCP_RESET.
4589DOC_END
4590
4591COMMENT_START
4592 OPTIONS INFLUENCING REQUEST FORWARDING
4593 -----------------------------------------------------------------------------
4594COMMENT_END
4595
4596NAME: nonhierarchical_direct
e72a0ec0 4597TYPE: onoff
5473c134 4598LOC: Config.onoff.nonhierarchical_direct
e72a0ec0 4599DEFAULT: on
4600DOC_START
5473c134 4601 By default, Squid will send any non-hierarchical requests
4602 (matching hierarchy_stoplist or not cacheable request type) direct
4603 to origin servers.
e72a0ec0 4604
5473c134 4605 If you set this to off, Squid will prefer to send these
4606 requests to parents.
0b0cfcf2 4607
5473c134 4608 Note that in most configurations, by turning this off you will only
4609 add latency to these request without any improvement in global hit
4610 ratio.
0b0cfcf2 4611
5473c134 4612 If you are inside an firewall see never_direct instead of
4613 this directive.
8d6275c0 4614DOC_END
0b0cfcf2 4615
5473c134 4616NAME: prefer_direct
8d6275c0 4617TYPE: onoff
5473c134 4618LOC: Config.onoff.prefer_direct
8d6275c0 4619DEFAULT: off
4620DOC_START
5473c134 4621 Normally Squid tries to use parents for most requests. If you for some
4622 reason like it to first try going direct and only use a parent if
4623 going direct fails set this to on.
0b0cfcf2 4624
5473c134 4625 By combining nonhierarchical_direct off and prefer_direct on you
4626 can set up Squid to use a parent as a backup path if going direct
4627 fails.
4628
4629 Note: If you want Squid to use parents for all requests see
4630 the never_direct directive. prefer_direct only modifies how Squid
4631 acts on cacheable requests.
cccac0a2 4632DOC_END
4633
5473c134 4634NAME: always_direct
8d6275c0 4635TYPE: acl_access
5473c134 4636LOC: Config.accessList.AlwaysDirect
0b0cfcf2 4637DEFAULT: none
0b0cfcf2 4638DOC_START
5473c134 4639 Usage: always_direct allow|deny [!]aclname ...
0b0cfcf2 4640
5473c134 4641 Here you can use ACL elements to specify requests which should
4642 ALWAYS be forwarded by Squid to the origin servers without using
4643 any peers. For example, to always directly forward requests for
4644 local servers ignoring any parents or siblings you may have use
4645 something like:
0b0cfcf2 4646
5473c134 4647 acl local-servers dstdomain my.domain.net
4648 always_direct allow local-servers
0b0cfcf2 4649
5473c134 4650 To always forward FTP requests directly, use
f16fbc82 4651
5473c134 4652 acl FTP proto FTP
4653 always_direct allow FTP
cccac0a2 4654
5473c134 4655 NOTE: There is a similar, but opposite option named
4656 'never_direct'. You need to be aware that "always_direct deny
4657 foo" is NOT the same thing as "never_direct allow foo". You
4658 may need to use a deny rule to exclude a more-specific case of
4659 some other rule. Example:
8d6275c0 4660
5473c134 4661 acl local-external dstdomain external.foo.net
4662 acl local-servers dstdomain .foo.net
4663 always_direct deny local-external
4664 always_direct allow local-servers
8d6275c0 4665
5473c134 4666 NOTE: If your goal is to make the client forward the request
4667 directly to the origin server bypassing Squid then this needs
4668 to be done in the client configuration. Squid configuration
4669 can only tell Squid how Squid should fetch the object.
8d6275c0 4670
5473c134 4671 NOTE: This directive is not related to caching. The replies
4672 is cached as usual even if you use always_direct. To not cache
4673 the replies see no_cache.
4674
4675 This option replaces some v1.1 options such as local_domain
4676 and local_ip.
cccac0a2 4677DOC_END
0976f8db 4678
5473c134 4679NAME: never_direct
4680TYPE: acl_access
4681LOC: Config.accessList.NeverDirect
4682DEFAULT: none
8d6275c0 4683DOC_START
5473c134 4684 Usage: never_direct allow|deny [!]aclname ...
4685
4686 never_direct is the opposite of always_direct. Please read
4687 the description for always_direct if you have not already.
4688
4689 With 'never_direct' you can use ACL elements to specify
4690 requests which should NEVER be forwarded directly to origin
4691 servers. For example, to force the use of a proxy for all
4692 requests, except those in your local domain use something like:
4693
4694 acl local-servers dstdomain .foo.net
4695 acl all src 0.0.0.0/0.0.0.0
4696 never_direct deny local-servers
4697 never_direct allow all
4698
4699 or if Squid is inside a firewall and there are local intranet
4700 servers inside the firewall use something like:
4701
4702 acl local-intranet dstdomain .foo.net
4703 acl local-external dstdomain external.foo.net
4704 always_direct deny local-external
4705 always_direct allow local-intranet
4706 never_direct allow all
4707
4708 This option replaces some v1.1 options such as inside_firewall
4709 and firewall_ip.
8d6275c0 4710DOC_END
0976f8db 4711
5473c134 4712COMMENT_START
4713 ADVANCED NETWORKING OPTIONS
4714 -----------------------------------------------------------------------------
4715COMMENT_END
4716
cccac0a2 4717NAME: incoming_icp_average
4718TYPE: int
4719DEFAULT: 6
4720LOC: Config.comm_incoming.icp_average
4721DOC_NONE
4722
4723NAME: incoming_http_average
4724TYPE: int
4725DEFAULT: 4
4726LOC: Config.comm_incoming.http_average
4727DOC_NONE
4728
4729NAME: incoming_dns_average
4730TYPE: int
4731DEFAULT: 4
4732LOC: Config.comm_incoming.dns_average
4733DOC_NONE
4734
4735NAME: min_icp_poll_cnt
4736TYPE: int
4737DEFAULT: 8
4738LOC: Config.comm_incoming.icp_min_poll
4739DOC_NONE
4740
4741NAME: min_dns_poll_cnt
4742TYPE: int
4743DEFAULT: 8
4744LOC: Config.comm_incoming.dns_min_poll
4745DOC_NONE
4746
4747NAME: min_http_poll_cnt
4748TYPE: int
4749DEFAULT: 8
4750LOC: Config.comm_incoming.http_min_poll
4751DOC_START
5473c134 4752 Heavy voodoo here. I can't even believe you are reading this.
4753 Are you crazy? Don't even think about adjusting these unless
4754 you understand the algorithms in comm_select.c first!
4755DOC_END
4756
4757NAME: accept_filter
5473c134 4758TYPE: string
4759DEFAULT: none
4760LOC: Config.accept_filter
4761DOC_START
0b4d4be5 4762 FreeBSD:
4763
5473c134 4764 The name of an accept(2) filter to install on Squid's
4765 listen socket(s). This feature is perhaps specific to
4766 FreeBSD and requires support in the kernel.
4767
4768 The 'httpready' filter delays delivering new connections
2324cda2 4769 to Squid until a full HTTP request has been received.
0b4d4be5 4770 See the accf_http(9) man page for details.
4771
4772 The 'dataready' filter delays delivering new connections
4773 to Squid until there is some data to process.
4774 See the accf_dataready(9) man page for details.
4775
4776 Linux:
4777
4778 The 'data' filter delays delivering of new connections
4779 to Squid until there is some data to process by TCP_ACCEPT_DEFER.
4780 You may optionally specify a number of seconds to wait by
4781 'data=N' where N is the number of seconds. Defaults to 30
4782 if not specified. See the tcp(7) man page for details.
5473c134 4783EXAMPLE:
0b4d4be5 4784# FreeBSD
5473c134 4785accept_filter httpready
0b4d4be5 4786# Linux
4787accept_filter data
5473c134 4788DOC_END
4789
4790NAME: tcp_recv_bufsize
4791COMMENT: (bytes)
4792TYPE: b_size_t
4793DEFAULT: 0 bytes
4794LOC: Config.tcpRcvBufsz
4795DOC_START
4796 Size of receive buffer to set for TCP sockets. Probably just
4797 as easy to change your kernel's default. Set to zero to use
4798 the default buffer size.
4799DOC_END
4800
4801COMMENT_START
4802 ICAP OPTIONS
4803 -----------------------------------------------------------------------------
4804COMMENT_END
4805
4806NAME: icap_enable
4807TYPE: onoff
4808IFDEF: ICAP_CLIENT
4809COMMENT: on|off
4810LOC: TheICAPConfig.onoff
4811DEFAULT: off
4812DOC_START
53e738c6 4813 If you want to enable the ICAP module support, set this to on.
5473c134 4814DOC_END
4815
4816NAME: icap_connect_timeout
4817TYPE: time_t
4818DEFAULT: none
4819LOC: TheICAPConfig.connect_timeout_raw
4820IFDEF: ICAP_CLIENT
4821DOC_START
4822 This parameter specifies how long to wait for the TCP connect to
4823 the requested ICAP server to complete before giving up and either
4824 terminating the HTTP transaction or bypassing the failure.
4825
4826 The default for optional services is peer_connect_timeout.
4827 The default for essential services is connect_timeout.
4828 If this option is explicitly set, its value applies to all services.
4829DOC_END
4830
4831NAME: icap_io_timeout
4832COMMENT: time-units
4833TYPE: time_t
4834DEFAULT: none
4835LOC: TheICAPConfig.io_timeout_raw
4836IFDEF: ICAP_CLIENT
4837DOC_START
4838 This parameter specifies how long to wait for an I/O activity on
4839 an established, active ICAP connection before giving up and
4840 either terminating the HTTP transaction or bypassing the
4841 failure.
4842
4843 The default is read_timeout.
4844DOC_END
4845
4846NAME: icap_service_failure_limit
4847TYPE: int
4848IFDEF: ICAP_CLIENT
4849LOC: TheICAPConfig.service_failure_limit
4850DEFAULT: 10
4851DOC_START
4852 The limit specifies the number of failures that Squid tolerates
4853 when establishing a new TCP connection with an ICAP service. If
4854 the number of failures exceeds the limit, the ICAP service is
4855 not used for new ICAP requests until it is time to refresh its
4856 OPTIONS. The per-service failure counter is reset to zero each
4857 time Squid fetches new service OPTIONS.
4858
4859 A negative value disables the limit. Without the limit, an ICAP
4860 service will not be considered down due to connectivity failures
4861 between ICAP OPTIONS requests.
cccac0a2 4862DOC_END
4863
5473c134 4864NAME: icap_service_revival_delay
cccac0a2 4865TYPE: int
5473c134 4866IFDEF: ICAP_CLIENT
4867LOC: TheICAPConfig.service_revival_delay
4868DEFAULT: 180
cccac0a2 4869DOC_START
5473c134 4870 The delay specifies the number of seconds to wait after an ICAP
4871 OPTIONS request failure before requesting the options again. The
4872 failed ICAP service is considered "down" until fresh OPTIONS are
4873 fetched.
cccac0a2 4874
5473c134 4875 The actual delay cannot be smaller than the hardcoded minimum
4876 delay of 30 seconds.
cccac0a2 4877DOC_END
4878
5473c134 4879NAME: icap_preview_enable
cccac0a2 4880TYPE: onoff
5473c134 4881IFDEF: ICAP_CLIENT
4882COMMENT: on|off
4883LOC: TheICAPConfig.preview_enable
ac7a62f9 4884DEFAULT: on
cccac0a2 4885DOC_START
ac7a62f9 4886 The ICAP Preview feature allows the ICAP server to handle the
4887 HTTP message by looking only at the beginning of the message body
4888 or even without receiving the body at all. In some environments,
4889 previews greatly speedup ICAP processing.
4890
4891 During an ICAP OPTIONS transaction, the server may tell Squid what
4892 HTTP messages should be previewed and how big the preview should be.
4893 Squid will not use Preview if the server did not request one.
4894
4895 To disable ICAP Preview for all ICAP services, regardless of
4896 individual ICAP server OPTIONS responses, set this option to "off".
4897Example:
4898icap_preview_enable off
cccac0a2 4899DOC_END
4900
5473c134 4901NAME: icap_preview_size
4902TYPE: int
4903IFDEF: ICAP_CLIENT
4904LOC: TheICAPConfig.preview_size
4905DEFAULT: -1
cccac0a2 4906DOC_START
53e738c6 4907 The default size of preview data to be sent to the ICAP server.
4908 -1 means no preview. This value might be overwritten on a per server
4909 basis by OPTIONS requests.
cccac0a2 4910DOC_END
4911
5473c134 4912NAME: icap_default_options_ttl
4913TYPE: int
4914IFDEF: ICAP_CLIENT
4915LOC: TheICAPConfig.default_options_ttl
4916DEFAULT: 60
cccac0a2 4917DOC_START
53e738c6 4918 The default TTL value for ICAP OPTIONS responses that don't have
5473c134 4919 an Options-TTL header.
cccac0a2 4920DOC_END
4921
5473c134 4922NAME: icap_persistent_connections
4923TYPE: onoff
4924IFDEF: ICAP_CLIENT
4925COMMENT: on|off
4926LOC: TheICAPConfig.reuse_connections
4927DEFAULT: on
cccac0a2 4928DOC_START
5473c134 4929 Whether or not Squid should use persistent connections to
4930 an ICAP server.
cccac0a2 4931DOC_END
4932
5473c134 4933NAME: icap_send_client_ip
4934TYPE: onoff
4935IFDEF: ICAP_CLIENT
4936COMMENT: on|off
4937LOC: TheICAPConfig.send_client_ip
4938DEFAULT: off
cccac0a2 4939DOC_START
53e738c6 4940 This adds the header "X-Client-IP" to ICAP requests.
cccac0a2 4941DOC_END
4942
5473c134 4943NAME: icap_send_client_username
4944TYPE: onoff
4945IFDEF: ICAP_CLIENT
4946COMMENT: on|off
4947LOC: TheICAPConfig.send_client_username
4948DEFAULT: off
cccac0a2 4949DOC_START
5473c134 4950 This sends authenticated HTTP client username (if available) to
4951 the ICAP service. The username value is encoded based on the
4952 icap_client_username_encode option and is sent using the header
4953 specified by the icap_client_username_header option.
cccac0a2 4954DOC_END
4955
5473c134 4956NAME: icap_client_username_header
cccac0a2 4957TYPE: string
5473c134 4958IFDEF: ICAP_CLIENT
4959LOC: TheICAPConfig.client_username_header
4960DEFAULT: X-Client-Username
cccac0a2 4961DOC_START
5473c134 4962 ICAP request header name to use for send_client_username.
cccac0a2 4963DOC_END
4964
5473c134 4965NAME: icap_client_username_encode
cccac0a2 4966TYPE: onoff
5473c134 4967IFDEF: ICAP_CLIENT
4968COMMENT: on|off
4969LOC: TheICAPConfig.client_username_encode
4970DEFAULT: off
cccac0a2 4971DOC_START
5473c134 4972 Whether to base64 encode the authenticated client username.
cccac0a2 4973DOC_END
4974
5473c134 4975NAME: icap_service
4976TYPE: icap_service_type
4977IFDEF: ICAP_CLIENT
4978LOC: TheICAPConfig
4979DEFAULT: none
cccac0a2 4980DOC_START
53e738c6 4981 Defines a single ICAP service
cccac0a2 4982
53e738c6 4983 icap_service servicename vectoring_point bypass service_url
7d90757b 4984
53e738c6 4985 vectoring_point = reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache
f3db09e2 4986 This specifies at which point of transaction processing the
4987 ICAP service should be activated. *_postcache vectoring points
4988 are not yet supported.
53e738c6 4989 bypass = 1|0
f3db09e2 4990 If set to 1, the ICAP service is treated as optional. If the
4991 service cannot be reached or malfunctions, Squid will try to
4992 ignore any errors and process the message as if the service
4993 was not enabled. No all ICAP errors can be bypassed.
4994 If set to 0, the ICAP service is treated as essential and all
4995 ICAP errors will result in an error page returned to the
4996 HTTP client.
53e738c6 4997 service_url = icap://servername:port/service
5473c134 4998
5473c134 4999Example:
5000icap_service service_1 reqmod_precache 0 icap://icap1.mydomain.net:1344/reqmod
5001icap_service service_2 respmod_precache 0 icap://icap2.mydomain.net:1344/respmod
cccac0a2 5002DOC_END
5003
5473c134 5004NAME: icap_class
5005TYPE: icap_class_type
5006IFDEF: ICAP_CLIENT
5007LOC: TheICAPConfig
5008DEFAULT: none
cccac0a2 5009DOC_START
62c7f90e
AR
5010 This depricated option was documented to define an ICAP service
5011 chain, even though it actually defined a set of similar, redundant
5012 services, and the chains were not supported.
5473c134 5013
62c7f90e
AR
5014 To define a set of redundant services, please use the
5015 adaptation_service_set directive.
5473c134 5016
62c7f90e
AR
5017 If you need adaptation service chains, patches or sponsorship
5018 is welcome.
cccac0a2 5019DOC_END
5020
5473c134 5021NAME: icap_access
5022TYPE: icap_access_type
5023IFDEF: ICAP_CLIENT
5024LOC: TheICAPConfig
cccac0a2 5025DEFAULT: none
cccac0a2 5026DOC_START
62c7f90e
AR
5027 This option is depricated. Please use adaptation_access, which
5028 has the same ICAP functionality, but comes with better
5029 documentation, and eCAP support.
cccac0a2 5030DOC_END
5031
57afc994
AR
5032COMMENT_START
5033 eCAP OPTIONS
5034 -----------------------------------------------------------------------------
5035COMMENT_END
5036
5037NAME: loadable_modules
5038TYPE: wordlist
5039IFDEF: USE_LOADABLE_MODULES
5040LOC: Config.loadable_module_names
5041DEFAULT: none
5042DOC_START
5043 Instructs Squid to load the specified dynamic module(s) or activate
5044 preloaded module(s).
5045Example:
5046loadable_modules @DEFAULT_PREFIX@/lib/MinimalAdapter.so
5047DOC_END
5048
62c7f90e
AR
5049COMMENT_START
5050 MESSAGE ADAPTATION OPTIONS
5051 -----------------------------------------------------------------------------
5052COMMENT_END
5053
5054NAME: adaptation_service_set
5055TYPE: adaptation_service_set_type
5056IFDEF: USE_ADAPTATION
5057LOC: none
5058DEFAULT: none
5059DOC_START
5060
5061 Defines a named adaptation service set. The set is populated in
5062 the order of adaptation_service_set directives in this file.
5063 When adaptation ACLs are processed, the first and only the first
5064 applicable adaptation service from the set will be used. Thus,
5065 the set should group similar, redundant services, rather than a
5066 chain of complementary services.
5067
5068 If you have a single adaptation service, you do not need to
5069 define a set containing it because adaptation_access accepts
5070 service names.
5071
5072 See also: adaptation_access
5073
5074Example:
5075adaptation_service_set svcBlocker urlFilterPrimary urlFilterBackup
5076adaptation service_set svcLogger loggerLocal loggerRemote
5077DOC_END
5078
5079NAME: adaptation_access
5080TYPE: adaptation_access_type
5081IFDEF: USE_ADAPTATION
5082LOC: none
5083DEFAULT: none
5084DOC_START
5085 Sends an HTTP transaction to an ICAP or eCAP adaptation service.
5086
5087 adaptation_access service_name allow|deny [!]aclname...
5088 adaptation_access set_name allow|deny [!]aclname...
5089
5090 At each supported vectoring point, the adaptation_access
5091 statements are processed in the order they appear in this
5092 configuration file. Statements pointing to the following services
5093 are ignored (i.e., skipped without checking their ACL):
5094
5095 - services serving different vectoring points
5096 - "broken-but-bypassable" services
5097 - "up" services configured to ignore such transactions
5098 (e.g., based on the ICAP Transfer-Ignore header).
5099
5100 When a set_name is used, all services in the set are checked
5101 using the same rules, to find the first applicable one. See
5102 adaptation_service_set for details.
5103
5104 If an access list is checked and there is a match, the
5105 processing stops: For an "allow" rule, the corresponding
5106 adaptation service is used for the transaction. For a "deny"
5107 rule, no adaptation service is activated.
5108
5109 It is currently not possible to apply more than one adaptation
5110 service at the same vectoring point to the same HTTP transaction.
5111
5112 See also: icap_service and ecap_service
5113
5114Example:
5115adaptation_access service_1 allow all
5116DOC_END
5117
5473c134 5118COMMENT_START
5119 DNS OPTIONS
5120 -----------------------------------------------------------------------------
5121COMMENT_END
5122
5123NAME: check_hostnames
cccac0a2 5124TYPE: onoff
cccac0a2 5125DEFAULT: off
5473c134 5126LOC: Config.onoff.check_hostnames
cccac0a2 5127DOC_START
5473c134 5128 For security and stability reasons Squid can check
5129 hostnames for Internet standard RFC compliance. If you want
5130 Squid to perform these checks turn this directive on.
cccac0a2 5131DOC_END
5132
5473c134 5133NAME: allow_underscore
cccac0a2 5134TYPE: onoff
cccac0a2 5135DEFAULT: on
5473c134 5136LOC: Config.onoff.allow_underscore
cccac0a2 5137DOC_START
5473c134 5138 Underscore characters is not strictly allowed in Internet hostnames
5139 but nevertheless used by many sites. Set this to off if you want
5140 Squid to be strict about the standard.
5141 This check is performed only when check_hostnames is set to on.
cccac0a2 5142DOC_END
5143
5473c134 5144NAME: cache_dns_program
cccac0a2 5145TYPE: string
5473c134 5146IFDEF: USE_DNSSERVERS
5147DEFAULT: @DEFAULT_DNSSERVER@
5148LOC: Config.Program.dnsserver
cccac0a2 5149DOC_START
5473c134 5150 Specify the location of the executable for dnslookup process.
cccac0a2 5151DOC_END
5152
5473c134 5153NAME: dns_children
5154TYPE: int
5155IFDEF: USE_DNSSERVERS
5156DEFAULT: 5
5157LOC: Config.dnsChildren
58850d15 5158DOC_START
5473c134 5159 The number of processes spawn to service DNS name lookups.
5160 For heavily loaded caches on large servers, you should
5161 probably increase this value to at least 10. The maximum
5162 is 32. The default is 5.
58850d15 5163
5473c134 5164 You must have at least one dnsserver process.
58850d15 5165DOC_END
5166
5473c134 5167NAME: dns_retransmit_interval
5168TYPE: time_t
5169DEFAULT: 5 seconds
5170LOC: Config.Timeout.idns_retransmit
5171IFDEF: !USE_DNSSERVERS
cccac0a2 5172DOC_START
5473c134 5173 Initial retransmit interval for DNS queries. The interval is
5174 doubled each time all configured DNS servers have been tried.
cccac0a2 5175
cccac0a2 5176DOC_END
5177
5473c134 5178NAME: dns_timeout
5179TYPE: time_t
5180DEFAULT: 2 minutes
5181LOC: Config.Timeout.idns_query
5182IFDEF: !USE_DNSSERVERS
cccac0a2 5183DOC_START
5473c134 5184 DNS Query timeout. If no response is received to a DNS query
5185 within this time all DNS servers for the queried domain
5186 are assumed to be unavailable.
cccac0a2 5187DOC_END
5188
5473c134 5189NAME: dns_defnames
5190COMMENT: on|off
cccac0a2 5191TYPE: onoff
cccac0a2 5192DEFAULT: off
5473c134 5193LOC: Config.onoff.res_defnames
cccac0a2 5194DOC_START
5473c134 5195 Normally the RES_DEFNAMES resolver option is disabled
5196 (see res_init(3)). This prevents caches in a hierarchy
5197 from interpreting single-component hostnames locally. To allow
5198 Squid to handle single-component names, enable this option.
cccac0a2 5199DOC_END
5200
5473c134 5201NAME: dns_nameservers
5202TYPE: wordlist
5203DEFAULT: none
5204LOC: Config.dns_nameservers
cccac0a2 5205DOC_START
5473c134 5206 Use this if you want to specify a list of DNS name servers
5207 (IP addresses) to use instead of those given in your
5208 /etc/resolv.conf file.
5209 On Windows platforms, if no value is specified here or in
5210 the /etc/resolv.conf file, the list of DNS name servers are
5211 taken from the Windows registry, both static and dynamic DHCP
5212 configurations are supported.
cccac0a2 5213
5473c134 5214 Example: dns_nameservers 10.0.0.1 192.172.0.4
cccac0a2 5215DOC_END
5216
5473c134 5217NAME: hosts_file
cccac0a2 5218TYPE: string
5473c134 5219DEFAULT: @DEFAULT_HOSTS@
5220LOC: Config.etcHostsPath
cccac0a2 5221DOC_START
5473c134 5222 Location of the host-local IP name-address associations
5223 database. Most Operating Systems have such a file on different
5224 default locations:
5225 - Un*X & Linux: /etc/hosts
5226 - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts
5227 (%SystemRoot% value install default is c:\winnt)
5228 - Windows XP/2003: %SystemRoot%\system32\drivers\etc\hosts
5229 (%SystemRoot% value install default is c:\windows)
5230 - Windows 9x/Me: %windir%\hosts
5231 (%windir% value is usually c:\windows)
5232 - Cygwin: /etc/hosts
cccac0a2 5233
5473c134 5234 The file contains newline-separated definitions, in the
5235 form ip_address_in_dotted_form name [name ...] names are
5236 whitespace-separated. Lines beginning with an hash (#)
5237 character are comments.
cccac0a2 5238
5473c134 5239 The file is checked at startup and upon configuration.
5240 If set to 'none', it won't be checked.
5241 If append_domain is used, that domain will be added to
5242 domain-local (i.e. not containing any dot character) host
5243 definitions.
cccac0a2 5244DOC_END
5245
5473c134 5246NAME: dns_testnames
5247TYPE: wordlist
5248LOC: Config.dns_testname_list
5249DEFAULT: none
5250DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com
5251DOC_START
5252 The DNS tests exit as soon as the first site is successfully looked up
5253
5254 This test can be disabled with the -D command line option.
cccac0a2 5255DOC_END
5256
5473c134 5257NAME: append_domain
5258TYPE: string
5259LOC: Config.appendDomain
5260DEFAULT: none
6a2f3fcf 5261DOC_START
5473c134 5262 Appends local domain name to hostnames without any dots in
5263 them. append_domain must begin with a period.
5264
5265 Be warned there are now Internet names with no dots in
5266 them using only top-domain names, so setting this may
5267 cause some Internet sites to become unavailable.
5268
5269Example:
5270 append_domain .yourdomain.com
6a2f3fcf 5271DOC_END
5272
5473c134 5273NAME: ignore_unknown_nameservers
5274TYPE: onoff
5275LOC: Config.onoff.ignore_unknown_nameservers
df6fd596 5276DEFAULT: on
5277DOC_START
5473c134 5278 By default Squid checks that DNS responses are received
5279 from the same IP addresses they are sent to. If they
5280 don't match, Squid ignores the response and writes a warning
5281 message to cache.log. You can allow responses from unknown
5282 nameservers by setting this option to 'off'.
df6fd596 5283DOC_END
5284
cc192b50 5285NAME: dns_v4_fallback
5286TYPE: onoff
5287DEFAULT: on
5288LOC: Config.onoff.dns_require_A
5289DOC_START
5290 Standard practice with DNS is to lookup either A or AAAA records
5291 and use the results if it succeeds. Only looking up the other if
5292 the first attempt fails or otherwise produces no results.
5293
5294 That policy however will cause squid to produce error pages for some
5295 servers that advertise AAAA but are unreachable over IPv6.
5296
5297 If this is ON squid will always lookup both AAAA and A, using both.
5298 If this is OFF squid will lookup AAAA and only try A if none found.
5299
5300 WARNING: There are some possibly unwanted side-effects with this on:
5301 *) Doubles the load placed by squid on the DNS network.
5302 *) May negatively impact connection delay times.
5303DOC_END
5304
6bc15a4f 5305NAME: ipcache_size
5306COMMENT: (number of entries)
5307TYPE: int
5308DEFAULT: 1024
5309LOC: Config.ipcache.size
5310DOC_NONE
5311
5312NAME: ipcache_low
5313COMMENT: (percent)
5314TYPE: int
5315DEFAULT: 90
5316LOC: Config.ipcache.low
5317DOC_NONE
5318
5319NAME: ipcache_high
5320COMMENT: (percent)
5321TYPE: int
5322DEFAULT: 95
5323LOC: Config.ipcache.high
5324DOC_START
5325 The size, low-, and high-water marks for the IP cache.
5326DOC_END
5327
5328NAME: fqdncache_size
5329COMMENT: (number of entries)
5330TYPE: int
5331DEFAULT: 1024
5332LOC: Config.fqdncache.size
5333DOC_START
5334 Maximum number of FQDN cache entries.
5335DOC_END
5336
a58ff010 5337COMMENT_START
5473c134 5338 MISCELLANEOUS
a58ff010 5339 -----------------------------------------------------------------------------
5340COMMENT_END
5341
5473c134 5342NAME: memory_pools
a58ff010 5343COMMENT: on|off
5473c134 5344TYPE: onoff
5345DEFAULT: on
5346LOC: Config.onoff.mem_pools
a58ff010 5347DOC_START
5473c134 5348 If set, Squid will keep pools of allocated (but unused) memory
5349 available for future use. If memory is a premium on your
5350 system and you believe your malloc library outperforms Squid
5351 routines, disable this.
a58ff010 5352DOC_END
5353
5473c134 5354NAME: memory_pools_limit
5355COMMENT: (bytes)
5356TYPE: b_size_t
5357DEFAULT: 5 MB
5358LOC: Config.MemPools.limit
ec1245f8 5359DOC_START
5473c134 5360 Used only with memory_pools on:
5361 memory_pools_limit 50 MB
ec1245f8 5362
5473c134 5363 If set to a non-zero value, Squid will keep at most the specified
5364 limit of allocated (but unused) memory in memory pools. All free()
5365 requests that exceed this limit will be handled by your malloc
5366 library. Squid does not pre-allocate any memory, just safe-keeps
5367 objects that otherwise would be free()d. Thus, it is safe to set
5368 memory_pools_limit to a reasonably high value even if your
5369 configuration will use less memory.
ec1245f8 5370
5473c134 5371 If set to zero, Squid will keep all memory it can. That is, there
5372 will be no limit on the total amount of memory used for safe-keeping.
ec1245f8 5373
5473c134 5374 To disable memory allocation optimization, do not set
5375 memory_pools_limit to 0. Set memory_pools to "off" instead.
5376
5377 An overhead for maintaining memory pools is not taken into account
5378 when the limit is checked. This overhead is close to four bytes per
5379 object kept. However, pools may actually _save_ memory because of
5380 reduced memory thrashing in your malloc library.
ec1245f8 5381DOC_END
5382
5473c134 5383NAME: forwarded_for
5384COMMENT: on|off
5385TYPE: onoff
5386DEFAULT: on
5387LOC: opt_forwarded_for
5f8252d2 5388DOC_START
5473c134 5389 If set, Squid will include your system's IP address or name
5390 in the HTTP requests it forwards. By default it looks like
5391 this:
5f8252d2 5392
5473c134 5393 X-Forwarded-For: 192.1.2.3
5394
5395 If you disable this, it will appear as
5396
5397 X-Forwarded-For: unknown
5f8252d2 5398DOC_END
5399
5473c134 5400NAME: cachemgr_passwd
5401TYPE: cachemgrpasswd
5402DEFAULT: none
5403LOC: Config.passwd_list
5f8252d2 5404DOC_START
5473c134 5405 Specify passwords for cachemgr operations.
5f8252d2 5406
5473c134 5407 Usage: cachemgr_passwd password action action ...
5408
5409 Some valid actions are (see cache manager menu for a full list):
5410 5min
5411 60min
5412 asndb
5413 authenticator
5414 cbdata
5415 client_list
5416 comm_incoming
5417 config *
5418 counters
5419 delay
5420 digest_stats
5421 dns
5422 events
5423 filedescriptors
5424 fqdncache
5425 histograms
5426 http_headers
5427 info
5428 io
5429 ipcache
5430 mem
5431 menu
5432 netdb
5433 non_peers
5434 objects
5435 offline_toggle *
5436 pconn
5437 peer_select
5438 redirector
5439 refresh
5440 server_list
5441 shutdown *
5442 store_digest
5443 storedir
5444 utilization
5445 via_headers
5446 vm_objects
5447
5448 * Indicates actions which will not be performed without a
5449 valid password, others can be performed if not listed here.
5450
5451 To disable an action, set the password to "disable".
5452 To allow performing an action without a password, set the
5453 password to "none".
5454
5455 Use the keyword "all" to set the same password for all actions.
5456
5457Example:
5458 cachemgr_passwd secret shutdown
5459 cachemgr_passwd lesssssssecret info stats/objects
5460 cachemgr_passwd disable all
5f8252d2 5461DOC_END
5462
5473c134 5463NAME: client_db
a58ff010 5464COMMENT: on|off
5473c134 5465TYPE: onoff
5466DEFAULT: on
5467LOC: Config.onoff.client_db
a58ff010 5468DOC_START
5473c134 5469 If you want to disable collecting per-client statistics,
5470 turn off client_db here.
a58ff010 5471DOC_END
5472
5473c134 5473NAME: refresh_all_ims
5474COMMENT: on|off
5475TYPE: onoff
5476DEFAULT: off
5477LOC: Config.onoff.refresh_all_ims
a58ff010 5478DOC_START
5473c134 5479 When you enable this option, squid will always check
5480 the origin server for an update when a client sends an
5481 If-Modified-Since request. Many browsers use IMS
5482 requests when the user requests a reload, and this
5483 ensures those clients receive the latest version.
a58ff010 5484
5473c134 5485 By default (off), squid may return a Not Modified response
5486 based on the age of the cached version.
78e8cfc4 5487DOC_END
5488
5473c134 5489NAME: reload_into_ims
5490IFDEF: HTTP_VIOLATIONS
12b91c99 5491COMMENT: on|off
5473c134 5492TYPE: onoff
5493DEFAULT: off
5494LOC: Config.onoff.reload_into_ims
12b91c99 5495DOC_START
5473c134 5496 When you enable this option, client no-cache or ``reload''
5497 requests will be changed to If-Modified-Since requests.
5498 Doing this VIOLATES the HTTP standard. Enabling this
5499 feature could make you liable for problems which it
5500 causes.
5501
5502 see also refresh_pattern for a more selective approach.
12b91c99 5503DOC_END
5504
5473c134 5505NAME: maximum_single_addr_tries
5506TYPE: int
5507LOC: Config.retry.maxtries
5508DEFAULT: 1
a58ff010 5509DOC_START
5473c134 5510 This sets the maximum number of connection attempts for a
5511 host that only has one address (for multiple-address hosts,
5512 each address is tried once).
5513
5514 The default value is one attempt, the (not recommended)
5515 maximum is 255 tries. A warning message will be generated
5516 if it is set to a value greater than ten.
5517
5518 Note: This is in addition to the request re-forwarding which
5519 takes place if Squid fails to get a satisfying response.
a58ff010 5520DOC_END
5521
5473c134 5522NAME: retry_on_error
a58ff010 5523TYPE: onoff
5473c134 5524LOC: Config.retry.onerror
a58ff010 5525DEFAULT: off
5526DOC_START
5473c134 5527 If set to on Squid will automatically retry requests when
5528 receiving an error response. This is mainly useful if you
5529 are in a complex cache hierarchy to work around access
5530 control errors.
5f8252d2 5531DOC_END
5532
5473c134 5533NAME: as_whois_server
5f8252d2 5534TYPE: string
5473c134 5535LOC: Config.as_whois_server
5536DEFAULT: whois.ra.net
5537DEFAULT_IF_NONE: whois.ra.net
5f8252d2 5538DOC_START
5473c134 5539 WHOIS server to query for AS numbers. NOTE: AS numbers are
5540 queried only when Squid starts up, not for every request.
5f8252d2 5541DOC_END
5542
5473c134 5543NAME: offline_mode
5f8252d2 5544TYPE: onoff
5473c134 5545LOC: Config.onoff.offline
5f8252d2 5546DEFAULT: off
5547DOC_START
5473c134 5548 Enable this option and Squid will never try to validate cached
5549 objects.
a58ff010 5550DOC_END
5551
5473c134 5552NAME: uri_whitespace
5553TYPE: uri_whitespace
5554LOC: Config.uri_whitespace
5555DEFAULT: strip
a58ff010 5556DOC_START
5473c134 5557 What to do with requests that have whitespace characters in the
5558 URI. Options:
a58ff010 5559
5473c134 5560 strip: The whitespace characters are stripped out of the URL.
5561 This is the behavior recommended by RFC2396.
5562 deny: The request is denied. The user receives an "Invalid
5563 Request" message.
5564 allow: The request is allowed and the URI is not changed. The
5565 whitespace characters remain in the URI. Note the
5566 whitespace is passed to redirector processes if they
5567 are in use.
5568 encode: The request is allowed and the whitespace characters are
5569 encoded according to RFC1738. This could be considered
5570 a violation of the HTTP/1.1
5571 RFC because proxies are not allowed to rewrite URI's.
5572 chop: The request is allowed and the URI is chopped at the
5573 first whitespace. This might also be considered a
5574 violation.
5575DOC_END
a58ff010 5576
5473c134 5577NAME: coredump_dir
5578TYPE: string
5579LOC: Config.coredump_dir
5580DEFAULT: none
5581DEFAULT_IF_NONE: none
5582DOC_START
5583 By default Squid leaves core files in the directory from where
5584 it was started. If you set 'coredump_dir' to a directory
5585 that exists, Squid will chdir() to that directory at startup
5586 and coredump files will be left there.
a58ff010 5587
5473c134 5588NOCOMMENT_START
5589# Leave coredumps in the first cache dir
5590coredump_dir @DEFAULT_SWAP_DIR@
5591NOCOMMENT_END
5592DOC_END
a58ff010 5593
5473c134 5594NAME: chroot
5595TYPE: string
5596LOC: Config.chroot_dir
a58ff010 5597DEFAULT: none
5598DOC_START
5473c134 5599 Use this to have Squid do a chroot() while initializing. This
5600 also causes Squid to fully drop root privileges after
5601 initializing. This means, for example, if you use a HTTP
5602 port less than 1024 and try to reconfigure, you will may get an
5603 error saying that Squid can not open the port.
5604DOC_END
a58ff010 5605
5473c134 5606NAME: balance_on_multiple_ip
5607TYPE: onoff
5608LOC: Config.onoff.balance_on_multiple_ip
cc192b50 5609DEFAULT: off
5473c134 5610DOC_START
cc192b50 5611 Modern IP resolvers in squid sort lookup results by preferred access.
5612 By default squid will use these IP in order and only rotates to
5613 the next listed when the most preffered fails.
5614
5473c134 5615 Some load balancing servers based on round robin DNS have been
5616 found not to preserve user session state across requests
5617 to different IP addresses.
a58ff010 5618
cc192b50 5619 Enabling this directive Squid rotates IP's per request.
a58ff010 5620DOC_END
5621
5473c134 5622NAME: pipeline_prefetch
5623TYPE: onoff
5624LOC: Config.onoff.pipeline_prefetch
5625DEFAULT: off
a58ff010 5626DOC_START
5473c134 5627 To boost the performance of pipelined requests to closer
5628 match that of a non-proxied environment Squid can try to fetch
5629 up to two requests in parallel from a pipeline.
a58ff010 5630
5473c134 5631 Defaults to off for bandwidth management and access logging
5632 reasons.
5633DOC_END
a58ff010 5634
5473c134 5635NAME: high_response_time_warning
5636TYPE: int
5637COMMENT: (msec)
5638LOC: Config.warnings.high_rptm
5639DEFAULT: 0
5640DOC_START
5641 If the one-minute median response time exceeds this value,
5642 Squid prints a WARNING with debug level 0 to get the
5643 administrators attention. The value is in milliseconds.
a58ff010 5644DOC_END
5645
5473c134 5646NAME: high_page_fault_warning
5647TYPE: int
5648LOC: Config.warnings.high_pf
5649DEFAULT: 0
cc9f92d4 5650DOC_START
5473c134 5651 If the one-minute average page fault rate exceeds this
5652 value, Squid prints a WARNING with debug level 0 to get
5653 the administrators attention. The value is in page faults
5654 per second.
5655DOC_END
cc9f92d4 5656
5473c134 5657NAME: high_memory_warning
5658TYPE: b_size_t
5659LOC: Config.warnings.high_memory
904971da 5660DEFAULT: 0 KB
5473c134 5661DOC_START
5662 If the memory usage (as determined by mallinfo) exceeds
904971da 5663 this amount, Squid prints a WARNING with debug level 0 to get
5473c134 5664 the administrators attention.
5665DOC_END
cc9f92d4 5666
5473c134 5667NAME: sleep_after_fork
5668COMMENT: (microseconds)
5669TYPE: int
5670LOC: Config.sleep_after_fork
5671DEFAULT: 0
5672DOC_START
5673 When this is set to a non-zero value, the main Squid process
5674 sleeps the specified number of microseconds after a fork()
5675 system call. This sleep may help the situation where your
5676 system reports fork() failures due to lack of (virtual)
5677 memory. Note, however, if you have a lot of child
5678 processes, these sleep delays will add up and your
5679 Squid will not service requests for some amount of time
5680 until all the child processes have been started.
5681 On Windows value less then 1000 (1 milliseconds) are
5682 rounded to 1000.
cc9f92d4 5683DOC_END
5684
cccac0a2 5685EOF