]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
Changed my mint how to regain root privs when rereading the configuration.
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
3a278cb8 1
9cef6668 2#
d205783b 3# $Id: cf.data.pre,v 1.247 2002/01/13 01:08:43 robertc Exp $
9cef6668 4#
5#
2b6662ba 6# SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 7# ----------------------------------------------------------
8#
2b6662ba 9# Squid is the result of efforts by numerous individuals from
10# the Internet community; see the CONTRIBUTORS file for full
11# details. Many organizations have provided support for Squid's
12# development; see the SPONSORS file for full details. Squid is
13# Copyrighted (C) 2000 by the Regents of the University of
14# California; see the COPYRIGHT file for full details. Squid
15# incorporates software developed and/or copyrighted by other
16# sources; see the CREDITS file for full details.
9cef6668 17#
18# This program is free software; you can redistribute it and/or modify
19# it under the terms of the GNU General Public License as published by
20# the Free Software Foundation; either version 2 of the License, or
21# (at your option) any later version.
96d88dcb 22#
9cef6668 23# This program is distributed in the hope that it will be useful,
24# but WITHOUT ANY WARRANTY; without even the implied warranty of
25# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26# GNU General Public License for more details.
96d88dcb 27#
9cef6668 28# You should have received a copy of the GNU General Public License
29# along with this program; if not, write to the Free Software
30# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
31#
32
0f74202c 33COMMENT_START
448cd7c7 34 WELCOME TO SQUID 2
35 ------------------
3a278cb8 36
cf5cc17e 37 This is the default Squid configuration file. You may wish
2b6662ba 38 to look at the Squid home page (http://www.squid-cache.org/)
6b8e7481 39 for the FAQ and other documentation.
3a278cb8 40
debd9a31 41 The default Squid config file shows what the defaults for
42 various options happen to be. If you don't need to change the
43 default, you shouldn't uncomment the line. Doing so may cause
44 run-time problems. In some cases "none" refers to no default
efd900cb 45 setting at all, while in other cases it refers to a valid
debd9a31 46 option - the comments for that keyword indicate if this is the
47 case.
48
0f74202c 49COMMENT_END
3a278cb8 50
0f74202c 51COMMENT_START
3a278cb8 52 NETWORK OPTIONS
53 -----------------------------------------------------------------------------
0f74202c 54COMMENT_END
3a278cb8 55
934b03fc 56NAME: http_port ascii_port
7e3ce7b9 57TYPE: sockaddr_in_list
f53b06f9 58DEFAULT: none
59DEFAULT_IF_NONE: 3128
7e3ce7b9 60LOC: Config.Sockaddr.http
934b03fc 61DOC_START
7e3ce7b9 62 Usage: port
63 hostname:port
64 1.2.3.4:port
934b03fc 65
7e3ce7b9 66 The socket addresses where Squid will listen for HTTP client
67 requests. You may specify multiple socket addresses.
68 There are three forms: port alone, hostname with port, and
69 IP address with port. If you specify a hostname or IP
70 address, then Squid binds the socket to that specific
71 address. This replaces the old 'tcp_incoming_address'
72 option. Most likely, you do not need to bind to a specific
73 address, so you can use the port number alone.
74
75 The default port number is 3128.
76
efd900cb 77 If you are running Squid in accelerator mode, then you
7e3ce7b9 78 probably want to listen on port 80 also, or instead.
79
80 The -a command line option will override the *first* port
81 number listed here. That option will NOT override an IP
82 address, however.
934b03fc 83
efd900cb 84 You may specify multiple socket addresses on multiple lines.
934b03fc 85DOC_END
86
1f7c9178 87NAME: https_port
88IFDEF: USE_SSL
d193a436 89TYPE: https_port_list
1f7c9178 90DEFAULT: none
91LOC: Config.Sockaddr.https
92DOC_START
9690f3c5 93 Usage: [ip:]port cert=certificate.pem [key=key.pem] [options...]
1f7c9178 94
d193a436 95 The socket address where Squid will listen for HTTPS client
96 requests.
d6827718 97
1f7c9178 98 This is really only useful for situations where you are running
99 squid in accelerator mode and you want to do the SSL work at the
100 accelerator level.
1f7c9178 101
d193a436 102 You may specify multiple socket addresses on multiple lines,
9690f3c5 103 each with their own SSL certificate and/or options.
820feeed 104
105 Options:
106
107 cert= Path to SSL certificate (PEM format)
108
109 key= Path to SSL private key file (PEM format)
110 if not specified, the certificate file is
111 assumed to be a combined certificate and
112 key file
113
114 version= The version of SSL/TLS supported
115 1 automatic (default)
116 2 SSLv2 only
117 3 SSLv3 only
118 4 TLSv1 only
119
120 cipher= Colon separated list of supported ciphers
121
122 options= Varions SSL engine options. The most important
123 being:
124 NO_SSLv2 Disallow the use of SSLv2
125 NO_SSLv3 Disallow the use of SSLv3
126 NO_TLSv1 Disallow the use of TLSv1
127 See src/ssl_support.c or OpenSSL documentation
128 for a more complete list.
1f7c9178 129DOC_END
130
79d4ccdf 131NAME: ssl_unclean_shutdown
e1d9c13c 132IFDEF: USE_SSL
79d4ccdf 133TYPE: onoff
134DEFAULT: off
135LOC: Config.SSL.unclean_shutdown
1f7c9178 136DOC_START
79d4ccdf 137 Some browsers (especially MSIE) bugs out on SSL shutdown
138 messages.
1f7c9178 139DOC_END
140
934b03fc 141NAME: icp_port udp_port
142TYPE: ushort
143DEFAULT: 3130
144LOC: Config.Port.icp
145DOC_START
78a0e865 146 The port number where Squid sends and receives ICP queries to
934b03fc 147 and from neighbor caches. Default is 3130. To disable use
148 "0". May be overridden with -u on the command line.
934b03fc 149DOC_END
150
459f1836 151NAME: htcp_port
152IFDEF: USE_HTCP
153TYPE: ushort
154DEFAULT: 4827
155LOC: Config.Port.htcp
156DOC_START
78a0e865 157 The port number where Squid sends and receives HTCP queries to
459f1836 158 and from neighbor caches. Default is 4827. To disable use
159 "0".
459f1836 160DOC_END
161
934b03fc 162
163NAME: mcast_groups
164TYPE: wordlist
165LOC: Config.mcast_group_list
1273d501 166DEFAULT: none
934b03fc 167DOC_START
cf5cc17e 168 This tag specifies a list of multicast groups which your server
78a0e865 169 should join to receive multicasted ICP queries.
934b03fc 170
171 NOTE! Be very careful what you put here! Be sure you
172 understand the difference between an ICP _query_ and an ICP
173 _reply_. This option is to be set only if you want to RECEIVE
174 multicast queries. Do NOT set this option to SEND multicast
a95856a0 175 ICP (use cache_peer for that). ICP replies are always sent via
934b03fc 176 unicast, so this option does not affect whether or not you will
177 receive replies from multicast group members.
178
179 You must be very careful to NOT use a multicast address which
efd900cb 180 is already in use by another group of caches.
934b03fc 181
cf5cc17e 182 If you are unsure about multicast, please read the Multicast
2b6662ba 183 chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/).
cf5cc17e 184
934b03fc 185 Usage: mcast_groups 239.128.16.128 224.0.1.20
186
cf5cc17e 187 By default, Squid doesn't listen on any multicast groups.
934b03fc 188DOC_END
189
190
934b03fc 191NAME: udp_incoming_address
192TYPE: address
193LOC:Config.Addrs.udp_incoming
270b86af 194DEFAULT: 0.0.0.0
934b03fc 195DOC_NONE
196
197NAME: udp_outgoing_address
198TYPE: address
199LOC: Config.Addrs.udp_outgoing
270b86af 200DEFAULT: 255.255.255.255
934b03fc 201DOC_START
202 Usage: tcp_incoming_address 10.20.30.40
203 udp_outgoing_address fully.qualified.domain.name
204
934b03fc 205 udp_incoming_address is used for the ICP socket receiving packets
206 from other caches.
207 udp_outgoing_address is used for ICP packets sent out to other
208 caches.
209
efd900cb 210 The default behavior is to not bind to any specific address.
934b03fc 211
6b53c392 212 A *_incoming_address value of 0.0.0.0 indicates that Squid should
213 listen on all available interfaces.
214
215 If udp_outgoing_address is set to 255.255.255.255 (the default)
216 then it will use the same socket as udp_incoming_address. Only
217 change this if you want to have ICP queries sent using another
218 address than where this Squid listens for ICP queries from other
219 caches.
220
5a3f6538 221 NOTE, udp_incoming_address and udp_outgoing_address can not
6b53c392 222 have the same value since they both use port 3130.
934b03fc 223
7e3ce7b9 224 NOTE, tcp_incoming_address has been removed. You can now
225 specify IP addresses on the 'http_port' line.
934b03fc 226DOC_END
227
0f74202c 228COMMENT_START
3a278cb8 229 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
230 -----------------------------------------------------------------------------
0f74202c 231COMMENT_END
934b03fc 232
40a1495e 233NAME: cache_peer
234TYPE: peer
1273d501 235DEFAULT: none
0153d498 236LOC: Config.peers
934b03fc 237DOC_START
238 To specify other caches in a hierarchy, use the format:
239
6b53c392 240 cache_peer hostname type http_port icp_port
934b03fc 241
d0d41f07 242 For example,
934b03fc 243
244 # proxy icp
245 # hostname type port port options
246 # -------------------- -------- ----- ----- -----------
cf5cc17e 247 cache_peer parent.foo.net parent 3128 3130 [proxy-only]
248 cache_peer sib1.foo.net sibling 3128 3130 [proxy-only]
249 cache_peer sib2.foo.net sibling 3128 3130 [proxy-only]
934b03fc 250
251 type: either 'parent', 'sibling', or 'multicast'.
252
253 proxy_port: The port number where the cache listens for proxy
254 requests.
255
256 icp_port: Used for querying neighbor caches about
257 objects. To have a non-ICP neighbor
258 specify '7' for the ICP port and make sure the
259 neighbor machine has the UDP echo port
260 enabled in its /etc/inetd.conf file.
261
262 options: proxy-only
263 weight=n
264 ttl=n
265 no-query
266 default
267 round-robin
268 multicast-responder
b3264694 269 closest-only
46b034a4 270 no-digest
223213df 271 no-netdb-exchange
95e36d02 272 no-delay
c3b33cb7 273 login=user:password | PASS | *:password
3f62decd 274 connect-timeout=nn
7e3ce7b9 275 digest-url=url
987de783 276 allow-miss
e79a6f05 277 max-conn
934b03fc 278
279 use 'proxy-only' to specify that objects fetched
280 from this cache should not be saved locally.
281
282 use 'weight=n' to specify a weighted parent.
283 The weight must be an integer. The default weight
284 is 1, larger weights are favored more.
285
286 use 'ttl=n' to specify a IP multicast TTL to use
78a0e865 287 when sending an ICP queries to this address.
934b03fc 288 Only useful when sending to a multicast group.
289 Because we don't accept ICP replies from random
290 hosts, you must configure other group members as
291 peers with the 'multicast-responder' option below.
292
293 use 'no-query' to NOT send ICP queries to this
294 neighbor.
295
296 use 'default' if this is a parent cache which can
297 be used as a "last-resort." You should probably
298 only use 'default' in situations where you cannot
299 use ICP with your parent cache(s).
300
301 use 'round-robin' to define a set of parents which
302 should be used in a round-robin fashion in the
303 absence of any ICP queries.
304
305 'multicast-responder' indicates that the named peer
306 is a member of a multicast group. ICP queries will
307 not be sent directly to the peer, but ICP replies
308 will be accepted from it.
309
b3264694 310 'closest-only' indicates that, for ICP_OP_MISS
311 replies, we'll only forward CLOSEST_PARENT_MISSes
312 and never FIRST_PARENT_MISSes.
313
46b034a4 314 use 'no-digest' to NOT request cache digests from
315 this neighbor.
316
223213df 317 'no-netdb-exchange' disables requesting ICMP
318 RTT database (NetDB) from the neighbor.
319
95e36d02 320 use 'no-delay' to prevent access to this neighbor
321 from influencing the delay pools.
322
c68e9c6b 323 use 'login=user:password' if this is a personal/workgroup
324 proxy and your parent requires proxy authentication.
4472c779 325 Note: The string can include URL escapes (i.e. %20 for
326 spaces). This also means that % must be written as %%.
c68e9c6b 327
94439e4e 328 use 'login=PASS' if users must authenticate against
ac3e1323 329 the upstream proxy. This will pass the users credentials
330 as they are to the peer proxy. This only works for the
331 Basic HTTP authentication sheme. Note: To combine this
332 with proxy_auth both proxies must share the same user
94439e4e 333 database as HTTP only allows for one proxy login.
334 Also be warned that this will expose your users proxy
ac3e1323 335 password to the peer. USE WITH CAUTION
94439e4e 336
c3b33cb7 337 use 'login=*:password' to pass the username to the
338 upstream cache, but with a fixed password. This is meant
339 to be used when the peer is in another administrative
340 domain, but it is still needed to identify each user.
341 The star can optionally be followed by some extra
342 information which is added to the username. This can
343 be used to identify this proxy to the peer, similar to
344 the login=username:password option above.
345
3f62decd 346 use 'connect-timeout=nn' to specify a peer
347 specific connect timeout (also see the
348 peer_connect_timeout directive)
349
7e3ce7b9 350 use 'digest-url=url' to tell Squid to fetch the cache
351 digest (if digests are enabled) for this host from
352 the specified URL rather than the Squid default
353 location.
3f62decd 354
987de783 355 use 'allow-miss' to disable Squid's use of only-if-cached
356 when forwarding requests to siblings. This is primarily
357 useful when icp_hit_stale is used by the sibling. To
358 extensive use of this option may result in forwarding
359 loops, and you should avoid having two-way peerings
360 with this option. (for example to deny peer usage on
361 requests from peer by denying cache_peer_access if the
362 source is a peer)
363
e79a6f05 364 use 'max-conn' to limit the amount of connections Squid
365 may open to this peer.
366
934b03fc 367 NOTE: non-ICP neighbors must be specified as 'parent'.
934b03fc 368DOC_END
369
af7d912e 370NAME: cache_peer_domain cache_host_domain
934b03fc 371TYPE: hostdomain
f1dc9b30 372DEFAULT: none
373LOC: none
934b03fc 374DOC_START
cf5cc17e 375 Use to limit the domains for which a neighbor cache will be
376 queried. Usage:
934b03fc 377
af7d912e 378 cache_peer_domain cache-host domain [domain ...]
379 cache_peer_domain cache-host !domain
934b03fc 380
381 For example, specifying
382
af7d912e 383 cache_peer_domain parent.foo.net .edu
934b03fc 384
385 has the effect such that UDP query packets are sent to
386 'bigserver' only when the requested object exists on a
387 server in the .edu domain. Prefixing the domainname
388 with '!' means that the cache will be queried for objects
389 NOT in that domain.
390
391 NOTE: * Any number of domains may be given for a cache-host,
392 either on the same or separate lines.
393 * When multiple domains are given for a particular
394 cache-host, the first matched domain is applied.
395 * Cache hosts with no domain restrictions are queried
396 for all requests.
397 * There are no defaults.
3794b2b6 398 * There is also a 'cache_peer_access' tag in the ACL
934b03fc 399 section.
400DOC_END
401
402
403NAME: neighbor_type_domain
404TYPE: hostdomaintype
f1dc9b30 405DEFAULT: none
406LOC: none
934b03fc 407DOC_START
408 usage: neighbor_type_domain parent|sibling domain domain ...
409
410 Modifying the neighbor type for specific domains is now
411 possible. You can treat some domains differently than the the
a95856a0 412 default neighbor type specified on the 'cache_peer' line.
934b03fc 413 Normally it should only be necessary to list domains which
414 should be treated differently because the default neighbor type
415 applies for hostnames which do not match domains listed here.
416
417EXAMPLE:
a95856a0 418 cache_peer parent cache.foo.org 3128 3130
934b03fc 419 neighbor_type_domain cache.foo.org sibling .com .net
420 neighbor_type_domain cache.foo.org sibling .au .de
421DOC_END
422
465dc415 423NAME: icp_query_timeout
424COMMENT: (msec)
425DEFAULT: 0
426TYPE: int
427LOC: Config.Timeout.icp_query
934b03fc 428DOC_START
465dc415 429 Normally Squid will automatically determine an optimal ICP
430 query timeout value based on the round-trip-time of recent ICP
431 queries. If you want to override the value determined by
432 Squid, set this 'icp_query_timeout' to a non-zero value. This
433 value is specified in MILLISECONDS, so, to use a 2-second
434 timeout (the old default), you would write:
934b03fc 435
465dc415 436 icp_query_timeout 2000
465dc415 437DOC_END
438
28993292 439NAME: maximum_icp_query_timeout
440COMMENT: (msec)
441DEFAULT: 2000
442TYPE: int
443LOC: Config.Timeout.icp_query_max
444DOC_START
efd900cb 445 Normally the ICP query timeout is determined dynamically. But
446 sometimes it can lead to very large values (say 5 seconds).
447 Use this option to put an upper limit on the dynamic timeout
448 value. Do NOT use this option to always use a fixed (instead
e0d5ba83 449 of a dynamic) timeout value. To set a fixed timeout see the
450 'icp_query_timeout' directive.
28993292 451DOC_END
452
465dc415 453NAME: mcast_icp_query_timeout
454COMMENT: (msec)
455DEFAULT: 2000
456TYPE: int
457LOC: Config.Timeout.mcast_icp_query
458DOC_START
459 For Multicast peers, Squid regularly sends out ICP "probes" to
460 count how many other peers are listening on the given multicast
461 address. This value specifies how long Squid should wait to
462 count all the replies. The default is 2000 msec, or 2
463 seconds.
934b03fc 464DOC_END
465
dc835977 466NAME: dead_peer_timeout
467COMMENT: (seconds)
468DEFAULT: 10 seconds
469TYPE: time_t
470LOC: Config.Timeout.deadPeer
471DOC_START
472 This controls how long Squid waits to declare a peer cache
473 as "dead." If there are no ICP replies received in this
474 amount of time, Squid will declare the peer dead and not
475 expect to receive any further ICP replies. However, it
476 continues to send ICP queries, and will mark the peer as
477 alive upon receipt of the first subsequent ICP reply.
478
a8ad9a81 479 This timeout also affects when Squid expects to receive ICP
480 replies from peers. If more than 'dead_peer' seconds have
481 passed since the last ICP reply was received, Squid will not
482 expect to receive an ICP reply on the next query. Thus, if
483 your time between requests is greater than this timeout, you
484 will see a lot of requests sent DIRECT to origin servers
485 instead of to your parents.
dc835977 486DOC_END
487
934b03fc 488
489NAME: hierarchy_stoplist
490TYPE: wordlist
f8d9f54a 491DEFAULT: none
934b03fc 492LOC: Config.hierarchy_stoplist
493DOC_START
494 A list of words which, if found in a URL, cause the object to
495 be handled directly by this cache. In other words, use this
496 to not query neighbor caches for certain objects. You may
497 list this option multiple times.
6b53c392 498NOCOMMENT_START
499#We recommend you to use at least the following line.
934b03fc 500hierarchy_stoplist cgi-bin ?
6b53c392 501NOCOMMENT_END
934b03fc 502DOC_END
503
504
bd05e3e3 505NAME: no_cache
506TYPE: acl_access
507DEFAULT: none
508LOC: Config.accessList.noCache
934b03fc 509DOC_START
d08a99eb 510 A list of ACL elements which, if matched, cause the request to
511 not be satisfied from the cache and the reply to not be cached.
512 In other words, use this to force certain objects to never be cached.
934b03fc 513
b269cf4e 514 You must use the word 'DENY' to indicate the ACL names which should
515 NOT be cached.
0fdafae7 516
6b53c392 517NOCOMMENT_START
518#We recommend you to use the following two lines.
bd05e3e3 519acl QUERY urlpath_regex cgi-bin \?
b269cf4e 520no_cache deny QUERY
6b53c392 521NOCOMMENT_END
934b03fc 522DOC_END
523
934b03fc 524
0f74202c 525COMMENT_START
3a278cb8 526 OPTIONS WHICH AFFECT THE CACHE SIZE
527 -----------------------------------------------------------------------------
0f74202c 528COMMENT_END
934b03fc 529
530NAME: cache_mem
9906e724 531COMMENT: (bytes)
1b635117 532TYPE: b_size_t
9906e724 533DEFAULT: 8 MB
43a70238 534LOC: Config.memMaxSize
934b03fc 535DOC_START
7b2496ca 536 NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS
537 SIZE. IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY
538 USAGE. SQUID USES MEMORY FOR OTHER THINGS AS WELL.
539 YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES
96d88dcb 540 BIGGER THAN THE VALUE YOU PUT HERE
7b2496ca 541
542 'cache_mem' specifies the ideal amount of memory to be used
543 for:
544 * In-Transit objects
545 * Hot Objects
546 * Negative-Cached objects
547
548 Data for these objects are stored in 4 KB blocks. This
549 parameter specifies the ideal upper limit on the total size of
550 4 KB blocks allocated. In-Transit objects take the highest
551 priority.
934b03fc 552
553 In-transit objects have priority over the others. When
554 additional space is needed for incoming data, negative-cached
555 and hot objects will be released. In other words, the
556 negative-cached and hot objects will fill up any unused space
557 not needed for in-transit objects.
558
7b2496ca 559 If circumstances require, this limit will be exceeded.
560 Specifically, if your incoming request rate requires more than
561 'cache_mem' of memory to hold in-transit objects, Squid will
562 exceed this limit to satisfy the new requests. When the load
563 decreases, blocks will be freed until the high-water mark is
564 reached. Thereafter, blocks will be used to store hot
565 objects.
934b03fc 566DOC_END
567
568
569NAME: cache_swap_low
570COMMENT: (percent, 0-100)
571TYPE: int
572DEFAULT: 90
573LOC: Config.Swap.lowWaterMark
574DOC_NONE
575
576NAME: cache_swap_high
577COMMENT: (percent, 0-100)
578TYPE: int
579DEFAULT: 95
580LOC: Config.Swap.highWaterMark
581DOC_START
2b906e48 582
583 The low- and high-water marks for cache object replacement.
584 Replacement begins when the swap (disk) usage is above the
585 low-water mark and attempts to maintain utilization near the
586 low-water mark. As swap utilization gets close to high-water
587 mark object eviction becomes more aggressive. If utilization is
588 close to the low-water mark less replacement is done each time.
589
590 Defaults are 90% and 95%. If you have a large cache, 5% could be
591 hundreds of MB. If this is the case you may wish to set these
592 numbers closer together.
934b03fc 593DOC_END
594
934b03fc 595NAME: maximum_object_size
9e975e4e 596COMMENT: (bytes)
1b635117 597TYPE: b_size_t
9906e724 598DEFAULT: 4096 KB
934b03fc 599LOC: Config.Store.maxObjectSize
600DOC_START
601 Objects larger than this size will NOT be saved on disk. The
cf5cc17e 602 value is specified in kilobytes, and the default is 4MB. If
603 you wish to get a high BYTES hit ratio, you should probably
604 increase this (one 32 MB object hit counts for 3200 10KB
605 hits). If you wish to increase speed more than your want to
606 save bandwidth you should leave this low.
934b03fc 607
2b906e48 608 NOTE: if using the LFUDA replacement policy you should increase
609 this value to maximize the byte hit rate improvement of LFUDA!
610 See replacement_policy below for a discussion of this policy.
934b03fc 611DOC_END
612
d20b1cd0 613NAME: minimum_object_size
614COMMENT: (bytes)
615TYPE: b_size_t
616DEFAULT: 0 KB
617LOC: Config.Store.minObjectSize
618DOC_START
619 Objects smaller than this size will NOT be saved on disk. The
620 value is specified in kilobytes, and the default is 0 KB, which
621 means there is no minimum.
622DOC_END
934b03fc 623
16689110 624NAME: maximum_object_size_in_memory
625COMMENT: (bytes)
626TYPE: b_size_t
627DEFAULT: 8 KB
628LOC: Config.Store.maxInMemObjSize
629DOC_START
630 Objects greater than this size will not be attempted to kept in
631 the memory cache. This should be set high enough to keep objects
632 accessed frequently in memory to improve performance whilst low
633 enough to keep larger objects from hoarding cache_mem .
634DOC_END
635
934b03fc 636NAME: ipcache_size
637COMMENT: (number of entries)
638TYPE: int
639DEFAULT: 1024
640LOC: Config.ipcache.size
641DOC_NONE
642
643NAME: ipcache_low
644COMMENT: (percent)
645TYPE: int
646DEFAULT: 90
647LOC: Config.ipcache.low
648DOC_NONE
649
650NAME: ipcache_high
651COMMENT: (percent)
652TYPE: int
653DEFAULT: 95
654LOC: Config.ipcache.high
655DOC_START
656 The size, low-, and high-water marks for the IP cache.
934b03fc 657DOC_END
658
e55650e3 659NAME: fqdncache_size
660COMMENT: (number of entries)
661TYPE: int
662DEFAULT: 1024
663LOC: Config.fqdncache.size
664DOC_START
665 Maximum number of FQDN cache entries.
e55650e3 666DOC_END
667
6a566b9c 668NAME: cache_replacement_policy
669TYPE: removalpolicy
670LOC: Config.replPolicy
671DEFAULT: lru
672DOC_START
673 The cache replacement policy parameter determines which
674 objects are evicted (replaced) when disk space is needed.
675
676 lru : Squid's original list based LRU policy
677 heap GDSF : Greedy-Dual Size Frequency
678 heap LFUDA: Least Frequently Used with Dynamic Aging
679 heap LRU : LRU policy implemented using a heap
680
681 Applies to any cache_dir lines listed below this.
682
683 The LRU policies keeps recently referenced objects.
684
685 The heap GDSF policy optimizes object hit rate by keeping smaller
686 popular objects in cache so it has a better chance of getting a
687 hit. It achieves a lower byte hit rate than LFUDA though since
688 it evicts larger (possibly popular) objects.
689
690 The heap LFUDA policy keeps popular objects in cache regardless of
691 their size and thus optimizes byte hit rate at the expense of
692 hit rate since one large, popular object will prevent many
693 smaller, slightly less popular objects from being cached.
694
695 Both policies utilize a dynamic aging mechanism that prevents
696 cache pollution that can otherwise occur with frequency-based
697 replacement policies.
698
699 NOTE: if using the LFUDA replacement policy you should increase
700 the value of maximum_object_size above its default of 4096 KB to
96d88dcb 701 to maximize the potential byte hit rate improvement of LFUDA.
6a566b9c 702
703 For more information about the GDSF and LFUDA cache replacement
704 policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
705 and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html.
706DOC_END
707
708NAME: memory_replacement_policy
709TYPE: removalpolicy
710LOC: Config.memPolicy
711DEFAULT: lru
712DOC_START
713 The memory replacement policy parameter determines which
714 objects are purged from memory when memory space is needed.
715
716 See cache_replacement_policy for details.
717DOC_END
718
719
0f74202c 720COMMENT_START
3a278cb8 721 LOGFILE PATHNAMES AND CACHE DIRECTORIES
722 -----------------------------------------------------------------------------
0f74202c 723COMMENT_END
934b03fc 724
725NAME: cache_dir
726TYPE: cachedir
f1dc9b30 727DEFAULT: none
8e8d4f30 728DEFAULT_IF_NONE: ufs @DEFAULT_SWAP_DIR@ 100 16 256
f1dc9b30 729LOC: Config.cacheSwap
934b03fc 730DOC_START
cf5cc17e 731 Usage:
732
8e8d4f30 733 cache_dir Type Directory-Name Fs-specific-data [options]
934b03fc 734
1f7c9178 735 cache_dir diskd Maxobjsize Directory-Name MB L1 L2 Q1 Q2
736
934b03fc 737 You can specify multiple cache_dir lines to spread the
738 cache among different disk partitions.
739
c463eb5f 740 Type specifies the kind of storage system to use. Only "ufs"
741 is built by default. To eanble any of the other storage systems
742 see the --enable-storeio configure option.
9bc73deb 743
cf5cc17e 744 'Directory' is a top-level directory where cache swap
745 files will be stored. If you want to use an entire disk
746 for caching, then this can be the mount-point directory.
747 The directory must exist and be writable by the Squid
748 process. Squid will NOT create this directory for you.
749
8e8d4f30 750 The ufs store type:
751
752 "ufs" is the old well-known Squid storage format that has always
753 been there.
754
755 cache_dir ufs Directory-Name Mbytes L1 L2 [options]
cf5cc17e 756
757 'Mbytes' is the amount of disk space (MB) to use under this
758 directory. The default is 100 MB. Change this to suit your
759 configuration.
760
761 'Level-1' is the number of first-level subdirectories which
762 will be created under the 'Directory'. The default is 16.
763
764 'Level-2' is the number of second-level subdirectories which
765 will be created under each first-level directory. The default
766 is 256.
d1595b77 767
8e8d4f30 768 The aufs store type:
769
770 "aufs" uses the same storage format as "ufs", utilizing
771 POSIX-threads to avoid blocking the main Squid process on
772 disk-I/O. This was formerly known in Squid as async-io.
773
774 cache_dir aufs Directory-Name Mbytes L1 L2 [options]
775
776 see argument descriptions under ufs above
777
778 The diskd store type:
779
780 "diskd" uses the same storage format as "ufs", utilizing a
781 separate process to avoid blocking the main Squid process on
782 disk-I/O.
783
784 cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
785
786 see argument descriptions under ufs above
787
788 Q1 specifies the number of unacknowledged I/O requests when Squid
789 stops opening new files. If this many messages are in the queues,
790 Squid won't open new files. Default is 64
791
d1595b77 792 Q2 specifies the number of unacknowledged messages when Squid
793 starts blocking. If this many messages are in the queues,
8e8d4f30 794 Squid blocks until it recevies some replies. Default is 72
795
796 Common options:
797
798 read-only, this cache_dir is read only.
799
800 max-size=n, refers to the max object size this storedir supports.
801 It is used to initially choose the storedir to dump the object.
802 Note: To make optimal use of the max-size limits you should order
803 the cache_dir lines with the smallest max-size value first and the
804 ones with no max-size specification last.
934b03fc 805DOC_END
806
807
808NAME: cache_access_log
809TYPE: string
d0b98f84 810DEFAULT: @DEFAULT_ACCESS_LOG@
934b03fc 811LOC: Config.Log.access
812DOC_START
813 Logs the client request activity. Contains an entry for
0eb83825 814 every HTTP and ICP queries received. To disable, enter "none".
934b03fc 815DOC_END
816
817
818NAME: cache_log
819TYPE: string
0153d498 820DEFAULT: @DEFAULT_CACHE_LOG@
934b03fc 821LOC: Config.Log.log
822DOC_START
cf5cc17e 823 Cache logging file. This is where general information about
efd900cb 824 your cache's behavior goes. You can increase the amount of data
cf5cc17e 825 logged to this file with the "debug_options" tag below.
934b03fc 826DOC_END
827
828
829NAME: cache_store_log
830TYPE: string
0153d498 831DEFAULT: @DEFAULT_STORE_LOG@
934b03fc 832LOC: Config.Log.store
833DOC_START
834 Logs the activities of the storage manager. Shows which
835 objects are ejected from the cache, and which objects are
cf5cc17e 836 saved and for how long. To disable, enter "none". There are
efd900cb 837 not really utilities to analyze this data, so you can safely
cf5cc17e 838 disable it.
934b03fc 839DOC_END
840
841
842NAME: cache_swap_log
843TYPE: string
844LOC: Config.Log.swap
1273d501 845DEFAULT: none
934b03fc 846DOC_START
d0d3ec94 847 Location for the cache "swap.log." This log file holds the
934b03fc 848 metadata of objects saved on disk. It is used to rebuild the
a80e50c7 849 cache during startup. Normally this file resides in each
934b03fc 850 'cache_dir' directory, but you may specify an alternate
851 pathname here. Note you must give a full filename, not just
cf5cc17e 852 a directory. Since this is the index for the whole object
853 list you CANNOT periodically rotate it!
934b03fc 854
a80e50c7 855 If %s can be used in the file name then it will be replaced with a
856 a representation of the cache_dir name where each / is replaced
857 with '.'. This is needed to allow adding/removing cache_dir
858 lines when cache_swap_log is being used.
96d88dcb 859
a80e50c7 860 If have more than one 'cache_dir', and %s is not used in the name
861 then these swap logs will have names such as:
710df4ca 862
863 cache_swap_log.00
864 cache_swap_log.01
865 cache_swap_log.02
866
867 The numbered extension (which is added automatically)
868 corresponds to the order of the 'cache_dir' lines in this
869 configuration file. If you change the order of the 'cache_dir'
870 lines in this file, then these log files will NOT correspond to
871 the correct 'cache_dir' entry (unless you manually rename
872 them). We recommend that you do NOT use this option. It is
873 better to keep these log files in each 'cache_dir' directory.
934b03fc 874DOC_END
875
876
877NAME: emulate_httpd_log
878COMMENT: on|off
879TYPE: onoff
f1dc9b30 880DEFAULT: off
17a0a4ee 881LOC: Config.onoff.common_log
934b03fc 882DOC_START
883 The Cache can emulate the log file format which many 'httpd'
884 programs use. To disable/enable this emulation, set
885 emulate_httpd_log to 'off' or 'on'. The default
cf5cc17e 886 is to use the native log format since it includes useful
efd900cb 887 information that Squid-specific log analyzers use.
934b03fc 888DOC_END
889
890b0fa8 890NAME: log_ip_on_direct
891COMMENT: on|off
892TYPE: onoff
893DEFAULT: on
894LOC: Config.onoff.log_ip_on_direct
895DOC_START
896 Log the destination IP address in the hierarchy log tag when going
897 direct. Earlier Squid versions logged the hostname here. If you
898 prefer the old way set this to off.
890b0fa8 899DOC_END
934b03fc 900
901NAME: mime_table
f0b19334 902TYPE: string
0153d498 903DEFAULT: @DEFAULT_MIME_TABLE@
934b03fc 904LOC: Config.mimeTablePathname
905DOC_START
cf5cc17e 906 Pathname to Squid's MIME table. You shouldn't need to change
907 this, but the default file contains examples and formatting
908 information if you do.
934b03fc 909DOC_END
910
911
912NAME: log_mime_hdrs
913COMMENT: on|off
914TYPE: onoff
17a0a4ee 915LOC: Config.onoff.log_mime_hdrs
f1dc9b30 916DEFAULT: off
934b03fc 917DOC_START
cf5cc17e 918 The Cache can record both the request and the response MIME
919 headers for each HTTP transaction. The headers are encoded
920 safely and will appear as two bracketed fields at the end of
921 the access log (for either the native or httpd-emulated log
922 formats). To enable this logging set log_mime_hdrs to 'on'.
934b03fc 923DOC_END
924
925
926NAME: useragent_log
927TYPE: string
928LOC: Config.Log.useragent
f1dc9b30 929DEFAULT: none
6b53c392 930IFDEF: USE_USERAGENT_LOG
934b03fc 931DOC_START
6b53c392 932 Squid will write the User-Agent field from HTTP requests
933 to the filename specified here. By default useragent_log
934 is disabled.
934b03fc 935DOC_END
936
937
fd2c5549 938NAME: referer_log
939TYPE: string
940LOC: Config.Log.referer
941DEFAULT: none
b81f1cf3 942IFDEF: USE_REFERER_LOG
fd2c5549 943DOC_START
b81f1cf3 944 Squid will write the Referer field from HTTP requests to the
945 filename specified here. By default referer_log is disabled.
fd2c5549 946DOC_END
947
948
934b03fc 949NAME: pid_filename
950TYPE: string
0153d498 951DEFAULT: @DEFAULT_PID_FILE@
934b03fc 952LOC: Config.pidFilename
953DOC_START
d0d41f07 954 A filename to write the process-id to. To disable, enter "none".
934b03fc 955DOC_END
956
957
958NAME: debug_options
f1dc9b30 959TYPE: eol
934b03fc 960DEFAULT: ALL,1
961LOC: Config.debugOptions
962DOC_START
963 Logging options are set as section,level where each source file
964 is assigned a unique section. Lower levels result in less
965 output, Full debugging (level 9) can result in a very large
966 log file, so be careful. The magic word "ALL" sets debugging
967 levels for all sections. We recommend normally running with
968 "ALL,1".
934b03fc 969DOC_END
970
971
934b03fc 972NAME: log_fqdn
973COMMENT: on|off
974TYPE: onoff
f1dc9b30 975DEFAULT: off
17a0a4ee 976LOC: Config.onoff.log_fqdn
934b03fc 977DOC_START
978 Turn this on if you wish to log fully qualified domain names
cf5cc17e 979 in the access.log. To do this Squid does a DNS lookup of all
980 IP's connecting to it. This can (in some situations) increase
981 latency, which makes your cache seem slower for interactive
96d88dcb 982 browsing.
934b03fc 983DOC_END
984
985
986NAME: client_netmask
987TYPE: address
988LOC: Config.Addrs.client_netmask
f1dc9b30 989DEFAULT: 255.255.255.255
934b03fc 990DOC_START
991 A netmask for client addresses in logfiles and cachemgr output.
992 Change this to protect the privacy of your cache clients.
cf5cc17e 993 A netmask of 255.255.255.0 will log all IP's in that range with
994 the last digit set to '0'.
934b03fc 995DOC_END
996
997
0f74202c 998COMMENT_START
3a278cb8 999 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
1000 -----------------------------------------------------------------------------
0f74202c 1001COMMENT_END
934b03fc 1002
934b03fc 1003NAME: ftp_user
1004TYPE: string
cf5cc17e 1005DEFAULT: Squid@
934b03fc 1006LOC: Config.Ftp.anon_user
1007DOC_START
1008 If you want the anonymous login password to be more informative
1009 (and enable the use of picky ftp servers), set this to something
efd900cb 1010 reasonable for your domain, like wwwuser@somewhere.net
934b03fc 1011
1012 The reason why this is domainless by default is that the
1013 request can be made on the behalf of a user in any domain,
1014 depending on how the cache is used.
1015 Some ftp server also validate that the email address is valid
1016 (for example perl.com).
934b03fc 1017DOC_END
1018
365cb147 1019NAME: ftp_list_width
1b635117 1020TYPE: size_t
365cb147 1021DEFAULT: 32
1022LOC: Config.Ftp.list_width
1023DOC_START
cf5cc17e 1024 Sets the width of ftp listings. This should be set to fit in
1025 the width of a standard browser. Setting this too small
1026 can cut off long filenames when browsing ftp sites.
365cb147 1027DOC_END
1028
d20b1cd0 1029NAME: ftp_passive
1030TYPE: onoff
1031DEFAULT: on
1032LOC: Config.Ftp.passive
1033DOC_START
1034 If your firewall does not allow Squid to use passive
1035 connections, then turn off this option.
1036DOC_END
1037
934b03fc 1038NAME: cache_dns_program
f0b19334 1039TYPE: string
589c90de 1040IFDEF: USE_DNSSERVERS
0153d498 1041DEFAULT: @DEFAULT_DNSSERVER@
934b03fc 1042LOC: Config.Program.dnsserver
1043DOC_START
1044 Specify the location of the executable for dnslookup process.
934b03fc 1045DOC_END
1046
934b03fc 1047NAME: dns_children
1048TYPE: int
6b53c392 1049IFDEF: USE_DNSSERVERS
934b03fc 1050DEFAULT: 5
1051LOC: Config.dnsChildren
1052DOC_START
1053 The number of processes spawn to service DNS name lookups.
1054 For heavily loaded caches on large servers, you should
1055 probably increase this value to at least 10. The maximum
1056 is 32. The default is 5.
1057
efd900cb 1058 You must have at least one dnsserver process.
934b03fc 1059DOC_END
1060
4fe0e1d0 1061NAME: dns_retransmit_interval
1062TYPE: time_t
1063DEFAULT: 5 seconds
1064LOC: Config.Timeout.idns_retransmit
1065IFDEF: !USE_DNSSERVERS
1066DOC_START
1067 Initial retransmit interval for DNS queries. The interval is
1068 doubled each time all configured DNS servers have been tried.
1069
1070DOC_END
1071
1072NAME: dns_timeout
1073TYPE: time_t
1074DEFAULT: 5 minutes
1075LOC: Config.Timeout.idns_query
1076IFDEF: !USE_DNSSERVERS
1077DOC_START
1078 DNS Query timeout. If no response is received to a DNS query
1079 within this time then all DNS servers for the queried domain
1080 is assumed to be unavailable.
1081DOC_END
934b03fc 1082
1083NAME: dns_defnames
1084COMMENT: on|off
589c90de 1085IFDEF: USE_DNSSERVERS
934b03fc 1086TYPE: onoff
f1dc9b30 1087DEFAULT: off
17a0a4ee 1088LOC: Config.onoff.res_defnames
6b53c392 1089IFDEF: USE_DNSSERVERS
934b03fc 1090DOC_START
1091 Normally the 'dnsserver' disables the RES_DEFNAMES resolver
1092 option (see res_init(3)). This prevents caches in a hierarchy
1093 from interpreting single-component hostnames locally. To allow
1094 dnsserver to handle single-component names, enable this
1095 option.
934b03fc 1096DOC_END
1097
09c483ec 1098NAME: dns_nameservers
1099TYPE: wordlist
1100DEFAULT: none
1101LOC: Config.dns_nameservers
1102DOC_START
1103 Use this if you want to specify a list of DNS name servers
1104 (IP addresses) to use instead of those given in your
1105 /etc/resolv.conf file.
1106
1107 Example: dns_nameservers 10.0.0.1 192.172.0.4
09c483ec 1108DOC_END
1109
0e70aa1e 1110NAME: hosts_file
1111TYPE: string
1112DEFAULT: /etc/hosts
1113LOC: Config.etcHostsPath
1114DOC_START
1115 Location of the host-local IP name-address associations
1116 database. Most Operating Systems have such a file: under
1117 Un*X it's by default in /etc/hosts MS-Windows NT/2000 places
1118 that in %SystemRoot%(by default
1119 c:\winnt)\system32\drivers\etc\hosts, while Windows 9x/ME
1120 places that in %windir%(usually c:\windows)\hosts
1121
1122 The file contains newline-separated definitions, in the
1123 form ip_address_in_dotted_form name [name ...] names are
1124 whitespace-separated. lines beginnng with an hash (#)
1125 character are comments.
1126
1127 The file is checked at startup and upon configuration. If
1128 set to 'none', it won't be checked. If append_domain is
1129 used, that domain will be added to domain-local (i.e. not
1130 containing any dot character) host definitions.
1131DOC_END
934b03fc 1132
be7d89d4 1133NAME: diskd_program
1134TYPE: string
1135DEFAULT: @DEFAULT_DISKD@
1136LOC: Config.Program.diskd
1137DOC_START
1138 Specify the location of the diskd executable.
1139 Note that this is only useful if you have compiled in
1140 diskd as one of the store io modules.
1141DOC_END
1142
934b03fc 1143NAME: unlinkd_program
a3d0a19d 1144IFDEF: USE_UNLINKD
f0b19334 1145TYPE: string
0153d498 1146DEFAULT: @DEFAULT_UNLINKD@
934b03fc 1147LOC: Config.Program.unlinkd
1148DOC_START
1149 Specify the location of the executable for file deletion process.
934b03fc 1150DOC_END
1151
934b03fc 1152NAME: pinger_program
a95856a0 1153TYPE: string
0153d498 1154DEFAULT: @DEFAULT_PINGER@
934b03fc 1155LOC: Config.Program.pinger
6b53c392 1156IFDEF: USE_ICMP
934b03fc 1157DOC_START
1158 Specify the location of the executable for the pinger process.
934b03fc 1159DOC_END
1160
1161
1162NAME: redirect_program
c6d5b87b 1163TYPE: wordlist
934b03fc 1164LOC: Config.Program.redirect
62607543 1165DEFAULT: none
934b03fc 1166DOC_START
1167 Specify the location of the executable for the URL redirector.
cf5cc17e 1168 Since they can perform almost any function there isn't one included.
3f94eab9 1169 See the FAQ (section 15) for information on how to write one.
cf5cc17e 1170 By default, a redirector is not used.
934b03fc 1171DOC_END
1172
1173
1174NAME: redirect_children
1175TYPE: int
1176DEFAULT: 5
1177LOC: Config.redirectChildren
1178DOC_START
cf5cc17e 1179 The number of redirector processes to spawn. If you start
1180 too few Squid will have to wait for them to process a backlog of
1181 URLs, slowing it down. If you start too many they will use RAM
1182 and other system resources.
934b03fc 1183DOC_END
1184
c68e9c6b 1185NAME: redirect_rewrites_host_header
1186TYPE: onoff
1187DEFAULT: on
1188LOC: Config.onoff.redir_rewrites_host
1189DOC_START
7e3ce7b9 1190 By default Squid rewrites any Host: header in redirected
1191 requests. If you are running a accelerator then this may
1192 not be a wanted effect of a redirector.
c68e9c6b 1193DOC_END
1194
9bc73deb 1195NAME: redirector_access
1196TYPE: acl_access
1197DEFAULT: none
1198LOC: Config.accessList.redirector
1199DOC_START
1200 If defined, this access list specifies which requests are
1201 sent to the redirector processes. By default all requests
1202 are sent.
1203DOC_END
1204
94439e4e 1205NAME: auth_param
1206TYPE: authparam
1207LOC: Config.authConfig
73e67ee0 1208DEFAULT: none
1209DOC_START
94439e4e 1210 This is used to pass parameters to the various authentication
1211 schemes.
1212 format: auth_param scheme parameter [setting]
1213
1214 auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
1215 would tell the basic authentication scheme it's program parameter.
1216
1217 The order that authentication prompts are presented to the client_agent
1218 is dependant on the order the scheme first appears in config file.
1219 IE has a bug (it's not rfc 2617 compliant) in that it will use the basic
1220 scheme if basic is the first entry presented, even if more secure schemes
1221 are presented. For now use the order in the file below. If other browsers
1222 have difficulties (don't recognise the schemes offered even if you are using
1223 basic) then either put basic first, or disable the other schemes (by commenting
1224 out their program entry).
1225
2d70df72 1226 Once an authentication scheme is fully configured, it can only be shutdown
1227 by shutting squid down and restarting. Changes can be made on the fly and
96d88dcb 1228 activated with a reconfigure. I.E. You can change to a different helper,
2d70df72 1229 but not unconfigure the helper completely.
1230
94439e4e 1231 === Parameters for the basic scheme follow. ===
1232
1233 "program" cmdline
6c20b822 1234 Specify the command for the external authenticator. Such a
1235 program reads a line containing "username password" and replies
1236 "OK" or "ERR" in an endless loop. If you use an authenticator,
1237 make sure you have 1 acl of type proxy_auth. By default, the
94439e4e 1238 authenticate_program is not used.
73e67ee0 1239
6c20b822 1240 If you want to use the traditional proxy authentication,
1241 jump over to the ../auth_modules/NCSA directory and
1242 type:
1243 % make
1244 % make install
73e67ee0 1245
6c20b822 1246 Then, set this line to something like
73e67ee0 1247
94439e4e 1248 auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
73e67ee0 1249
94439e4e 1250 "children" numberofchildren
1251 The number of authenticator processes to spawn (no default). If you
73e67ee0 1252 start too few Squid will have to wait for them to process a backlog
1253 of usercode/password verifications, slowing it down. When password
1254 verifications are done via a (slow) network you are likely to need
1255 lots of authenticator processes.
94439e4e 1256 auth_param basic children 5
1257
1258 "realm" realmstring
1259 Specifies the realm name which is to be reported to the client for
1260 the basic proxy authentication scheme (part of the text the user will
1261 see when prompted their username and password). Their is no default.
1262 auth_param basic realm Squid proxy-caching web server
1263
1264 "credentialsttl" timetolive
1265 Specifies how long squid assumes an externally validated username:password
96d88dcb 1266 pair is valid for - in other words how often the helper program is called
94439e4e 1267 for that user. Set this low to force revalidation with short lived passwords.
1268 Note that setting this high does not impact your susceptability to replay
1269 attacks unless you are using a one-time password system (such as SecureID).
1270 If you are using such a system, you will be vulnerable to replay attacks
1271 unless you also enable the IP ttl is strict option.
1272
2d70df72 1273 === Parameters for the digest scheme follow ===
1274
1275 "program" cmdline
1276 Specify the command for the external authenticator. Such a
1277 program reads a line containing "username":"realm" and replies
1278 with the appropriate H(A1) value base64 encoded. See rfc 2616 for
1279 the definition of H(A1). If you use an authenticator,
96d88dcb 1280 make sure you have 1 acl of type proxy_auth. By default,
2d70df72 1281 authentication is not used.
1282
1283 If you want to use build a authenticator,
96d88dcb 1284 jump over to the ../digest_auth_modules directory and choose the
2d70df72 1285 authenticator to use. It it's directory type
1286 % make
1287 % make install
1288
1289 Then, set this line to something like
1290
1291 auth_param digest program @DEFAULT_PREFIX@/bin/digest_auth_pw @DEFAULT_PREFIX@/etc/digpass
1292
1293
1294 "children" numberofchildren
1295 The number of authenticator processes to spawn (no default). If you
1296 start too few Squid will have to wait for them to process a backlog
1297 of H(A1) calculations, slowing it down. When the H(A1) calculations
96d88dcb 1298 are done via a (slow) network you are likely to need lots of
2d70df72 1299 authenticator processes.
1300 auth_param digest children 5
1301
1302 "realm" realmstring
1303 Specifies the realm name which is to be reported to the client for
1304 the digest proxy authentication scheme (part of the text the user will
1305 see when prompted their username and password). There is no default.
1306 auth_param digest realm Squid proxy-caching web server
1307
1308 "nonce_garbage_interval" timeinterval
1309 Specifies the interval that nonces that have been issued to client_agent's
1310 are checked for validity.
1311
1312 "nonce_max_duration" timeinterval
96d88dcb 1313 Specifies the maximum length of time a given nonce will be valid for.
2d70df72 1314
1315 "nonce_max_count" number
1316 Specifies the maximum number of times a given nonce can be used.
1317
d205783b 1318 "nonce_strictness" on|off
1319 Determines if squid requires increment-by-1 behaviour for nonce counts
1320 (on - the default), or strictly incrementing (off - for use when useragents
1321 generate nonce counts that occasionally miss 1 (ie, 1,2,4,6)).
1322
94439e4e 1323 === NTLM scheme options follow ===
1324
1325 "program" cmdline
1326 Specify the command for the external ntlm authenticator. Such a
1327 program reads a line containing the uuencoded NEGOTIATE and replies
1328 with the ntlm CHALLENGE, then waits for the response and answers with
1329 "OK" or "ERR" in an endless loop. If you use an ntlm authenticator,
1330 make sure you have 1 acl of type proxy_auth. By default, the
1331 ntlm authenticator_program is not used.
1332
1333 auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth
1334
1335 "children" numberofchildren
1336 The number of authenticator processes to spawn (no default). If you
1337 start too few Squid will have to wait for them to process a backlog
1338 of credential verifications, slowing it down. When crendential
1339 verifications are done via a (slow) network you are likely to need
1340 lots of authenticator processes.
1341 auth_param ntlm children 5
1342
1343 "max_challenge_reuses" number
1344 The maximum number of times a challenge given by a ntlm authentication
96d88dcb 1345 helper can be reused. Increasing this number increases your exposure
1346 to replay attacks on your network. 0 means use the challenge only once.
94439e4e 1347 (disable challenge caching)
1348 See max_ntlm_challenge_lifetime for more information.
1349 auth_param ntlm max_challenge_reuses 0
1350
1351 "max_challenge_lifetime" timespan
1352 The maximum time period that a ntlm challenge is reused over.
96d88dcb 1353 The actual period will be the minimum of this time AND the number of
94439e4e 1354 reused challenges.
1355 auth_param ntlm max_challenge_lifetime 2 minutes
1356
1357NOCOMMENT_START
1358#Recommended minimum configuration:
2d70df72 1359#auth_param digest program <uncomment and complete this line>
1360#auth_param digest children 5
1361#auth_param digest realm Squid proxy-caching web server
1362#auth_param digest nonce_garbage_interval 5 minutes
1363#auth_param digest nonce_max_duration 30 minutes
1364#auth_param digest nonce_max_count 50
94439e4e 1365#auth_param ntlm program <uncomment and complete this line to activate>
2d70df72 1366#auth_param ntlm children 5
1367#auth_param ntlm max_challenge_reuses 0
1368#auth_param ntlm max_challenge_lifetime 2 minutes
94439e4e 1369#auth_param basic program <uncomment and complete this line>
1370auth_param basic children 5
1371auth_param basic realm Squid proxy-caching web server
1372auth_param basic credentialsttl 2 hours
1373NOCOMMENT_END
1374DOC_END
1375
1376NAME: authenticate_cache_garbage_interval
1377TYPE: time_t
1378DEFAULT: 1 hour
1379LOC: Config.authenticateGCInterval
1380DOC_START
96d88dcb 1381 The time period between garbage collection across the username cache.
94439e4e 1382 This is a tradeoff between memory utilisation (long intervals - say
1383 2 days) and CPU (short intervals - say 1 minute). Only change if
1384 you have good reason to.
73e67ee0 1385DOC_END
1386
c68e9c6b 1387NAME: authenticate_ttl
70a76033 1388TYPE: time_t
1389DEFAULT: 1 hour
c68e9c6b 1390LOC: Config.authenticateTTL
1391DOC_START
94439e4e 1392 The time a user & their credentials stay in the logged in user cache
1393 since their last request. When the garbage interval passes, all
1394 user credentials that have passed their TTL are removed from memory.
c68e9c6b 1395DOC_END
1396
9bc73deb 1397NAME: authenticate_ip_ttl
70a76033 1398TYPE: time_t
9bc73deb 1399LOC: Config.authenticateIpTTL
70a76033 1400DEFAULT: 0 seconds
9bc73deb 1401DOC_START
1402 With this option you control how long a proxy authentication
1403 will be bound to a specific IP address. If a request using
1404 the same user name is received during this time then access
1405 will be denied and both users are required to reauthenticate
1406 them selves. The idea behind this is to make it annoying
1407 for people to share their password to their friends, but
1408 yet allow a dialup user to reconnect on a different dialup
1409 port.
1410
1411 The default is 0 to disable the check. Recommended value
70a76033 1412 if you have dialup users are no more than 60 seconds to allow
1413 the user to redial without hassle. If all your users are
1414 stationary then higher values may be used.
1415
60d096f4 1416 See also the acl max_user_ip.
9bc73deb 1417DOC_END
1418
0f74202c 1419COMMENT_START
3a278cb8 1420 OPTIONS FOR TUNING THE CACHE
1421 -----------------------------------------------------------------------------
0f74202c 1422COMMENT_END
934b03fc 1423
0153d498 1424NAME: wais_relay_host
1425TYPE: string
1273d501 1426DEFAULT: none
0153d498 1427LOC: Config.Wais.relayHost
1428DOC_NONE
934b03fc 1429
0153d498 1430NAME: wais_relay_port
1431TYPE: ushort
1432DEFAULT: 0
1433LOC: Config.Wais.relayPort
934b03fc 1434DOC_START
1435 Relay WAIS request to host (1st arg) at port (2 arg).
934b03fc 1436DOC_END
1437
1438
0483b991 1439NAME: request_header_max_size
1440COMMENT: (KB)
1441TYPE: b_size_t
1442DEFAULT: 10 KB
1443LOC: Config.maxRequestHeaderSize
1444DOC_START
1445 This specifies the maximum size for HTTP headers in a request.
1446 Request headers are usually relatively small (about 512 bytes).
1447 Placing a limit on the request header size will catch certain
1448 bugs (for example with persistent connections) and possibly
1449 buffer-overflow or denial-of-service attacks.
0483b991 1450DOC_END
1451
1452NAME: request_body_max_size
9906e724 1453COMMENT: (KB)
518da0bd 1454TYPE: b_size_t
ec719ae2 1455DEFAULT: 0 KB
0483b991 1456LOC: Config.maxRequestBodySize
934b03fc 1457DOC_START
0483b991 1458 This specifies the maximum size for an HTTP request body.
1459 In other words, the maximum size of a PUT/POST request.
1460 A user who attempts to send a request with a body larger
1461 than this limit receives an "Invalid Request" error message.
ec719ae2 1462 If you set this parameter to a zero (the default), there will
1463 be no limit imposed.
0483b991 1464DOC_END
934b03fc 1465
934b03fc 1466NAME: refresh_pattern
934b03fc 1467TYPE: refreshpattern
f1dc9b30 1468LOC: Config.Refresh
1273d501 1469DEFAULT: none
6b53c392 1470DEFAULT_IF_NONE: ^ftp: 1440 20% 10080
1471DEFAULT_IF_NONE: ^gopher: 1440 0% 1440
1472DEFAULT_IF_NONE: . 0 20% 4320
934b03fc 1473DOC_START
7ddc902f 1474 usage: refresh_pattern [-i] regex min percent max [options]
1475
1476 By default, regular expressions are CASE-SENSITIVE. To make
1477 them case-insensitive, use the -i option.
934b03fc 1478
7e3ce7b9 1479 'Min' is the time (in minutes) an object without an explicit
1480 expiry time should be considered fresh. The recommended
1481 value is 0, any higher values may cause dynamic applications
efd900cb 1482 to be erroneously cached unless the application designer
7e3ce7b9 1483 has taken the appropriate actions.
1484
1485 'Percent' is a percentage of the objects age (time since last
efd900cb 1486 modification age) an object without explicit expiry time
7e3ce7b9 1487 will be considered fresh.
1488
1489 'Max' is an upper limit on how long objects without an explicit
1490 expiry time will be considered fresh.
934b03fc 1491
c20d16c0 1492 options: override-expire
1dfa1d81 1493 override-lastmod
cbe3a719 1494 reload-into-ims
1495 ignore-reload
1dfa1d81 1496
1497 override-expire enforces min age even if the server
cbe3a719 1498 sent a Expires: header. Doing this VIOLATES the HTTP
1499 standard. Enabling this feature could make you liable
1500 for problems which it causes.
1dfa1d81 1501
1502 override-lastmod enforces min age even on objects
1503 that was modified recently.
cbe3a719 1504
1505 reload-into-ims changes client no-cache or ``reload''
1506 to If-Modified-Since requests. Doing this VIOLATES the
1507 HTTP standard. Enabling this feature could make you
1508 liable for problems which it causes.
1509
1510 ignore-reload ignores a client no-cache or ``reload''
1511 header. Doing this VIOLATES the HTTP standard. Enabling
1512 this feature could make you liable for problems which
1513 it causes.
1dfa1d81 1514
934b03fc 1515 Please see the file doc/Release-Notes-1.1.txt for a full
1516 description of Squid's refresh algorithm. Basically a
1dfa1d81 1517 cached object is: (the order is changed from 1.1.X)
934b03fc 1518
1dfa1d81 1519 FRESH if expires < now, else STALE
6b8e7481 1520 STALE if age > max
1dfa1d81 1521 FRESH if lm-factor < percent, else STALE
1522 FRESH if age < min
1523 else STALE
934b03fc 1524
1525 The refresh_pattern lines are checked in the order listed here.
1526 The first entry which matches is used. If none of the entries
1527 match, then the default will be used.
1528
6b53c392 1529 Note, you must uncomment all the default lines if you want
1530 to change one. The default setting is only active if none is
1531 used.
934b03fc 1532DOC_END
1533
934b03fc 1534NAME: reference_age
f1dc9b30 1535TYPE: time_t
934b03fc 1536LOC: Config.referenceAge
f1dc9b30 1537DEFAULT: 1 year
934b03fc 1538DOC_START
1539 As a part of normal operation, Squid performs Least Recently
1540 Used removal of cached objects. The LRU age for removal is
1541 computed dynamically, based on the amount of disk space in
6778c757 1542 use. The dynamic value can be seen in the Cache Manager 'info'
1543 output.
1544
1545 The 'reference_age' parameter defines the maximum LRU age. For
1546 example, setting reference_age to '1 week' will cause objects
1547 to be removed if they have not been accessed for a week or
7e3ce7b9 1548 more. The default value is one year.
934b03fc 1549
1550 Specify a number here, followed by units of time. For example:
1551 1 week
1552 3.5 days
1553 4 months
1554 2.2 hours
1555
2b906e48 1556 NOTE: this parameter is not used when using the enhanced
1557 replacement policies, GDSH or LFUDA.
934b03fc 1558DOC_END
1559
1560
0153d498 1561NAME: quick_abort_min
9906e724 1562COMMENT: (KB)
1563TYPE: kb_size_t
c68e9c6b 1564DEFAULT: 16 KB
0153d498 1565LOC: Config.quickAbort.min
1566DOC_NONE
1567
0153d498 1568NAME: quick_abort_max
9906e724 1569COMMENT: (KB)
1570TYPE: kb_size_t
6b53c392 1571DEFAULT: 16 KB
0153d498 1572LOC: Config.quickAbort.max
1b2f5c2f 1573DOC_NONE
1574
1575NAME: quick_abort_pct
1576COMMENT: (percent)
1577TYPE: int
c68e9c6b 1578DEFAULT: 95
1b2f5c2f 1579LOC: Config.quickAbort.pct
934b03fc 1580DOC_START
9923e308 1581 The cache by default continues downloading aborted requests
7a61d612 1582 which are almost completed (less than 16 KB remaining). This
1583 may be undesirable on slow (e.g. SLIP) links and/or very busy
1584 caches. Impatient users may tie up file descriptors and
1585 bandwidth by repeatedly requesting and immediately aborting
1586 downloads.
934b03fc 1587
1588 When the user aborts a request, Squid will check the
1589 quick_abort values to the amount of data transfered until
1590 then.
1591
cf5cc17e 1592 If the transfer has less than 'quick_abort_min' KB remaining,
2bb84b43 1593 it will finish the retrieval.
934b03fc 1594
cf5cc17e 1595 If the transfer has more than 'quick_abort_max' KB remaining,
1596 it will abort the retrieval.
934b03fc 1597
1b2f5c2f 1598 If more than 'quick_abort_pct' of the transfer has completed,
1599 it will finish the retrieval.
2bb84b43 1600
7a61d612 1601 If you do not want any retrieval to continue after the client
2bb84b43 1602 has aborted, set both 'quick_abort_min' and 'quick_abort_max'
1603 to '0 KB'.
1604
9923e308 1605 If you want retrievals to always continue if they are being
2bb84b43 1606 cached then set 'quick_abort_min' to '-1 KB'.
934b03fc 1607DOC_END
1608
1609
1610NAME: negative_ttl
bc0eb004 1611COMMENT: time-units
f1dc9b30 1612TYPE: time_t
934b03fc 1613LOC: Config.negativeTtl
9e975e4e 1614DEFAULT: 5 minutes
934b03fc 1615DOC_START
1616 Time-to-Live (TTL) for failed requests. Certain types of
1617 failures (such as "connection refused" and "404 Not Found") are
cf5cc17e 1618 negatively-cached for a configurable amount of time. The
1619 default is 5 minutes. Note that this is different from
1620 negative caching of DNS lookups.
934b03fc 1621DOC_END
1622
1623
1624NAME: positive_dns_ttl
bc0eb004 1625COMMENT: time-units
f1dc9b30 1626TYPE: time_t
934b03fc 1627LOC: Config.positiveDnsTtl
9e975e4e 1628DEFAULT: 6 hours
934b03fc 1629DOC_START
1630 Time-to-Live (TTL) for positive caching of successful DNS lookups.
1631 Default is 6 hours (360 minutes). If you want to minimize the
1632 use of Squid's ipcache, set this to 1, not 0.
934b03fc 1633DOC_END
1634
1635
1636NAME: negative_dns_ttl
bc0eb004 1637COMMENT: time-units
f1dc9b30 1638TYPE: time_t
934b03fc 1639LOC: Config.negativeDnsTtl
9e975e4e 1640DEFAULT: 5 minutes
934b03fc 1641DOC_START
1642 Time-to-Live (TTL) for negative caching of failed DNS lookups.
934b03fc 1643DOC_END
1644
c68e9c6b 1645NAME: range_offset_limit
1646COMMENT: (bytes)
1647TYPE: b_size_t
1648LOC: Config.rangeOffsetLimit
1649DEFAULT: 0 KB
1650DOC_START
1651 Sets a upper limit on how far into the the file a Range request
1652 may be to cause Squid to prefetch the whole file. If beyond this
1653 limit then Squid forwards the Range request as it is and the result
1654 is NOT cached.
1655
1656 This is to stop a far ahead range request (lets say start at 17MB)
1657 from making Squid fetch the whole object up to that point before
1658 sending anything to the client.
1659
1660 A value of -1 causes Squid to always fetch the object from the
1661 beginning so that it may cache the result. (2.0 style)
1662
6e7dbcbd 1663 A value of 0 causes Squid to never fetch more than the
c68e9c6b 1664 client requested. (default)
c68e9c6b 1665DOC_END
1666
1667
0f74202c 1668COMMENT_START
3a278cb8 1669 TIMEOUTS
1670 -----------------------------------------------------------------------------
0f74202c 1671COMMENT_END
934b03fc 1672
1673NAME: connect_timeout
bc0eb004 1674COMMENT: time-units
f1dc9b30 1675TYPE: time_t
934b03fc 1676LOC: Config.Timeout.connect
9e975e4e 1677DEFAULT: 2 minutes
934b03fc 1678DOC_START
1679 Some systems (notably Linux) can not be relied upon to properly
cf5cc17e 1680 time out connect(2) requests. Therefore the Squid process
934b03fc 1681 enforces its own timeout on server connections. This parameter
1682 specifies how long to wait for the connect to complete. The
1683 default is two minutes (120 seconds).
934b03fc 1684DOC_END
1685
3f62decd 1686NAME: peer_connect_timeout
1687COMMENT: time-units
1688TYPE: time_t
1689LOC: Config.Timeout.peer_connect
1690DEFAULT: 30 seconds
1691DOC_START
1692 This parameter specifies how long to wait for a pending TCP
1693 connection to a peer cache. The default is 30 seconds. You
1694 may also set different timeout values for individual neighbors
1695 with the 'connect-timeout' option on a 'cache_peer' line.
9bc73deb 1696DOC_END
3f62decd 1697
23d92c64 1698NAME: siteselect_timeout
1699COMMENT: time-units
1700TYPE: time_t
1701LOC: Config.Timeout.siteSelect
1702DEFAULT: 4 seconds
1703DOC_START
1704 For URN to multiple URL's URL selection
23d92c64 1705DOC_END
934b03fc 1706
1707NAME: read_timeout
bc0eb004 1708COMMENT: time-units
f1dc9b30 1709TYPE: time_t
934b03fc 1710LOC: Config.Timeout.read
9e975e4e 1711DEFAULT: 15 minutes
934b03fc 1712DOC_START
1713 The read_timeout is applied on server-side connections. After
1714 each successful read(), the timeout will be extended by this
1715 amount. If no data is read again after this amount of time,
1716 the request is aborted and logged with ERR_READ_TIMEOUT. The
1717 default is 15 minutes.
934b03fc 1718DOC_END
1719
1720
934b03fc 1721NAME: request_timeout
f1dc9b30 1722TYPE: time_t
934b03fc 1723LOC: Config.Timeout.request
049d61bb 1724DEFAULT: 5 minutes
1725DOC_START
1726 How long to wait for an HTTP request after initial
1727 connection establishment.
1728DOC_END
1729
1730
1731NAME: persistent_request_timeout
1732TYPE: time_t
1733LOC: Config.Timeout.persistent_request
1734DEFAULT: 1 minute
934b03fc 1735DOC_START
049d61bb 1736 How long to wait for the next HTTP request on a persistent
1737 connection after the previous request completes.
934b03fc 1738DOC_END
1739
1740
1741NAME: client_lifetime
bc0eb004 1742COMMENT: time-units
f1dc9b30 1743TYPE: time_t
934b03fc 1744LOC: Config.Timeout.lifetime
9e975e4e 1745DEFAULT: 1 day
934b03fc 1746DOC_START
1747 The maximum amount of time that a client (browser) is allowed to
1748 remain connected to the cache process. This protects the Cache
efd900cb 1749 from having a lot of sockets (and hence file descriptors) tied up
934b03fc 1750 in a CLOSE_WAIT state from remote clients that go away without
1751 properly shutting down (either because of a network failure or
1752 because of a poor client implementation). The default is one
1753 day, 1440 minutes.
1754
1755 NOTE: The default value is intended to be much larger than any
1756 client would ever need to be connected to your cache. You
1757 should probably change client_lifetime only as a last resort.
1758 If you seem to have many client connections tying up
1759 filedescriptors, we recommend first tuning the read_timeout,
049d61bb 1760 request_timeout, persistent_request_timeout and quick_abort values.
934b03fc 1761DOC_END
1762
ea285003 1763NAME: half_closed_clients
1764TYPE: onoff
1765LOC: Config.onoff.half_closed_clients
1766DEFAULT: on
1767DOC_START
1768 Some clients may shutdown the sending side of their TCP
1769 connections, while leaving their receiving sides open. Sometimes,
1770 Squid can not tell the difference between a half-closed and a
1771 fully-closed TCP connection. By default, half-closed client
1772 connections are kept open until a read(2) or write(2) on the
1773 socket returns an error. Change this option to 'off' and Squid
1774 will immediately close client connections when read(2) returns
1775 "no more data to read."
ea285003 1776DOC_END
1777
603a02fd 1778NAME: pconn_timeout
1779TYPE: time_t
1780LOC: Config.Timeout.pconn
1781DEFAULT: 120 seconds
1782DOC_START
1783 Timeout for idle persistent connections to servers and other
1784 proxies.
603a02fd 1785DOC_END
1786
05832ae1 1787NAME: ident_timeout
1788TYPE: time_t
3898f57f 1789IFDEF: USE_IDENT
05832ae1 1790LOC: Config.Timeout.ident
1791DEFAULT: 10 seconds
1792DOC_START
c463eb5f 1793 Maximum time to wait for IDENT lookups to complete.
1794
1795 If this is too high, and you enabled IDENT lookups from untrusted
1796 users, then you might be susceptible to denial-of-service by having
1797 many ident requests going at once.
05832ae1 1798DOC_END
1799
934b03fc 1800
1801NAME: shutdown_lifetime
bc0eb004 1802COMMENT: time-units
f1dc9b30 1803TYPE: time_t
934b03fc 1804LOC: Config.shutdownLifetime
9e975e4e 1805DEFAULT: 30 seconds
934b03fc 1806DOC_START
1807 When SIGTERM or SIGHUP is received, the cache is put into
1808 "shutdown pending" mode until all active sockets are closed.
1809 This value is the lifetime to set for all open descriptors
1810 during shutdown mode. Any active clients after this many
1811 seconds will receive a 'timeout' message.
934b03fc 1812DOC_END
1813
0f74202c 1814COMMENT_START
3a278cb8 1815 ACCESS CONTROLS
1816 -----------------------------------------------------------------------------
0f74202c 1817COMMENT_END
934b03fc 1818
1819NAME: acl
1820TYPE: acl
f1dc9b30 1821LOC: Config.aclList
1822DEFAULT: none
934b03fc 1823DOC_START
1824 Defining an Access List
1825
1826 acl aclname acltype string1 ...
1827 acl aclname acltype "file" ...
1828
1829 when using "file", the file should contain one item per line
1830
fc659d9d 1831 acltype is one of the types described below
934b03fc 1832
edd80fbb 1833 By default, regular expressions are CASE-SENSITIVE. To make
1834 them case-insensitive, use the -i option.
1835
934b03fc 1836 acl aclname src ip-address/netmask ... (clients IP address)
1837 acl aclname src addr1-addr2/netmask ... (range of addresses)
1838 acl aclname dst ip-address/netmask ... (URL host's IP address)
ae2c08a2 1839 acl aclname myip ip-address/netmask ... (local socket IP address)
d0d41f07 1840
efd900cb 1841 acl aclname srcdomain .foo.com ... # reverse lookup, client IP
1842 acl aclname dstdomain .foo.com ... # Destination server from URL
edd80fbb 1843 acl aclname srcdom_regex [-i] xxx ... # regex matching client name
1844 acl aclname dstdom_regex [-i] xxx ... # regex matching server
d0d41f07 1845 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
1846 # based URL is used. The name "none" is used if the reverse lookup
1847 # fails.
1848
934b03fc 1849 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
1850 day-abbrevs:
1851 S - Sunday
1852 M - Monday
1853 T - Tuesday
1854 W - Wednesday
1855 H - Thursday
1856 F - Friday
1857 A - Saturday
1858 h1:m1 must be less than h2:m2
edd80fbb 1859 acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
1860 acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path
934b03fc 1861 acl aclname port 80 70 21 ...
ec5bba4d 1862 acl aclname port 0-1024 ... # ranges allowed
7e3ce7b9 1863 acl aclname myport 3128 ... # (local socket TCP port)
934b03fc 1864 acl aclname proto HTTP FTP ...
1865 acl aclname method GET POST ...
fc659d9d 1866 acl aclname browser [-i] regexp ...
edd80fbb 1867 # pattern match on User-Agent header
fc659d9d 1868 acl aclname referer_regex [-i] regexp ...
1869 # pattern match on Referer header
1870 # Referer is highly unreliable, so use with care
c68e9c6b 1871 acl aclname ident username ...
145cf928 1872 acl aclname ident_regex [-i] pattern ...
c68e9c6b 1873 # string match on ident output.
1874 # use REQUIRED to accept any non-null ident.
96d88dcb 1875 acl aclname src_as number ...
6468fe10 1876 acl aclname dst_as number ...
1877 # Except for access control, AS numbers can be used for
96d88dcb 1878 # routing of requests to specific caches. Here's an
1879 # example for routing all requests for AS#1241 and only
6468fe10 1880 # those to mycache.mydomain.net:
1881 # acl asexample dst_as 1241
d87ebd78 1882 # cache_peer_access mycache.mydomain.net allow asexample
1883 # cache_peer_access mycache_mydomain.net deny all
6468fe10 1884
c68e9c6b 1885 acl aclname proxy_auth username ...
145cf928 1886 acl aclname proxy_auth_regex [-i] pattern ...
c68e9c6b 1887 # list of valid usernames
1888 # use REQUIRED to accept any valid username.
73e67ee0 1889 #
1890 # NOTE: when a Proxy-Authentication header is sent but it is not
1891 # needed during ACL checking the username is NOT logged
1892 # in access.log.
c68e9c6b 1893 #
1894 # NOTE: proxy_auth requires a EXTERNAL authentication program
1895 # to check username/password combinations (see
1896 # authenticate_program).
1897 #
1898 # WARNING: proxy_auth can't be used in a transparent proxy. It
1899 # collides with any authentication done by origin servers. It may
1900 # seem like it works at first, but it doesn't.
934b03fc 1901
dba79ac5 1902 acl aclname snmp_community string ...
08f6b5e0 1903 # A community string to limit access to your SNMP Agent
dba79ac5 1904 # Example:
96d88dcb 1905 #
dba79ac5 1906 # acl snmppublic snmp_community public
1907
9bc73deb 1908 acl aclname maxconn number
1909 # This will be matched when the client's IP address has
1910 # more than <number> HTTP connections established.
1911
60d096f4 1912 acl aclname max_user_ip
96d88dcb 1913 # This will be matched when the user attempts to log in from more
60d096f4 1914 # than <number> different ip address's. The authenticate_ip_ttl
1915 # parameter controls the timeout on the ip entries.
96d88dcb 1916 # NOTE: in acceleration mode, clients may appear to come from
60d096f4 1917 # multiple address's if they are going through proxy farms,
1918 # so a limit of 1 may cause user problems.
1919
1920
fb8ee28e 1921 acl aclname req_mime_type mime-type1 ...
ba2b31a8 1922 # regex match agains the mime type of the request generated
1923 # by the client. Can be used to detect file upload or some
1924 # types HTTP tunelling requests.
1925 # NOTE: This does NOT match the reply. You cannot use this
1926 # to match the returned file type.
c68e9c6b 1927
fb8ee28e 1928 acl aclname rep_mime_type mime-type1 ...
c4ab8329 1929 # regex match against the mime type of the reply recieved by
1930 # squid. Can be used to detect file download or some
1931 # types HTTP tunelling requests.
1932 # NOTE: This has no effect in http_access rules. It only has
1933 # effect in rules that affect the reply data stream such as
1934 # http_reply_access.
1935
1936
c68e9c6b 1937Examples:
1938acl myexample dst_as 1241
aa6956a5 1939acl password proxy_auth REQUIRED
ba2b31a8 1940acl fileupload req_mime_type -i ^multipart/form-data$
c4ab8329 1941acl javascript rep_mime_type -i ^application/x-javascript$
c68e9c6b 1942
c68e9c6b 1943NOCOMMENT_START
6b53c392 1944#Recommended minimum configuration:
c68e9c6b 1945acl all src 0.0.0.0/0.0.0.0
934b03fc 1946acl manager proto cache_object
1947acl localhost src 127.0.0.1/255.255.255.255
4cc6eb12 1948acl to_localhost dst 127.0.0.0/8
934b03fc 1949acl SSL_ports port 443 563
6b53c392 1950acl Safe_ports port 80 # http
1951acl Safe_ports port 21 # ftp
1952acl Safe_ports port 443 563 # https, snews
1953acl Safe_ports port 70 # gopher
1954acl Safe_ports port 210 # wais
1955acl Safe_ports port 1025-65535 # unregistered ports
9bc73deb 1956acl Safe_ports port 280 # http-mgmt
1957acl Safe_ports port 488 # gss-http
1958acl Safe_ports port 591 # filemaker
1959acl Safe_ports port 777 # multiling http
934b03fc 1960acl CONNECT method CONNECT
c68e9c6b 1961NOCOMMENT_END
934b03fc 1962DOC_END
1963
1964NAME: http_access
1965TYPE: acl_access
f1dc9b30 1966LOC: Config.accessList.http
1967DEFAULT: none
da7f354f 1968DEFAULT_IF_NONE: deny all
934b03fc 1969DOC_START
1970 Allowing or Denying access based on defined access lists
1971
1972 Access to the HTTP port:
1973 http_access allow|deny [!]aclname ...
1974
934b03fc 1975 NOTE on default values:
1976
6b53c392 1977 If there are no "access" lines present, the default is to deny
934b03fc 1978 the request.
1979
1980 If none of the "access" lines cause a match, the default is the
1981 opposite of the last line in the list. If the last line was
1982 deny, then the default is allow. Conversely, if the last line
1983 is allow, the default will be deny. For these reasons, it is a
1984 good idea to have an "deny all" or "allow all" entry at the end
1985 of your access lists to avoid potential confusion.
1986
c68e9c6b 1987NOCOMMENT_START
6b53c392 1988#Recommended minimum configuration:
1989#
1990# Only allow cachemgr access from localhost
c68e9c6b 1991http_access allow manager localhost
1992http_access deny manager
6b53c392 1993# Deny requests to unknown ports
499558df 1994http_access deny !Safe_ports
6b53c392 1995# Deny CONNECT to other than SSL ports
c68e9c6b 1996http_access deny CONNECT !SSL_ports
1997#
4cc6eb12 1998# We strongly recommend to uncomment the following to protect innocent
1999# web applications running on the proxy server who think that the only
2000# one who can access services on "localhost" is a local user
2001#http_access deny to_localhost
c68e9c6b 2002#
4cc6eb12 2003# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
2004
6b53c392 2005# And finally deny all other access to this proxy
c68e9c6b 2006http_access deny all
2007NOCOMMENT_END
934b03fc 2008DOC_END
2009
c4ab8329 2010NAME: http_reply_access
2011TYPE: acl_access
2012LOC: Config.accessList.reply
2013DEFAULT: none
2014DEFAULT_IF_NONE: allow all
2015DOC_START
2016 Allow replies to client requests. This is complementary to http_access.
2017
2018 http_reply_access allow|deny [!] aclname ...
2019
96d88dcb 2020 NOTE: if there are no access lines present, the default is to allow
c4ab8329 2021 all replies
2022
2023 If none of the access lines cause a match, then the opposite of the
2024 last line will apply. Thus it is good practice to end the rules
2025 with an "allow all" or "deny all" entry.
2026
2027NOCOMMENT_START
2028#Recommended minimum configuration:
2029#
2030# Insert your own rules here.
2031#
2032#
2033# and finally allow by default
2034http_reply_access allow all
2035NOCOMMENT_END
2036DOC_END
2037
934b03fc 2038
2039NAME: icp_access
2040TYPE: acl_access
f1dc9b30 2041LOC: Config.accessList.icp
2042DEFAULT: none
da7f354f 2043DEFAULT_IF_NONE: deny all
934b03fc 2044DOC_START
6b53c392 2045 Allowing or Denying access to the ICP port based on defined
2046 access lists
2047
2048 icp_access allow|deny [!]aclname ...
2049
2050 See http_access for details
934b03fc 2051
c68e9c6b 2052NOCOMMENT_START
6b53c392 2053#Allow ICP queries from eveyone
c68e9c6b 2054icp_access allow all
2055NOCOMMENT_END
934b03fc 2056DOC_END
2057
2058
2059NAME: miss_access
2060TYPE: acl_access
f1dc9b30 2061LOC: Config.accessList.miss
2062DEFAULT: none
934b03fc 2063DOC_START
2064 Use to force your neighbors to use you as a sibling instead of
2065 a parent. For example:
2066
2067 acl localclients src 172.16.0.0/16
2068 miss_access allow localclients
2069 miss_access deny !localclients
2070
2071 This means that only your local clients are allowed to fetch
2072 MISSES and all other clients can only fetch HITS.
2073
2074 By default, allow all clients who passed the http_access rules
2075 to fetch MISSES from us.
6b53c392 2076
c68e9c6b 2077NOCOMMENT_START
6b53c392 2078#Default setting:
2079# miss_access allow all
c68e9c6b 2080NOCOMMENT_END
934b03fc 2081DOC_END
2082
2083
505e35db 2084NAME: cache_peer_access
2085TYPE: peer_access
f1dc9b30 2086DEFAULT: none
2087LOC: none
934b03fc 2088DOC_START
505e35db 2089 Similar to 'cache_peer_domain' but provides more flexibility by
2090 using ACL elements.
934b03fc 2091
505e35db 2092 cache_peer_access cache-host allow|deny [!]aclname ...
934b03fc 2093
505e35db 2094 The syntax is identical to 'http_access' and the other lists of
2095 ACL elements. See the comments for 'http_access' below, or
2b6662ba 2096 the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html).
934b03fc 2097DOC_END
2098
ec603b25 2099NAME: ident_lookup_access
2100TYPE: acl_access
2101IFDEF: USE_IDENT
2102DEFAULT: none
2103DEFAULT_IF_NONE: deny all
2104LOC: Config.accessList.identLookup
2105DOC_START
2106 A list of ACL elements which, if matched, cause an ident
2107 (RFC 931) lookup to be performed for this request. For
2108 example, you might choose to always perform ident lookups
2109 for your main multi-user Unix boxes, but not for your Macs
2110 and PCs. By default, ident lookups are not performed for
2111 any requests.
2112
2113 To enable ident lookups for specific client addresses, you
2114 can follow this example:
96d88dcb 2115
ec603b25 2116 acl ident_aware_hosts src 198.168.1.0/255.255.255.0
2117 ident_lookup_access allow ident_aware_hosts
2118 ident_lookup_access deny all
2119
c463eb5f 2120 Only src type ACL checks are fully supported. A src_domain
2121 ACL might work at times, but it will not always provide
2122 the correct result.
ec603b25 2123DOC_END
2124
d6827718 2125NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoin_dscp
2126TYPE: acl_tos
2127DEFAULT: none
2128LOC: Config.accessList.outgoing_tos
2129DOC_START
2130 Allows you to select a TOS/Diffserv value to mark outgoing
2131 connections with, based on the username or source address
2132 making the request.
2133
2134 tcp_outgoing_tos ds-field [!]aclname ...
2135
2136 Example where normal_service_net uses the TOS value 0x00
2137 and normal_service_net uses 0x20
2138
2139 acl normal_service_net src 10.0.0.0/255.255.255.0
2140 acl good_service_net src 10.0.1.0/255.255.255.0
2141 tcp_outgoing_tos 0x00 normal_service_net 0x00
2142 tcp_outgoing_tos 0x20 good_service_net
2143
2144 TOS/DSCP values really only have local significance - so you should
2145 know what you're specifying. For more, see RFC 2474
2146
2147 The TOS/DSCP byte must be exactly that - a byte, value 0 - 255, or
2148 "default" to use whatever default your host has.
2149
2150 Processing proceeds in the order specified, and stops at first fully
2151 matching line.
2152DOC_END
2153
2154NAME: tcp_outgoing_address
2155TYPE: acl_address
2156DEFAULT: none
2157LOC: Config.accessList.outgoing_address
2158DOC_START
2159 Allows you to map requests to different outgoing IP addresses
2160 based on the username or sourceaddress of the user making
2161 the request.
2162
2163 tcp_outgoing_address ipaddr [[!]aclname] ...
2164
2165 Example where requests from 10.0.0.0/24 will be forwareded
2166 with source address 10.1.0.1, 10.0.2.0/24 forwarded with
2167 source address 10.1.0.2 and the rest will be forwarded with
2168 source address 10.1.0.3.
2169
2170 acl normal_service_net src 10.0.0.0/255.255.255.0
2171 acl good_service_net src 10.0.1.0/255.255.255.0
2172 tcp_outgoing_address 10.0.0.1 normal_service_net
2173 tcp_outgoing_address 10.0.0.2 good_service_net
2174 tcp_outgoing_address 10.0.0.3
2175
2176 Processing proceeds in the order specified, and stops at first fully
2177 matching line.
2178DOC_END
ec603b25 2179
a560ee93 2180NAME: reply_body_max_size
2181COMMENT: bytes allow|deny acl acl...
2182TYPE: body_size_t
2183DEFAULT: none
2184DEFAULT_IF_NONE: 0 allow all
2185LOC: Config.ReplyBodySize
2186DOC_START
2187 This option specifies the maximum size of a reply body. It
2188 can be used to prevent users from downloading very large files,
2189 such as MP3's and movies. When the reply headers are recieved,
2190 the reply_body_max_size lines are processed, and the first line with
2191 a result of "allow" is used as the maximum body size for this reply.
2192 This size is then checked twice. First when we get the reply headers,
2193 we check the content-length value. If the content length value exists
2194 and is larger than the allowed size, the request is denied and the
2195 user receives an error message that says "the request or reply
2196 is too large." If there is no content-length, and the reply
2197 size exceeds this limit, the client's connection is just closed
2198 and they will receive a partial reply.
2199
2200 WARNING: downstream caches probably can not detect a partial reply
2201 if there is no content-length header, so they will cache
2202 partial responses and give them out as hits. You should NOT
2203 use this option if you have downstream caches.
2204
96d88dcb 2205 WARNING: A maximum size larger than the size of squid's error messages
a560ee93 2206 will cause an infinite loop and crash squid. Ensure that the smallest
2207 non-zero value you use is greater that the maximum header size plus
2208 the size of your largest error page.
2209
2210 If you set this parameter to zero (the default), there will be
2211 no limit imposed.
2212DOC_END
2213
0f74202c 2214COMMENT_START
3a278cb8 2215 ADMINISTRATIVE PARAMETERS
2216 -----------------------------------------------------------------------------
0f74202c 2217COMMENT_END
934b03fc 2218
2219NAME: cache_mgr
2220TYPE: string
2221DEFAULT: webmaster
2222LOC: Config.adminEmail
2223DOC_START
2224 Email-address of local cache manager who will receive
2225 mail if the cache dies. The default is "webmaster."
934b03fc 2226DOC_END
2227
2228
2229NAME: cache_effective_user
0153d498 2230TYPE: string
a95856a0 2231DEFAULT: nobody
0153d498 2232LOC: Config.effectiveUser
2233DOC_NONE
2234
2235NAME: cache_effective_group
2236TYPE: string
8749fa47 2237DEFAULT: none
0153d498 2238LOC: Config.effectiveGroup
934b03fc 2239DOC_START
5a3f6538 2240
934b03fc 2241 If the cache is run as root, it will change its effective/real
5a3f6538 2242 UID/GID to the UID/GID specified below. The default is to
8749fa47 2243 change to UID to nobody and GID to the default group of nobody.
5a3f6538 2244
2245 If Squid is not started as root, the default is to keep the
8749fa47 2246 current UID/GID, and only the GID can be changed to any of
2247 the groups the user starting Squid is member of. Note that if
2248 Squid is not started as root then you cannot set http_port to
2249 a value lower than 1024.
934b03fc 2250DOC_END
2251
2252
2253NAME: visible_hostname
2254TYPE: string
2255LOC: Config.visibleHostname
f1dc9b30 2256DEFAULT: none
934b03fc 2257DOC_START
2258 If you want to present a special hostname in error messages, etc,
2259 then define this. Otherwise, the return value of gethostname()
cf5cc17e 2260 will be used. If you have multiple caches in a cluster and
2261 get errors about IP-forwarding you must set them to have individual
2262 names with this setting.
934b03fc 2263DOC_END
2264
98829f69 2265
2266NAME: unique_hostname
2267TYPE: string
2268LOC: Config.uniqueHostname
2269DEFAULT: none
2270DOC_START
2271 If you want to have multiple machines with the same
2272 'visible_hostname' then you must give each machine a different
2273 'unique_hostname' so that forwarding loops can be detected.
98829f69 2274DOC_END
2275
1f38f50a 2276
2277NAME: hostname_aliases
2278TYPE: wordlist
2279LOC: Config.hostnameAliases
2280DEFAULT: none
2281DOC_START
2282 A list of other DNS names that your cache has.
2283DOC_END
2284
0f74202c 2285COMMENT_START
3a278cb8 2286 OPTIONS FOR THE CACHE REGISTRATION SERVICE
2287 -----------------------------------------------------------------------------
934b03fc 2288
3a278cb8 2289 This section contains parameters for the (optional) cache
2290 announcement service. This service is provided to help
2291 cache administrators locate one another in order to join or
2292 create cache hierarchies.
934b03fc 2293
3a278cb8 2294 An 'announcement' message is sent (via UDP) to the registration
efd900cb 2295 service by Squid. By default, the announcement message is NOT
d2d631ce 2296 SENT unless you enable it with 'announce_period' below.
3a278cb8 2297
2298 The announcement message includes your hostname, plus the
2299 following information from this configuration file:
934b03fc 2300
3a278cb8 2301 http_port
2302 icp_port
2303 cache_mgr
2304
2305 All current information is processed regularly and made
2b6662ba 2306 available on the Web at http://www.ircache.net/Cache/Tracker/.
0f74202c 2307COMMENT_END
934b03fc 2308
f1dc9b30 2309NAME: announce_period
2310TYPE: time_t
2311LOC: Config.Announce.period
d2d631ce 2312DEFAULT: 0
934b03fc 2313DOC_START
d2d631ce 2314 This is how frequently to send cache announcements. The
2315 default is `0' which disables sending the announcement
2316 messages.
934b03fc 2317
cd748f27 2318 To enable announcing your cache, just uncomment the line
2319 below.
2320
6b53c392 2321NOCOMMENT_START
2322#To enable announcing your cache, just uncomment the line below.
2323#announce_period 1 day
2324NOCOMMENT_END
934b03fc 2325DOC_END
2326
2327
f1dc9b30 2328NAME: announce_host
2329TYPE: string
61735fcf 2330DEFAULT: tracker.ircache.net
f1dc9b30 2331LOC: Config.Announce.host
2332DOC_NONE
2333
cf5cc17e 2334NAME: announce_file
2335TYPE: string
61735fcf 2336DEFAULT: none
cf5cc17e 2337LOC: Config.Announce.file
2338DOC_NONE
2339
f1dc9b30 2340NAME: announce_port
2341TYPE: ushort
2342DEFAULT: 3131
2343LOC: Config.Announce.port
934b03fc 2344DOC_START
d2d631ce 2345 announce_host and announce_port set the hostname and port
2346 number where the registration message will be sent.
934b03fc 2347
d2d631ce 2348 Hostname will default to 'tracker.ircache.net' and port will
2349 default default to 3131. If the 'filename' argument is given,
2350 the contents of that file will be included in the announce
2351 message.
934b03fc 2352DOC_END
2353
0f74202c 2354COMMENT_START
3a278cb8 2355 HTTPD-ACCELERATOR OPTIONS
2356 -----------------------------------------------------------------------------
0f74202c 2357COMMENT_END
934b03fc 2358
f1dc9b30 2359NAME: httpd_accel_host
2360TYPE: string
2361LOC: Config.Accel.host
2362DEFAULT: none
2363DOC_NONE
2364
2365NAME: httpd_accel_port
2366TYPE: ushort
2367LOC: Config.Accel.port
5b68a4d3 2368DEFAULT: 80
934b03fc 2369DOC_START
cf5cc17e 2370 If you want to run Squid as an httpd accelerator, define the
934b03fc 2371 host name and port number where the real HTTP server is.
2372
2373 If you want virtual host support then specify the hostname
2374 as "virtual".
2375
42b51993 2376 If you want virtual port support then specify the port as "0".
2377
839491ad 2378 NOTE: enabling httpd_accel_host disables proxy-caching and
2379 ICP. If you want these features enabled also, then set
2380 the 'httpd_accel_with_proxy' option.
934b03fc 2381DOC_END
2382
13c7936a 2383NAME: httpd_accel_single_host
2384COMMENT: on|off
2385TYPE: onoff
2386LOC: Config.Accel.single_host
b0a9b5f2 2387DEFAULT: off
13c7936a 2388DOC_START
2389 If you are running Squid as a accelerator and have a single backend
2390 server then set this to on. This causes Squid to forward the request
2391 to this server irregardles of what any redirectors or Host headers
2392 says.
2393
b0a9b5f2 2394 Leave this at off if you have multiple backend servers, and use a
2395 redirector (or host table or private DNS) to map the requests to the
13c7936a 2396 appropriate backend servers. Note that the mapping needs to be a
2397 1-1 mapping between requested and backend (from redirector) domain
2398 names or caching will fail, as cacing is performed using the
2399 URL returned from the redirector.
2400
2401 See also redirect_rewrites_host_header.
2402DOC_END
934b03fc 2403
2404NAME: httpd_accel_with_proxy
2405COMMENT: on|off
2406TYPE: onoff
f1dc9b30 2407DEFAULT: off
17a0a4ee 2408LOC: Config.onoff.accel_with_proxy
934b03fc 2409DOC_START
cf5cc17e 2410 If you want to use Squid as both a local httpd accelerator
6b53c392 2411 and as a proxy, change this to 'on'. Note however that your
2412 proxy users may have trouble to reach the accelerated domains
2413 unless their browsers are configured not to use this proxy for
2414 those domains (for example via the no_proxy browser configuration
2415 setting)
934b03fc 2416DOC_END
2417
934b03fc 2418NAME: httpd_accel_uses_host_header
2419COMMENT: on|off
2420TYPE: onoff
f1dc9b30 2421DEFAULT: off
934b03fc 2422LOC: opt_accel_uses_host
2423DOC_START
2424 HTTP/1.1 requests include a Host: header which is basically the
2425 hostname from the URL. Squid can be an accelerator for
2426 different HTTP servers by looking at this header. However,
2427 Squid does NOT check the value of the Host header, so it opens
2428 a big security hole. We recommend that this option remain
2429 disabled unless you are sure of what you are doing.
2430
04f6f348 2431 However, you will need to enable this option if you run Squid
2432 as a transparent proxy. Otherwise, virtual servers which
2433 require the Host: header will not be properly cached.
934b03fc 2434DOC_END
2435
0f74202c 2436COMMENT_START
3a278cb8 2437 MISCELLANEOUS
2438 -----------------------------------------------------------------------------
0f74202c 2439COMMENT_END
934b03fc 2440
2441NAME: dns_testnames
2442TYPE: wordlist
2443LOC: Config.dns_testname_list
f1dc9b30 2444DEFAULT: none
6b53c392 2445DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com
934b03fc 2446DOC_START
2447 The DNS tests exit as soon as the first site is successfully looked up
2448
6b53c392 2449 This test can be disabled with the -D command line option.
934b03fc 2450DOC_END
2451
2452
2453NAME: logfile_rotate
2454TYPE: int
2455DEFAULT: 10
2456LOC: Config.Log.rotateNumber
2457DOC_START
5a3f6538 2458 Specifies the number of logfile rotations to make when you
2459 type 'squid -k rotate'. The default is 10, which will rotate
cf5cc17e 2460 with extensions 0 through 9. Setting logfile_rotate to 0 will
934b03fc 2461 disable the rotation, but the logfiles are still closed and
cf5cc17e 2462 re-opened. This will enable you to rename the logfiles
5a3f6538 2463 yourself just before sending the rotate signal.
2464
2465 Note, the 'squid -k rotate' command normally sends a USR1
2466 signal to the running squid process. In certain situations
2467 (e.g. on Linux with Async I/O), USR1 is used for other
2468 purposes, so -k rotate uses another signal. It is best to get
2469 in the habit of using 'squid -k rotate' instead of 'kill -USR1
2470 <pid>'.
934b03fc 2471DOC_END
2472
2473
2474NAME: append_domain
f1dc9b30 2475TYPE: string
2476LOC: Config.appendDomain
2477DEFAULT: none
934b03fc 2478DOC_START
cf5cc17e 2479 Appends local domain name to hostnames without any dots in
2480 them. append_domain must begin with a period.
934b03fc 2481
cd98395a 2482 Be warned that there today is Internet names with no dots in
2483 them using only top-domain names, so setting this may
2484 cause some Internet sites to become unavailable.
2485
6b53c392 2486Example:
2487 append_domain .yourdomain.com
934b03fc 2488DOC_END
2489
2490
2491NAME: tcp_recv_bufsize
89de058c 2492COMMENT: (bytes)
1b635117 2493TYPE: b_size_t
89de058c 2494DEFAULT: 0 bytes
934b03fc 2495LOC: Config.tcpRcvBufsz
2496DOC_START
2497 Size of receive buffer to set for TCP sockets. Probably just
2498 as easy to change your kernel's default. Set to zero to use
2499 the default buffer size.
934b03fc 2500DOC_END
2501
934b03fc 2502NAME: err_html_text
f1dc9b30 2503TYPE: eol
2504LOC: Config.errHtmlText
2505DEFAULT: none
934b03fc 2506DOC_START
2507 HTML text to include in error messages. Make this a "mailto"
2508 URL to your admin address, or maybe just a link to your
2509 organizations Web page.
2510
ab1e6b8a 2511 To include this in your error messages, you must rewrite
2512 the error template files (found in the "errors" directory).
2513 Wherever you want the 'err_html_text' line to appear,
2514 insert a %L tag in the error template file.
934b03fc 2515DOC_END
2516
2517
2518NAME: deny_info
2519TYPE: denyinfo
2520LOC: Config.denyInfoList
f1dc9b30 2521DEFAULT: none
934b03fc 2522DOC_START
02922e76 2523 Usage: deny_info err_page_name acl
2524 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
934b03fc 2525
02922e76 2526 This can be used to return a ERR_ page for requests which
934b03fc 2527 do not pass the 'http_access' rules. A single ACL will cause
2528 the http_access check to fail. If a 'deny_info' line exists
02922e76 2529 for that ACL then Squid returns a corresponding error page.
cf5cc17e 2530
02922e76 2531 You may use ERR_ pages that come with Squid or create your own pages
2532 and put them into the configured errors/ directory.
934b03fc 2533DOC_END
2534
934b03fc 2535NAME: memory_pools
2536COMMENT: on|off
2537TYPE: onoff
f1dc9b30 2538DEFAULT: on
3f6c0fb2 2539LOC: Config.onoff.mem_pools
934b03fc 2540DOC_START
2541 If set, Squid will keep pools of allocated (but unused) memory
2542 available for future use. If memory is a premium on your
96d88dcb 2543 system and you believe your malloc library outperforms Squid
d0d41f07 2544 routines, disable this.
934b03fc 2545DOC_END
2546
7021844c 2547NAME: memory_pools_limit
2548COMMENT: (bytes)
2549TYPE: b_size_t
2550DEFAULT: none
f12c295b 2551LOC: Config.MemPools.limit
7021844c 2552DOC_START
f12c295b 2553 Used only with memory_pools on:
2554 memory_pools_limit 50 MB
7021844c 2555
f12c295b 2556 If set to a non-zero value, Squid will keep at most the specified
2557 limit of allocated (but unused) memory in memory pools. All free()
2558 requests that exceed this limit will be handled by your malloc
2559 library. Squid does not pre-allocate any memory, just safe-keeps
2560 objects that otherwise would be free()d. Thus, it is safe to set
7021844c 2561 memory_pools_limit to a reasonably high value even if your
f12c295b 2562 configuration will use less memory.
2563
2564 If not set (default) or set to zero, Squid will keep all memory it
2565 can. That is, there will be no limit on the total amount of memory
2566 used for safe-keeping.
7021844c 2567
2568 To disable memory allocation optimization, do not set
2569 memory_pools_limit to 0. Set memory_pools to "off" instead.
2570
f12c295b 2571 An overhead for maintaining memory pools is not taken into account
2572 when the limit is checked. This overhead is close to four bytes per
2573 object kept. However, pools may actually _save_ memory because of
2574 reduced memory thrashing in your malloc library.
7021844c 2575DOC_END
2576
934b03fc 2577NAME: forwarded_for
2578COMMENT: on|off
2579TYPE: onoff
f1dc9b30 2580DEFAULT: on
934b03fc 2581LOC: opt_forwarded_for
2582DOC_START
2583 If set, Squid will include your system's IP address or name
2584 in the HTTP requests it forwards. By default it looks like
2585 this:
2586
2587 X-Forwarded-For: 192.1.2.3
2588
2589 If you disable this, it will appear as
2590
2591 X-Forwarded-For: unknown
934b03fc 2592DOC_END
2593
2594NAME: log_icp_queries
2595COMMENT: on|off
2596TYPE: onoff
f1dc9b30 2597DEFAULT: on
17a0a4ee 2598LOC: Config.onoff.log_udp
934b03fc 2599DOC_START
cf5cc17e 2600 If set, ICP queries are logged to access.log. You may wish
2601 do disable this if your ICP load is VERY high to speed things
2602 up or to simplify log analysis.
934b03fc 2603DOC_END
2604
88738790 2605NAME: icp_hit_stale
2606COMMENT: on|off
2607TYPE: onoff
2608DEFAULT: off
17a0a4ee 2609LOC: Config.onoff.icp_hit_stale
88738790 2610DOC_START
2611 If you want to return ICP_HIT for stale cache objects, set this
2612 option to 'on'. If you have sibling relationships with caches
2613 in other administrative domains, this should be 'off'. If you only
2614 have sibling relationships with caches under your control, then
2615 it is probably okay to set this to 'on'.
0ccdf88e 2616 If set to 'on', then your siblings should use the option "allow-miss"
2617 on their cache_peer lines for connecting to you.
88738790 2618DOC_END
2619
934b03fc 2620
2621NAME: minimum_direct_hops
2622TYPE: int
2623DEFAULT: 4
2624LOC: Config.minDirectHops
2625DOC_START
2626 If using the ICMP pinging stuff, do direct fetches for sites
2627 which are no more than this many hops away.
934b03fc 2628DOC_END
2629
5f84d830 2630NAME: minimum_direct_rtt
2631TYPE: int
2632DEFAULT: 400
2633LOC: Config.minDirectRtt
2634DOC_START
2635 If using the ICMP pinging stuff, do direct fetches for sites
2636 which are no more than this many rtt milliseconds away.
2637DOC_END
934b03fc 2638
2639NAME: cachemgr_passwd
2640TYPE: cachemgrpasswd
86101e40 2641DEFAULT: none
f1dc9b30 2642LOC: Config.passwd_list
934b03fc 2643DOC_START
2644 Specify passwords for cachemgr operations.
2645
2646 Usage: cachemgr_passwd password action action ...
2647
064a674d 2648 Some valid actions are (see cache manager menu for a full list):
2649 5min
2650 60min
2651 asndb
2652 authenticator
2653 cbdata
2654 client_list
2655 comm_incoming
2656 config *
2657 counters
2658 delay
2659 digest_stats
cf5cc17e 2660 dns
064a674d 2661 events
cf5cc17e 2662 filedescriptors
064a674d 2663 fqdncache
2664 histograms
2665 http_headers
2666 info
2667 io
2668 ipcache
2669 mem
2670 menu
cf5cc17e 2671 netdb
064a674d 2672 non_peers
2673 objects
2674 pconn
2675 peer_select
2676 redirector
2677 refresh
934b03fc 2678 server_list
064a674d 2679 shutdown *
2680 store_digest
2681 storedir
2682 utilization
2683 via_headers
2684 vm_objects
934b03fc 2685
2686 * Indicates actions which will not be performed without a
2687 valid password, others can be performed if not listed here.
2688
2689 To disable an action, set the password to "disable".
2690 To allow performing an action without a password, set the
2691 password to "none".
2692
2693 Use the keyword "all" to set the same password for all actions.
2694
6b53c392 2695Example:
2696 cachemgr_passwd secret shutdown
2697 cachemgr_passwd lesssssssecret info stats/objects
2698 cachemgr_passwd disable all
934b03fc 2699DOC_END
2700
934b03fc 2701NAME: store_avg_object_size
86101e40 2702COMMENT: (kbytes)
2703TYPE: kb_size_t
2bf99296 2704DEFAULT: 13 KB
934b03fc 2705LOC: Config.Store.avgObjectSize
2706DOC_START
2707 Average object size, used to estimate number of objects your
2708 cache can hold. See doc/Release-Notes-1.1.txt. The default is
2bf99296 2709 13 KB.
934b03fc 2710DOC_END
2711
2712NAME: store_objects_per_bucket
2713TYPE: int
baf144ad 2714DEFAULT: 20
934b03fc 2715LOC: Config.Store.objectsPerBucket
2716DOC_START
2717 Target number of objects per bucket in the store hash table.
2718 Lowering this value increases the total number of buckets and
7e3ce7b9 2719 also the storage maintenance rate. The default is 50.
934b03fc 2720DOC_END
2721
934b03fc 2722NAME: client_db
2723COMMENT: on|off
2724TYPE: onoff
f1dc9b30 2725DEFAULT: on
17a0a4ee 2726LOC: Config.onoff.client_db
934b03fc 2727DOC_START
2728 If you want to disable collecting per-client statistics, then
2729 turn off client_db here.
934b03fc 2730DOC_END
2731
2732
2733NAME: netdb_low
2734TYPE: int
2735DEFAULT: 900
2736LOC: Config.Netdb.low
2737DOC_NONE
2738
2739NAME: netdb_high
2740TYPE: int
2741DEFAULT: 1000
2742LOC: Config.Netdb.high
2743DOC_START
2744 The low and high water marks for the ICMP measurement
2745 database. These are counts, not percents. The defaults are
2746 900 and 1000. When the high water mark is reached, database
2747 entries will be deleted until the low mark is reached.
934b03fc 2748DOC_END
2749
2750
2751NAME: netdb_ping_period
f1dc9b30 2752TYPE: time_t
934b03fc 2753LOC: Config.Netdb.period
9e975e4e 2754DEFAULT: 5 minutes
934b03fc 2755DOC_START
2756 The minimum period for measuring a site. There will be at
2757 least this much delay between successive pings to the same
2758 network. The default is five minutes.
934b03fc 2759DOC_END
2760
2761
2762NAME: query_icmp
2763COMMENT: on|off
2764TYPE: onoff
f1dc9b30 2765DEFAULT: off
17a0a4ee 2766LOC: Config.onoff.query_icmp
934b03fc 2767DOC_START
2768 If you want to ask your peers to include ICMP data in their ICP
2769 replies, enable this option.
2770
cf5cc17e 2771 If your peer has configured Squid (during compilation) with
2772 '--enable-icmp' then that peer will send ICMP pings to origin server
2773 sites of the URLs it receives. If you enable this option then the
2774 ICP replies from that peer will include the ICMP data (if available).
2775 Then, when choosing a parent cache, Squid will choose the parent with
934b03fc 2776 the minimal RTT to the origin server. When this happens, the
2777 hierarchy field of the access.log will be
2778 "CLOSEST_PARENT_MISS". This option is off by default.
934b03fc 2779DOC_END
2780
88500f96 2781NAME: test_reachability
194dd3b8 2782COMMENT: on|off
2783TYPE: onoff
2784DEFAULT: off
2785LOC: Config.onoff.test_reachability
2786DOC_START
2787 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
2788 instead of ICP_MISS if the target host is NOT in the ICMP
2789 database, or has a zero RTT.
194dd3b8 2790DOC_END
2791
78f1250a 2792NAME: buffered_logs
2793COMMENT: on|off
2794TYPE: onoff
2795DEFAULT: off
17a0a4ee 2796LOC: Config.onoff.buffered_logs
78f1250a 2797DOC_START
2798 Some log files (cache.log, useragent.log) are written with
2799 stdio functions, and as such they can be buffered or
cf5cc17e 2800 unbuffered. By default they will be unbuffered. Buffering them
2801 can speed up the writing slightly (though you are unlikely to
2802 need to worry).
78f1250a 2803DOC_END
2804
465dc415 2805NAME: reload_into_ims
9f60cfdf 2806IFDEF: HTTP_VIOLATIONS
465dc415 2807COMMENT: on|off
2808TYPE: onoff
2809DEFAULT: off
2810LOC: Config.onoff.reload_into_ims
2811DOC_START
2812 When you enable this option, client no-cache or ``reload''
2813 requests will be changed to If-Modified-Since requests.
2814 Doing this VIOLATES the HTTP standard. Enabling this
2815 feature could make you liable for problems which it
2816 causes.
cbe3a719 2817
2818 see also refresh_pattern for a more selective approach.
465dc415 2819DOC_END
2820
934b03fc 2821NAME: always_direct
2822TYPE: acl_access
2823LOC: Config.accessList.AlwaysDirect
f1dc9b30 2824DEFAULT: none
934b03fc 2825DOC_START
2a78fa67 2826 Usage: always_direct allow|deny [!]aclname ...
2827
2828 Here you can use ACL elements to specify requests which should
3445a83a 2829 ALWAYS be forwarded directly to origin servers. For example,
2830 to always directly forward requests for local servers use
2a78fa67 2831 something like:
2832
2833 acl local-servers dstdomain my.domain.net
2834 always_direct allow local-servers
2835
2836 To always forward FTP requests directly, use
2837
2838 acl FTP proto FTP
2839 always_direct allow FTP
2840
2841 NOTE: There is a similar, but opposite option named
2842 'never_direct'. You need to be aware that "always_direct deny
2843 foo" is NOT the same thing as "never_direct allow foo". You
2844 may need to use a deny rule to exclude a more-specific case of
2845 some other rule. Example:
2846
2847 acl local-external dstdomain external.foo.net
5d8ea528 2848 acl local-servers dstdomain .foo.net
2a78fa67 2849 always_direct deny local-external
2850 always_direct allow local-servers
3445a83a 2851
2852 This option replaces some v1.1 options such as local_domain
2853 and local_ip.
934b03fc 2854DOC_END
2855
2856NAME: never_direct
2857TYPE: acl_access
2858LOC: Config.accessList.NeverDirect
f1dc9b30 2859DEFAULT: none
934b03fc 2860DOC_START
d0d41f07 2861 Usage: never_direct allow|deny [!]aclname ...
2a78fa67 2862
2863 never_direct is the opposite of always_direct. Please read
2864 the description for always_direct if you have not already.
934b03fc 2865
2a78fa67 2866 With 'never_direct' you can use ACL elements to specify
2867 requests which should NEVER be forwarded directly to origin
3445a83a 2868 servers. For example, to force the use of a proxy for all
2869 requests, except those in your local domain use something like:
2a78fa67 2870
5d8ea528 2871 acl local-servers dstdomain .foo.net
2a78fa67 2872 acl all src 0.0.0.0/0.0.0.0
d0d41f07 2873 never_direct deny local-servers
2874 never_direct allow all
3445a83a 2875
2876 or if squid is inside a firewall and there is local intranet
2877 servers inside the firewall then use something like:
2878
5d8ea528 2879 acl local-intranet dstdomain .foo.net
3445a83a 2880 acl local-external dstdomain external.foo.net
2881 always_direct deny local-external
2882 always_direct allow local-intranet
2883 never_direct allow all
2884
2885 This option replaces some v1.1 options such as inside_firewall
2886 and firewall_ip.
2a78fa67 2887DOC_END
934b03fc 2888
6bccf575 2889NAME: header_access
2890TYPE: http_header_access[]
2891LOC: Config.header_access
97474590 2892DEFAULT: none
2893DOC_START
6bccf575 2894 Usage: header_access header_name allow|deny [!]aclname ...
96d88dcb 2895
6bccf575 2896 This option replaces the old 'anonymize_headers' and the
2897 older 'http_anonymizer' option with something that is much
2898 more configurable. This new method creates a list of ACLs
2899 for each header, allowing you very fine-tuned header
2900 mangling.
2901
2902 You can only specify known headers for the header name.
2903 Other headers are reclassified as 'Other'. You can also
2904 refer to all the headers with 'All'.
96d88dcb 2905
6bccf575 2906 For example, to achieve the same behaviour as the old
5bcad01d 2907 'http_anonymizer standard' option, you should use:
96d88dcb 2908
6bccf575 2909 header_access From deny all
2910 header_access Referer deny all
2911 header_access Server deny all
2912 header_access User-Agent deny all
2913 header_access WWW-Authenticate deny all
2914 header_access Link deny all
97474590 2915
5bcad01d 2916 Or, to reproduce the old 'http_anonymizer paranoid' feature
2917 you should use:
96d88dcb 2918
6bccf575 2919 header_access Allow allow all
2920 header_access Authorization allow all
2921 header_access Cache-Control allow all
2922 header_access Content-Encoding allow all
2923 header_access Content-Length allow all
2924 header_access Content-Type allow all
2925 header_access Date allow all
2926 header_access Expires allow all
2927 header_access Host allow all
2928 header_access If-Modified-Since allow all
2929 header_access Last-Modified allow all
2930 header_access Location allow all
2931 header_access Pragma allow all
2932 header_access Accept allow all
2933 header_access Charset allow all
2934 header_access Accept-Encoding allow all
2935 header_access Accept-Language allow all
2936 header_access Content-Language allow all
2937 header_access Mime-Version allow all
2938 header_access Retry-After allow all
2939 header_access Title allow all
2940 header_access Connection allow all
2941 header_access Proxy-Connection allow all
2942 header_access All deny all
96d88dcb 2943
5bcad01d 2944 By default, all headers are allowed (no anonymizing is
2945 performed).
97474590 2946DOC_END
2947
6bccf575 2948NAME: header_replace
2949TYPE: http_header_replace[]
2950LOC: Config.header_access
88738790 2951DEFAULT: none
2952DOC_START
6bccf575 2953 Usage: header_replace header_name message
2954 Example: header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit)
96d88dcb 2955
6bccf575 2956 This option allows you to change the contents of headers
2957 denied with header_access above, by replacing them with
2958 some fixed string. This replaces the old fake_user_agent
2959 option.
96d88dcb 2960
6bccf575 2961 By default, headers are removed if denied.
88738790 2962DOC_END
2963
365cb147 2964NAME: icon_directory
f0b19334 2965TYPE: string
365cb147 2966LOC: Config.icons.directory
2967DEFAULT: @DEFAULT_ICON_DIR@
2968DOC_START
cf5cc17e 2969 Where the icons are stored. These are normally kept in
2970 @DEFAULT_ICON_DIR@
365cb147 2971DOC_END
2972
cf5cc17e 2973NAME: error_directory
365cb147 2974TYPE: string
cf5cc17e 2975LOC: Config.errorDirectory
2976DEFAULT: @DEFAULT_ERROR_DIR@
365cb147 2977DOC_START
cf5cc17e 2978 If you wish to create your own versions of the default
efd900cb 2979 (English) error files, either to customize them to suit your
2980 language or company copy the template English files to another
cf5cc17e 2981 directory and point this tag at them.
365cb147 2982DOC_END
88738790 2983
22c653cd 2984NAME: minimum_retry_timeout
2985COMMENT: (seconds)
2986TYPE: time_t
2987LOC: Config.retry.timeout
2988DEFAULT: 5 seconds
2989DOC_START
2990 This specifies the minimum connect timeout, for when the
2991 connect timeout is reduced to compensate for the availability
2992 of multiple IP addresses.
2993
cf5cc17e 2994 When a connection to a host is initiated, and that host has
2995 several IP addresses, the default connection timeout is reduced
2996 by dividing it by the number of addresses. So, a site with 15
2997 addresses would then have a timeout of 8 seconds for each
2998 address attempted. To avoid having the timeout reduced to the
2999 point where even a working host would not have a chance to
3000 respond, this setting is provided. The default, and the
3001 minimum value, is five seconds, and the maximum value is sixty
3002 seconds, or half of connect_timeout, whichever is greater and
3003 less than connect_timeout.
22c653cd 3004DOC_END
3005
3006NAME: maximum_single_addr_tries
3007TYPE: int
3008LOC: Config.retry.maxtries
3009DEFAULT: 3
3010DOC_START
3011 This sets the maximum number of connection attempts for a
3012 host that only has one address (for multiple-address hosts,
3013 each address is tried once).
3014
3015 The default value is three tries, the (not recommended)
3016 maximum is 255 tries. A warning message will be generated
3017 if it is set to a value greater than ten.
22c653cd 3018DOC_END
6d1c0d53 3019
a97cfa48 3020NAME: snmp_port
3021TYPE: ushort
3022LOC: Config.Port.snmp
3023DEFAULT: 3401
1df370e3 3024IFDEF: SQUID_SNMP
a97cfa48 3025DOC_START
cf5cc17e 3026 Squid can now serve statistics and status information via SNMP.
3027 By default it listens to port 3401 on the machine. If you don't
9bc73deb 3028 wish to use SNMP, set this to "0".
a97cfa48 3029DOC_END
3030
dba79ac5 3031NAME: snmp_access
3032TYPE: acl_access
3033LOC: Config.accessList.snmp
a97cfa48 3034DEFAULT: none
6502682e 3035DEFAULT_IF_NONE: deny all
1df370e3 3036IFDEF: SQUID_SNMP
a97cfa48 3037DOC_START
dba79ac5 3038 Allowing or denying access to the SNMP port.
08f6b5e0 3039
3040 All access to the agent is denied by default.
dba79ac5 3041 usage:
4feb7b2e 3042
dba79ac5 3043 snmp_access allow|deny [!]aclname ...
08f6b5e0 3044
3045Example:
6b53c392 3046 snmp_access allow snmppublic localhost
3047 snmp_access deny all
bdf18524 3048DOC_END
3049
15dcc168 3050NAME: snmp_incoming_address
3051TYPE: address
1ecaa0a0 3052LOC: Config.Addrs.snmp_incoming
15dcc168 3053DEFAULT: 0.0.0.0
3054IFDEF: SQUID_SNMP
3055DOC_NONE
3056NAME: snmp_outgoing_address
3057TYPE: address
3058LOC: Config.Addrs.snmp_outgoing
3059DEFAULT: 255.255.255.255
3060IFDEF: SQUID_SNMP
3061DOC_START
3062 Just like 'udp_incoming_address' above, but for the SNMP port.
3063
3064 snmp_incoming_address is used for the SNMP socket receiving
3065 messages from SNMP agents.
3066 snmp_outgoing_address is used for SNMP packets returned to SNMP
3067 agents.
3068
6b53c392 3069 The default snmp_incoming_address (0.0.0.0) is to listen on all
3070 available network interfaces.
15dcc168 3071
6b53c392 3072 If snmp_outgoing_address is set to 255.255.255.255 (the default)
3073 then it will use the same socket as snmp_incoming_address. Only
3074 change this if you want to have SNMP replies sent using another
3075 address than where this Squid listens for SNMP queries.
15dcc168 3076
6b53c392 3077 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
3078 the same value since they both use port 3401.
15dcc168 3079DOC_END
bdf18524 3080
53ad48e6 3081NAME: as_whois_server
3082TYPE: string
3083LOC: Config.as_whois_server
3084DEFAULT: whois.ra.net
3085DEFAULT_IF_NONE: whois.ra.net
3086DOC_START
cf5cc17e 3087 WHOIS server to query for AS numbers. NOTE: AS numbers are
3088 queried only when Squid starts up, not for every request.
53ad48e6 3089DOC_END
95e36d02 3090
320e9f36 3091NAME: wccp_router
3092TYPE: address
3093LOC: Config.Wccp.router
3094DEFAULT: 0.0.0.0
eb824054 3095IFDEF: USE_WCCP
320e9f36 3096DOC_START
efd900cb 3097 Use this option to define your WCCP ``home'' router for
3098 Squid. Setting the 'wccp_router' to 0.0.0.0 (the default)
3099 disables WCCP.
320e9f36 3100DOC_END
3101
d20b1cd0 3102NAME: wccp_version
3103TYPE: int
3104LOC: Config.Wccp.version
3105DEFAULT: 4
3106IFDEF: USE_WCCP
3107DOC_START
3108 According to some users, Cisco IOS 11.2 only supports WCCP
3109 version 3. If you're using that version of IOS, change
3110 this value to 3.
3111DOC_END
3112
320e9f36 3113NAME: wccp_incoming_address
3114TYPE: address
eb824054 3115LOC: Config.Wccp.incoming
320e9f36 3116DEFAULT: 0.0.0.0
eb824054 3117IFDEF: USE_WCCP
320e9f36 3118DOC_NONE
3119NAME: wccp_outgoing_address
3120TYPE: address
eb824054 3121LOC: Config.Wccp.outgoing
320e9f36 3122DEFAULT: 255.255.255.255
eb824054 3123IFDEF: USE_WCCP
320e9f36 3124DOC_START
efd900cb 3125 wccp_incoming_address Use this option if you require WCCP
3126 messages to be received on only one
3127 interface. Do NOT use this option if
3128 you're unsure how many interfaces you
3129 have, or if you know you have only one
3130 interface.
320e9f36 3131
efd900cb 3132 wccp_outgoing_address Use this option if you require WCCP
3133 messages to be sent out on only one
3134 interface. Do NOT use this option if
3135 you're unsure how many interfaces you
3136 have, or if you know you have only one
3137 interface.
320e9f36 3138
efd900cb 3139 The default behavior is to not bind to any specific address.
320e9f36 3140
3141 NOTE, wccp_incoming_address and wccp_outgoing_address can not have
3142 the same value since they both use port 2048.
320e9f36 3143DOC_END
3144
3145
95e36d02 3146COMMENT_START
3147 DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
3148 -----------------------------------------------------------------------------
95e36d02 3149COMMENT_END
3150
59715b38 3151NAME: delay_pools
3152TYPE: delay_pool_count
3153DEFAULT: 0
95e36d02 3154IFDEF: DELAY_POOLS
59715b38 3155LOC: Config.Delay
95e36d02 3156DOC_START
59715b38 3157 This represents the number of delay pools to be used. For example,
3158 if you have one class 2 delay pool and one class 3 delays pool, you
3159 have a total of 2 delay pools.
95e36d02 3160DOC_END
3161
59715b38 3162NAME: delay_class
3163TYPE: delay_pool_class
95e36d02 3164DEFAULT: none
3165IFDEF: DELAY_POOLS
59715b38 3166LOC: Config.Delay
95e36d02 3167DOC_START
59715b38 3168 This defines the class of each delay pool. There must be exactly one
3169 delay_class line for each delay pool. For example, to define two
3170 delay pools, one of class 2 and one of class 3, the settings above
3171 and here would be:
3172
6b53c392 3173Example:
3174 delay_pools 2 # 2 delay pools
3175 delay_class 1 2 # pool 1 is a class 2 pool
3176 delay_class 2 3 # pool 2 is a class 3 pool
59715b38 3177
3178 The delay pool classes are:
3179
3180 class 1 Everything is limited by a single aggregate
3181 bucket.
3182
3183 class 2 Everything is limited by a single aggregate
3184 bucket as well as an "individual" bucket chosen
3185 from bits 25 through 32 of the IP address.
3186
3187 class 3 Everything is limited by a single aggregate
3188 bucket as well as a "network" bucket chosen
3189 from bits 17 through 24 of the IP address and a
3190 "individual" bucket chosen from bits 17 through
3191 32 of the IP address.
3192
3193 NOTE: If an IP address is a.b.c.d
3194 -> bits 25 through 32 are "d"
3195 -> bits 17 through 24 are "c"
3196 -> bits 17 through 32 are "c * 256 + d"
95e36d02 3197DOC_END
3198
59715b38 3199NAME: delay_access
3200TYPE: delay_pool_access
95e36d02 3201DEFAULT: none
3202IFDEF: DELAY_POOLS
59715b38 3203LOC: Config.Delay
95e36d02 3204DOC_START
59715b38 3205 This is used to determine which delay pool a request falls into.
efd900cb 3206 The first matched delay pool is always used, i.e., if a request falls
59715b38 3207 into delay pool number one, no more delay are checked, otherwise the
3208 rest are checked in order of their delay pool number until they have
3209 all been checked. For example, if you want some_big_clients in delay
3210 pool 1 and lotsa_little_clients in delay pool 2:
95e36d02 3211
6b53c392 3212Example:
3213 delay_access 1 allow some_big_clients
3214 delay_access 1 deny all
3215 delay_access 2 allow lotsa_little_clients
3216 delay_access 2 deny all
95e36d02 3217DOC_END
3218
59715b38 3219NAME: delay_parameters
3220TYPE: delay_pool_rates
3221DEFAULT: none
95e36d02 3222IFDEF: DELAY_POOLS
59715b38 3223LOC: Config.Delay
95e36d02 3224DOC_START
59715b38 3225 This defines the parameters for a delay pool. Each delay pool has
3226 a number of "buckets" associated with it, as explained in the
3227 description of delay_class. For a class 1 delay pool, the syntax is:
95e36d02 3228
59715b38 3229delay_parameters pool aggregate
95e36d02 3230
59715b38 3231 For a class 2 delay pool:
95e36d02 3232
59715b38 3233delay_parameters pool aggregate individual
95e36d02 3234
59715b38 3235 For a class 3 delay pool:
95e36d02 3236
59715b38 3237delay_parameters pool aggregate network individual
95e36d02 3238
59715b38 3239 The variables here are:
95e36d02 3240
59715b38 3241 pool a pool number - ie, a number between 1 and the
3242 number specified in delay_pools as used in
3243 delay_class lines.
95e36d02 3244
59715b38 3245 aggregate the "delay parameters" for the aggregate bucket
3246 (class 1, 2, 3).
95e36d02 3247
59715b38 3248 individual the "delay parameters" for the individual
3249 buckets (class 2, 3).
3250
3251 network the "delay parameters" for the network buckets
3252 (class 3).
3253
3254 A pair of delay parameters is written restore/maximum, where restore is
3255 the number of bytes (not bits - modem and network speeds are usually
3256 quoted in bits) per second placed into the bucket, and maximum is the
3257 maximum number of bytes which can be in the bucket at any time.
3258
3259 For example, if delay pool number 1 is a class 2 delay pool as in the
3260 above example, and is being used to strictly limit each host to 64kbps
3261 (plus overheads), with no overall limit, the line is:
3262
3263delay_parameters 1 -1/-1 8000/8000
3264
3265 Note that the figure -1 is used to represent "unlimited".
3266
3267 And, if delay pool number 2 is a class 3 delay pool as in the above
3268 example, and you want to limit it to a total of 256kbps (strict limit)
3269 with each 8-bit network permitted 64kbps (strict limit) and each
3270 individual host permitted 4800bps with a bucket maximum size of 64kb
3271 to permit a decent web page to be downloaded at a decent speed
3272 (if the network is not being limited due to overuse) but slow down
3273 large downloads more significantly:
3274
3275delay_parameters 2 32000/32000 8000/8000 600/64000
3276
3277 There must be one delay_parameters line for each delay pool.
95e36d02 3278DOC_END
3279
59715b38 3280NAME: delay_initial_bucket_level
3281COMMENT: (percent, 0-100)
3282TYPE: ushort
3283DEFAULT: 50
95e36d02 3284IFDEF: DELAY_POOLS
59715b38 3285LOC: Config.Delay.initial
95e36d02 3286DOC_START
59715b38 3287 The initial bucket percentage is used to determine how much is put
3288 in each bucket when squid starts, is reconfigured, or first notices
3289 a host accessing it (in class 2 and class 3, individual hosts and
3290 networks only have buckets associated with them once they have been
3291 "seen" by squid).
95e36d02 3292DOC_END
6be2389e 3293
9cd6c6fb 3294NAME: incoming_icp_average
6be2389e 3295TYPE: int
3296DEFAULT: 6
3297LOC: Config.comm_incoming.icp_average
3298DOC_NONE
3299
9cd6c6fb 3300NAME: incoming_http_average
6be2389e 3301TYPE: int
3302DEFAULT: 4
3303LOC: Config.comm_incoming.http_average
3304DOC_NONE
3305
afc28c12 3306NAME: incoming_dns_average
3307TYPE: int
3308DEFAULT: 4
3309LOC: Config.comm_incoming.dns_average
3310DOC_NONE
3311
9cd6c6fb 3312NAME: min_icp_poll_cnt
6be2389e 3313TYPE: int
3314DEFAULT: 8
3315LOC: Config.comm_incoming.icp_min_poll
3316DOC_NONE
3317
afc28c12 3318NAME: min_dns_poll_cnt
3319TYPE: int
3320DEFAULT: 8
3321LOC: Config.comm_incoming.dns_min_poll
3322DOC_NONE
3323
9cd6c6fb 3324NAME: min_http_poll_cnt
6be2389e 3325TYPE: int
3326DEFAULT: 8
3327LOC: Config.comm_incoming.http_min_poll
3328DOC_START
b6a2f15e 3329 Heavy voodoo here. I can't even believe you are reading this.
6be2389e 3330 Are you crazy? Don't even think about adjusting these unless
3331 you understand the algorithms in comm_select.c first!
3332DOC_END
2b4283e4 3333
c5f627c2 3334NAME: max_open_disk_fds
3335TYPE: int
3336LOC: Config.max_open_disk_fds
3337DEFAULT: 0
6b53c392 3338DOC_START
3339 To avoid having disk as the I/O bottleneck Squid can optionally
3340 bypass the on-disk cache if more than this amount of disk file
3341 descriptors are open.
3342
3343 A value of 0 indicates no limit.
3344DOC_END
c5f627c2 3345
b540e168 3346NAME: offline_mode
3347TYPE: onoff
3348LOC: Config.onoff.offline
3349DEFAULT: off
3350DOC_START
3351 Enable this option and Squid will never try to validate cached
3352 objects.
3353DOC_END
3354
d548ee64 3355NAME: uri_whitespace
3356TYPE: uri_whitespace
3357LOC: Config.uri_whitespace
7e3ce7b9 3358DEFAULT: strip
d548ee64 3359DOC_START
3360 What to do with requests that have whitespace characters in the
3361 URI. Options:
3362
7e3ce7b9 3363 strip: The whitespace characters are stripped out of the URL.
3364 This is the behavior recommended by RFC2616.
d548ee64 3365 deny: The request is denied. The user receives an "Invalid
3366 Request" message.
3367 allow: The request is allowed and the URI is not changed. The
3368 whitespace characters remain in the URI. Note the
3369 whitespace is passed to redirector processes if they
3370 are in use.
3371 encode: The request is allowed and the whitespace characters are
3372 encoded according to RFC1738. This could be considered
3373 a violation of the HTTP/1.1
3374 RFC because proxies are not allowed to rewrite URI's.
3375 chop: The request is allowed and the URI is chopped at the
3376 first whitespace. This might also be considered a
3377 violation.
d548ee64 3378DOC_END
3379
376bb137 3380NAME: broken_posts
3381TYPE: acl_access
3382DEFAULT: none
3383LOC: Config.accessList.brokenPosts
c68e9c6b 3384DOC_START
376bb137 3385 A list of ACL elements which, if matched, causes Squid to send
3386 a extra CRLF pair after the body of a PUT/POST request.
3387
3388 Some HTTP servers has broken implementations of PUT/POST,
3389 and rely on a extra CRLF pair sent by some WWW clients.
3390
3391 Quote from RFC 2068 section 4.1 on this matter:
3392
3393 Note: certain buggy HTTP/1.0 client implementations generate an
3394 extra CRLF's after a POST request. To restate what is explicitly
3395 forbidden by the BNF, an HTTP/1.1 client must not preface or follow
3396 a request with an extra CRLF.
3397
6b53c392 3398Example:
3399 acl buggy_server url_regex ^http://....
3400 broken_posts allow buggy_server
c68e9c6b 3401DOC_END
9b094667 3402
e66d7923 3403NAME: mcast_miss_addr
3404IFDEF: MULTICAST_MISS_STREAM
3405TYPE: address
3406LOC: Config.mcast_miss.addr
3407DEFAULT: 255.255.255.255
b6a2f15e 3408DOC_START
3409 If you enable this option, every "cache miss" URL will
3410 be sent out on the specified multicast address.
3411
3412 Do not enable this option unless you are are absolutely
3413 certain you understand what you are doing.
3414DOC_END
e66d7923 3415
7e3ce7b9 3416NAME: mcast_miss_ttl
3417IFDEF: MULTICAST_MISS_TTL
3418TYPE: ushort
3419LOC: Config.mcast_miss.ttl
3420DEFAULT: 16
3421DOC_START
3422 This is the time-to-live value for packets multicasted
3423 when multicasting off cache miss URLs is enabled. By
3424 default this is set to 'site scope', i.e. 16.
3425DOC_END
3426
e66d7923 3427NAME: mcast_miss_port
3428IFDEF: MULTICAST_MISS_STREAM
3429TYPE: ushort
3430LOC: Config.mcast_miss.port
3431DEFAULT: 3135
b6a2f15e 3432DOC_START
efd900cb 3433 This is the port number to be used in conjunction with
b6a2f15e 3434 'mcast_miss_addr'.
3435DOC_END
e66d7923 3436
3437NAME: mcast_miss_encode_key
3438IFDEF: MULTICAST_MISS_STREAM
3439TYPE: string
3440LOC: Config.mcast_miss.encode_key
3441DEFAULT: XXXXXXXXXXXXXXXX
b6a2f15e 3442DOC_START
3443 The URLs that are sent in the multicast miss stream are
3444 encrypted. This is the encryption key.
3445DOC_END
e66d7923 3446
168dfda9 3447NAME: nonhierarchical_direct
3448TYPE: onoff
3449LOC: Config.onoff.nonhierarchical_direct
3450DEFAULT: on
3451DOC_START
3452 By default, Squid will send any non-hierarchical requests
3453 (matching hierarchy_stoplist or not cachable request type) direct
3454 to origin servers.
3455
3456 If you set this to off, then Squid will prefer to send these
3457 requests to parents.
3458
3459 Note that in most configurations, by turning this off you will only
3460 add latency to these request without any improvement in global hit
3461 ratio.
3462
3463 If you are inside an firewall then see never_direct instead of
3464 this directive.
168dfda9 3465DOC_END
3466
9b094667 3467NAME: prefer_direct
3468TYPE: onoff
3469LOC: Config.onoff.prefer_direct
168dfda9 3470DEFAULT: off
9b094667 3471DOC_START
168dfda9 3472 Normally Squid tries to use parents for most requests. If you by some
3473 reason like it to first try going direct and only use a parent if
3474 going direct fails then set this to off.
3475
3476 By combining nonhierarchical_direct off and prefer_direct on you
3477 can set up Squid to use a parent as a backup path if going direct
3478 fails.
9b094667 3479DOC_END
4d62b0af 3480
bcbc11b0 3481NAME: strip_query_terms
3482TYPE: onoff
3483LOC: Config.onoff.strip_query_terms
3484DEFAULT: on
3485DOC_START
3486 By default, Squid strips query terms from requested URLs before
3487 logging. This protects your user's privacy.
bcbc11b0 3488DOC_END
3489
b6a2f15e 3490NAME: coredump_dir
3491TYPE: string
3492LOC: Config.coredump_dir
3493DEFAULT: none
5ff76111 3494DEFAULT_IF_NONE: none
b6a2f15e 3495DOC_START
5ff76111 3496 By default Squid leaves core files in the directory from where
3497 it was started. If you set 'coredump_dir' to a directory
b6a2f15e 3498 that exists, Squid will chdir() to that directory at startup
3499 and coredump files will be left there.
5ff76111 3500
3501NOCOMMENT_START
3502# Leave coredumps in the first cache dir
3503coredump_dir @DEFAULT_SWAP_DIR@
3504NOCOMMENT_END
b6a2f15e 3505DOC_END
3506
07476a7f 3507NAME: redirector_bypass
3508TYPE: onoff
3509LOC: Config.onoff.redirector_bypass
3510DEFAULT: off
3511DOC_START
3512 When this is 'on', a request will not go through the
3513 redirector if all redirectors are busy. If this is 'off'
3514 and the redirector queue grows too large, Squid will exit
29de1a20 3515 with a FATAL error and ask you to increase the number of
07476a7f 3516 redirectors. You should only enable this if the redirectors
3517 are not critical to your caching system. If you use
3518 redirectors for access control, and you enable this option,
3519 then users may have access to pages that they should not
3520 be allowed to request.
3521DOC_END
3522
9bc73deb 3523NAME: ignore_unknown_nameservers
3524TYPE: onoff
3525LOC: Config.onoff.ignore_unknown_nameservers
3526DEFAULT: on
3527DOC_START
3528 By default Squid checks that DNS responses are received
3529 from the same IP addresses that they are sent to. If they
3530 don't match, Squid ignores the response and writes a warning
3531 message to cache.log. You can allow responses from unknown
3532 nameservers by setting this option to 'off'.
9bc73deb 3533DOC_END
3534
7e3ce7b9 3535NAME: digest_generation
3536IFDEF: USE_CACHE_DIGESTS
3537TYPE: onoff
3538LOC: Config.onoff.digest_generation
3539DEFAULT: on
3540DOC_START
3541 This controls whether the server will generate a Cache Digest
3542 of its contents. By default, Cache Digest generation is
3543 enabled if Squid is compiled with USE_CACHE_DIGESTS defined.
7e3ce7b9 3544DOC_END
3545
3546NAME: digest_bits_per_entry
3547IFDEF: USE_CACHE_DIGESTS
3548TYPE: int
3549LOC: Config.digest.bits_per_entry
3550DEFAULT: 5
3551DOC_START
3552 This is the number of bits of the server's Cache Digest which
3553 will be associated with the Digest entry for a given HTTP
3554 Method and URL (public key) combination. The default is 5.
7e3ce7b9 3555DOC_END
3556
3557NAME: digest_rebuild_period
3558IFDEF: USE_CACHE_DIGESTS
efd900cb 3559COMMENT: (seconds)
3560TYPE: time_t
7e3ce7b9 3561LOC: Config.digest.rebuild_period
efd900cb 3562DEFAULT: 1 hour
7e3ce7b9 3563DOC_START
3564 This is the number of seconds between Cache Digest rebuilds.
7e3ce7b9 3565DOC_END
3566
3567NAME: digest_rewrite_period
efd900cb 3568COMMENT: (seconds)
7e3ce7b9 3569IFDEF: USE_CACHE_DIGESTS
efd900cb 3570TYPE: time_t
7e3ce7b9 3571LOC: Config.digest.rewrite_period
efd900cb 3572DEFAULT: 1 hour
7e3ce7b9 3573DOC_START
3574 This is the number of seconds between Cache Digest writes to
6b53c392 3575 disk.
7e3ce7b9 3576DOC_END
3577
3578NAME: digest_swapout_chunk_size
efd900cb 3579COMMENT: (bytes)
3580TYPE: b_size_t
7e3ce7b9 3581IFDEF: USE_CACHE_DIGESTS
7e3ce7b9 3582LOC: Config.digest.swapout_chunk_size
efd900cb 3583DEFAULT: 4096 bytes
7e3ce7b9 3584DOC_START
3585 This is the number of bytes of the Cache Digest to write to
efd900cb 3586 disk at a time. It defaults to 4096 bytes (4KB), the Squid
3587 default swap page.
7e3ce7b9 3588DOC_END
3589
3590NAME: digest_rebuild_chunk_percentage
efd900cb 3591COMMENT: (percent, 0-100)
7e3ce7b9 3592IFDEF: USE_CACHE_DIGESTS
3593TYPE: int
3594LOC: Config.digest.rebuild_chunk_percentage
3595DEFAULT: 10
3596DOC_START
efd900cb 3597 This is the percentage of the Cache Digest to be scanned at a
3598 time. By default it is set to 10% of the Cache Digest.
7e3ce7b9 3599DOC_END
3600
efd900cb 3601NAME: chroot
3602TYPE: string
3603LOC: Config.chroot_dir
3604DEFAULT: none
3605DOC_START
3606 Use this to have Squid do a chroot() while initializing. This
3607 also causes Squid to fully drop root privileges after
3608 initializing. This means, for example, that if you use a HTTP
3609 port less than 1024 and try to reconfigure, you will get an
3610 error.
3611DOC_END
efd900cb 3612
3613NAME: client_persistent_connections
3614TYPE: onoff
3615LOC: Config.onoff.client_pconns
3616DEFAULT: on
3617DOC_NONE
3618
3619NAME: server_persistent_connections
3620TYPE: onoff
3621LOC: Config.onoff.server_pconns
3622DEFAULT: on
3623DOC_START
3624 Persistent connection support for clients and servers. By
3625 default, Squid uses persistent connections (when allowed)
3626 with its clients and servers. You can use these options to
3627 disable persistent connections with clients and/or servers.
efd900cb 3628DOC_END
9d24d603 3629
3d15e2d7 3630NAME: pipeline_prefetch
3631TYPE: onoff
3632LOC: Config.onoff.pipeline_prefetch
3633DEFAULT: on
3634DOC_START
3635 To boost the performance of pipelined requests to closer
3636 match that of a non-proxied environment Squid tries to fetch
3637 up to two requests in parallell from a pipeline.
3638DOC_END
3639
56fe752e 3640NAME: extension_methods
3641TYPE: wordlist
3642LOC: Config.ext_methods
3643DEFAULT: none
3644DOC_START
3645 Squid only knows about standardized HTTP request methods.
3646 You can add up to 20 additional "extension" methods here.
3647DOC_END
3648
b8a46de0 3649NAME: high_response_time_warning
3650TYPE: int
3651COMMENT: (msec)
3652LOC: Config.warnings.high_rptm
3653DEFAULT: 0
3654DOC_START
3655 If the one-minute median response time exceeds this value,
3656 Squid prints a WARNING with debug level 0 to get the
3657 administrators attention. The value is in milliseconds.
3658DOC_END
3659
3660NAME: high_page_fault_warning
3661TYPE: int
3662LOC: Config.warnings.high_pf
3663DEFAULT: 0
3664DOC_START
3665 If the one-minute average page fault rate exceeds this
3666 value, Squid prints a WARNING with debug level 0 to get
3667 the administrators attention. The value is in page faults
3668 per second.
3669DOC_END
3670
3671NAME: high_memory_warning
3672TYPE: b_size_t
3673LOC: Config.warnings.high_memory
3674DEFAULT: 0
3675DOC_START
3676 If the memory usage (as determined by mallinfo) exceeds
3677 value, Squid prints a WARNING with debug level 0 to get
3678 the administrators attention.
3679DOC_END
3680
65a53c8e 3681NAME: store_dir_select_algorithm
3682TYPE: string
3683LOC: Config.store_dir_select_algorithm
3684DEFAULT: least-load
3685DOC_START
3686 Set this to 'round-robin' as an alternative.
3687DOC_END
3688
225644d7 3689NAME: forward_log
3690IFDEF: WIP_FWD_LOG
3691TYPE: string
3692DEFAULT: none
3693LOC: Config.Log.forward
3694DOC_START
3695 Logs the server-side requests.
3696
3697 This is currently work in progress.
3698DOC_END
3699
7613d09c 3700NAME: ie_refresh
3701COMMENT: on|off
3702TYPE: onoff
3703LOC: Config.onoff.ie_refresh
3704DEFAULT: off
3705DOC_START
3706 Microsoft Internet Explorer up until version 5.5 Service
3707 Pack 1 has an issue with transparent proxies, wherein it
3708 is impossible to force a refresh. Turning this on provides
3709 a partial fix to the problem, by causing all IMS-REFRESH
3710 requests from older IE versions to check the origin server
3711 for fresh content. This reduces hit ratio by some amount
3712 (~10% in my experience), but allows users to actually get
3713 fresh content when they want it. Note that because Squid
3714 cannot tell if the user is using 5.5 or 5.5SP1, the behavior
3715 of 5.5 is unchanged from old versions of Squid (i.e. a
3716 forced refresh is impossible). Newer versions of IE will,
3717 hopefully, continue to have the new behavior and will be
3718 handled based on that assumption. This option defaults to
3719 the old Squid behavior, which is better for hit ratios but
3720 worse for clients using IE, if they need to be able to
3721 force fresh content.
3722DOC_END
3723
f66a9ef4 3724NAME: vary_ignore_expire
3725COMMENT: on|off
3726TYPE: onoff
3727LOC: Config.onoff.vary_ignore_expire
3728DEFAULT: off
3729DOC_START
3730 Many HTTP servers supporting Vary gives such objects
3731 immediate expiry time with no cache-control header
3732 when requested by a HTTP/1.0 client. This option
3733 enables Squid to ignore such expiry times until
3734 HTTP/1.1 is fully implemented.
3735 WARNING: This may eventually cause some varying
3736 objects not intended for caching to get cached.
3737DOC_END
3738
d1ec12c7 3739NAME: sleep_after_fork
3740COMMENT: (microseconds)
3741TYPE: int
3742LOC: Config.sleep_after_fork
3743DEFAULT: 0
3744DOC_START
96d88dcb 3745 When this is set to a non-zero value, the main Squid process
3746 sleeps the specified number of microseconds after a fork()
3747 system call. This sleep may help the situation where your
3748 system reports fork() failures due to lack of (virtual)
3749 memory. Note, however, that if you have a lot of child
3750 processes, then these sleep delays will add up and your
3751 Squid will not service requests for some amount of time
3752 until all the child processes have been started.
d1ec12c7 3753DOC_END
1fbbdcb0 3754
2b4283e4 3755EOF