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