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