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