]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
Bug #877: Squid doesn't follow telnet protocol on FTP control connections
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
3a278cb8 1
9cef6668 2#
dad0fe12 3# $Id: cf.data.pre,v 1.347 2004/04/04 15:05:13 hno 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
1a224843 1086 The coss store type:
1087
1088 block-size=n defines the "block size" for COSS cache_dir's.
1089 Squid uses file numbers as block numbers. Since file numbers
1090 are limited to 24 bits, the block size determines the maximum
1091 size of the COSS partition. The default is 512 bytes, which
1092 leads to a maximum cache_dir size of 512<<24, or 8 GB. Note
1093 that you should not change the coss block size after Squid
1094 has written some objects to the cache_dir.
1095
cccac0a2 1096 Common options:
1097
1098 read-only, this cache_dir is read only.
1099
1100 max-size=n, refers to the max object size this storedir supports.
1101 It is used to initially choose the storedir to dump the object.
1102 Note: To make optimal use of the max-size limits you should order
1103 the cache_dir lines with the smallest max-size value first and the
1104 ones with no max-size specification last.
1a224843 1105
1106 Note that for coss, max-size must be less than COSS_MEMBUF_SZ,
1107 which can be changed with the --with-coss-membuf-size=N configure
1108 option.
cccac0a2 1109DOC_END
1110
1111
1112NAME: logformat
1113TYPE: logformat
1114LOC: Config.Log.logformats
1115DEFAULT: none
1116DOC_START
1117 Usage:
1118
1119 logformat <name> <format specification>
1120
1121 Defines an access log format.
1122
1123 The <format specification> is a string with embedded % format codes
1124
1125 % format codes all follow the same basic structure where all but
1126 the formatcode is optional. Output strings are automatically quoted
1127 as required according to their context and the output format
1128 modifiers are usually unneeded but can be specified if an explicit
1129 quoting format is desired.
1130
1131 % ["|[|'|#] [-] [[0]width] [{argument}] formatcode
1132
1133 " quoted string output format
1134 [ squid log quoted format as used by log_mime_hdrs
1135 # URL quoted output format
1136 ' No automatic quoting
1137 - left aligned
1138 width field width. If starting with 0 then the
1139 output is zero padded
1140 {arg} argument such as header name etc
1141
1142 Format codes:
1143
1144 >a Client source IP address
1145 >A Client FQDN
1146 <A Server IP address or peer name
1147 la Local IP address (http_port)
1148 lp Local port number (http_port)
1149 ts Seconds since epoch
1150 tu subsecond time (milliseconds)
1151 tl Local time. Optional strftime format argument
1152 default %d/%b/%Y:%H:%M:S %z
1153 tg GMT time. Optional strftime format argument
1154 default %d/%b/%Y:%H:%M:S %z
1155 tr Response time (milliseconds)
1156 >h Request header. Optional header name argument
1157 on the format header[:[separator]element]
1158 <h Reply header. Optional header name argument
1159 as for >h
1160 un User name
1161 ul User login
1162 ui User ident
1163 ue User from external acl
1164 Hs HTTP status code
1165 Ss Squid request status (TCP_MISS etc)
1166 Sh Squid hierarchy status (DEFAULT_PARENT etc)
1167 mt MIME content type
1168 rm Request method (GET/POST etc)
1169 ru Request URL
1170 rv Request protocol version
1171 et Tag returned by external acl
1172 ea Log string returned by external acl
1173 <st Reply size including HTTP headers
03b29b6c 1174 <sH Reply high offset sent
1175 <sS Upstream object size
cccac0a2 1176 % a literal % character
1177
1178logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
1179logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
1180logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
1181logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
1182DOC_END
1183
1184NAME: access_log cache_access_log
1185TYPE: access_log
1186LOC: Config.Log.accesslogs
1187DEFAULT: none
1188DEFAULT_IF_NONE: @DEFAULT_ACCESS_LOG@
1189DOC_START
1190 These files log client request activities. Has a line every HTTP or
1191 ICP request. The format is:
1192 access_log <filepath> [<logformat name> [acl acl ...]]
1193 access_log none [acl acl ...]]
1194
1195 Will log to the specified file using the specified format (which
1196 must be defined in a logformat directive) those entries which match
1197 ALL the acl's specified (which must be defined in acl clauses).
1198 If no acl is specified, all requests will be logged to this file.
1199
1200 To disable logging of a request specify "none".
1201DOC_END
1202
1203
1204NAME: cache_log
1205TYPE: string
1206DEFAULT: @DEFAULT_CACHE_LOG@
1207LOC: Config.Log.log
1208DOC_START
1209 Cache logging file. This is where general information about
1210 your cache's behavior goes. You can increase the amount of data
1211 logged to this file with the "debug_options" tag below.
1212DOC_END
1213
1214
1215NAME: cache_store_log
1216TYPE: string
1217DEFAULT: @DEFAULT_STORE_LOG@
1218LOC: Config.Log.store
1219DOC_START
1220 Logs the activities of the storage manager. Shows which
1221 objects are ejected from the cache, and which objects are
1222 saved and for how long. To disable, enter "none". There are
1223 not really utilities to analyze this data, so you can safely
1224 disable it.
1225DOC_END
1226
1227
e2529a2c 1228NAME: cache_swap_state cache_swap_log
cccac0a2 1229TYPE: string
1230LOC: Config.Log.swap
1231DEFAULT: none
1232DOC_START
e2529a2c 1233 Location for the cache "swap.state" file. This index file holds
1234 the metadata of objects saved on disk. It is used to rebuild
1235 the cache during startup. Normally this file resides in each
cccac0a2 1236 'cache_dir' directory, but you may specify an alternate
1237 pathname here. Note you must give a full filename, not just
1238 a directory. Since this is the index for the whole object
1239 list you CANNOT periodically rotate it!
1240
1241 If %s can be used in the file name then it will be replaced with a
1242 a representation of the cache_dir name where each / is replaced
1243 with '.'. This is needed to allow adding/removing cache_dir
1244 lines when cache_swap_log is being used.
1245
1246 If have more than one 'cache_dir', and %s is not used in the name
1247 then these swap logs will have names such as:
1248
1249 cache_swap_log.00
1250 cache_swap_log.01
1251 cache_swap_log.02
1252
1253 The numbered extension (which is added automatically)
1254 corresponds to the order of the 'cache_dir' lines in this
1255 configuration file. If you change the order of the 'cache_dir'
1256 lines in this file, then these log files will NOT correspond to
1257 the correct 'cache_dir' entry (unless you manually rename
1258 them). We recommend that you do NOT use this option. It is
1259 better to keep these log files in each 'cache_dir' directory.
1260DOC_END
1261
1262
1263NAME: emulate_httpd_log
1264COMMENT: on|off
1265TYPE: onoff
1266DEFAULT: off
1267LOC: Config.onoff.common_log
1268DOC_START
1269 The Cache can emulate the log file format which many 'httpd'
1270 programs use. To disable/enable this emulation, set
1271 emulate_httpd_log to 'off' or 'on'. The default
1272 is to use the native log format since it includes useful
1273 information that Squid-specific log analyzers use.
1274DOC_END
1275
1276NAME: log_ip_on_direct
1277COMMENT: on|off
1278TYPE: onoff
1279DEFAULT: on
1280LOC: Config.onoff.log_ip_on_direct
1281DOC_START
1282 Log the destination IP address in the hierarchy log tag when going
1283 direct. Earlier Squid versions logged the hostname here. If you
1284 prefer the old way set this to off.
1285DOC_END
1286
1287NAME: mime_table
1288TYPE: string
1289DEFAULT: @DEFAULT_MIME_TABLE@
1290LOC: Config.mimeTablePathname
1291DOC_START
1292 Pathname to Squid's MIME table. You shouldn't need to change
1293 this, but the default file contains examples and formatting
1294 information if you do.
1295DOC_END
1296
1297
1298NAME: log_mime_hdrs
1299COMMENT: on|off
1300TYPE: onoff
1301LOC: Config.onoff.log_mime_hdrs
1302DEFAULT: off
1303DOC_START
1304 The Cache can record both the request and the response MIME
1305 headers for each HTTP transaction. The headers are encoded
1306 safely and will appear as two bracketed fields at the end of
1307 the access log (for either the native or httpd-emulated log
1308 formats). To enable this logging set log_mime_hdrs to 'on'.
1309DOC_END
1310
1311
1312NAME: useragent_log
1313TYPE: string
1314LOC: Config.Log.useragent
1315DEFAULT: none
1316IFDEF: USE_USERAGENT_LOG
1317DOC_START
1318 Squid will write the User-Agent field from HTTP requests
1319 to the filename specified here. By default useragent_log
1320 is disabled.
1321DOC_END
1322
1323
1324NAME: referer_log
1325TYPE: string
1326LOC: Config.Log.referer
1327DEFAULT: none
1328IFDEF: USE_REFERER_LOG
1329DOC_START
1330 Squid will write the Referer field from HTTP requests to the
1331 filename specified here. By default referer_log is disabled.
1332DOC_END
1333
1334
1335NAME: pid_filename
1336TYPE: string
1337DEFAULT: @DEFAULT_PID_FILE@
1338LOC: Config.pidFilename
1339DOC_START
1340 A filename to write the process-id to. To disable, enter "none".
1341DOC_END
1342
1343
1344NAME: debug_options
d9e04dc7 1345TYPE: debug
cccac0a2 1346DEFAULT: ALL,1
1347LOC: Config.debugOptions
1348DOC_START
1349 Logging options are set as section,level where each source file
1350 is assigned a unique section. Lower levels result in less
1351 output, Full debugging (level 9) can result in a very large
1352 log file, so be careful. The magic word "ALL" sets debugging
1353 levels for all sections. We recommend normally running with
1354 "ALL,1".
1355DOC_END
1356
1357
1358NAME: log_fqdn
1359COMMENT: on|off
1360TYPE: onoff
1361DEFAULT: off
1362LOC: Config.onoff.log_fqdn
1363DOC_START
1364 Turn this on if you wish to log fully qualified domain names
1365 in the access.log. To do this Squid does a DNS lookup of all
1366 IP's connecting to it. This can (in some situations) increase
1367 latency, which makes your cache seem slower for interactive
1368 browsing.
1369DOC_END
1370
1371
1372NAME: client_netmask
1373TYPE: address
1374LOC: Config.Addrs.client_netmask
1375DEFAULT: 255.255.255.255
1376DOC_START
1377 A netmask for client addresses in logfiles and cachemgr output.
1378 Change this to protect the privacy of your cache clients.
1379 A netmask of 255.255.255.0 will log all IP's in that range with
1380 the last digit set to '0'.
1381DOC_END
0976f8db 1382
0976f8db 1383
cccac0a2 1384COMMENT_START
1385 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
1386 -----------------------------------------------------------------------------
1387COMMENT_END
1388
1389NAME: ftp_user
1390TYPE: string
1391DEFAULT: Squid@
1392LOC: Config.Ftp.anon_user
1393DOC_START
1394 If you want the anonymous login password to be more informative
1395 (and enable the use of picky ftp servers), set this to something
1396 reasonable for your domain, like wwwuser@somewhere.net
1397
1398 The reason why this is domainless by default is that the
1399 request can be made on the behalf of a user in any domain,
1400 depending on how the cache is used.
1401 Some ftp server also validate that the email address is valid
1402 (for example perl.com).
1403DOC_END
1404
1405NAME: ftp_list_width
1406TYPE: size_t
1407DEFAULT: 32
1408LOC: Config.Ftp.list_width
1409DOC_START
1410 Sets the width of ftp listings. This should be set to fit in
1411 the width of a standard browser. Setting this too small
1412 can cut off long filenames when browsing ftp sites.
1413DOC_END
1414
1415NAME: ftp_passive
1416TYPE: onoff
1417DEFAULT: on
1418LOC: Config.Ftp.passive
1419DOC_START
1420 If your firewall does not allow Squid to use passive
1421 connections, then turn off this option.
1422DOC_END
1423
1424NAME: ftp_sanitycheck
1425TYPE: onoff
1426DEFAULT: on
1427LOC: Config.Ftp.sanitycheck
1428DOC_START
1429 For security and data integrity reasons Squid by default performs
1430 sanity checks of the addresses of FTP data connections ensure the
1431 data connection is to the requested server. If you need to allow
1432 FTP connections to servers using another IP address for the data
1433 connection then turn this off.
1434DOC_END
1435
1436NAME: check_hostnames
1437TYPE: onoff
1438DEFAULT: on
1439LOC: Config.onoff.check_hostnames
1440DOC_START
1441 For security and stability reasons Squid by default checks
1442 hostnames for Internet standard RFC compliance. If you do not want
1443 Squid to perform these checks then turn this directive off.
1444DOC_END
1445
dad0fe12 1446NAME: ftp_telnet_protocol
1447TYPE: onoff
1448DEFAULT: on
1449LOC: Config.Ftp.telnet
1450DOC_START
1451The FTP protocol is officially defined to use the telnet protocol
1452as transport channel for the control connection. However, many
1453implemenations are broken and does not respect this aspect of
1454the FTP protocol.
1455
1456If you have trouble accessing files with ASCII code 255 in the
1457path or similar problems involving this ASCII code then you can
1458try setting this directive to off. If that helps report to the
1459operator of the FTP server in question that their FTP server
1460is broken and does not follow the FTP standard.
1461DOC_END
1462
cccac0a2 1463NAME: cache_dns_program
1464TYPE: string
1465IFDEF: USE_DNSSERVERS
1466DEFAULT: @DEFAULT_DNSSERVER@
1467LOC: Config.Program.dnsserver
1468DOC_START
1469 Specify the location of the executable for dnslookup process.
1470DOC_END
1471
1472NAME: dns_children
1473TYPE: int
1474IFDEF: USE_DNSSERVERS
1475DEFAULT: 5
1476LOC: Config.dnsChildren
1477DOC_START
1478 The number of processes spawn to service DNS name lookups.
1479 For heavily loaded caches on large servers, you should
1480 probably increase this value to at least 10. The maximum
1481 is 32. The default is 5.
1482
1483 You must have at least one dnsserver process.
1484DOC_END
1485
1486NAME: dns_retransmit_interval
1487TYPE: time_t
1488DEFAULT: 5 seconds
1489LOC: Config.Timeout.idns_retransmit
1490IFDEF: !USE_DNSSERVERS
1491DOC_START
1492 Initial retransmit interval for DNS queries. The interval is
1493 doubled each time all configured DNS servers have been tried.
1494
1495DOC_END
1496
1497NAME: dns_timeout
1498TYPE: time_t
1499DEFAULT: 5 minutes
1500LOC: Config.Timeout.idns_query
1501IFDEF: !USE_DNSSERVERS
1502DOC_START
1503 DNS Query timeout. If no response is received to a DNS query
1504 within this time then all DNS servers for the queried domain
1505 is assumed to be unavailable.
1506DOC_END
1507
1508NAME: dns_defnames
1509COMMENT: on|off
1510IFDEF: USE_DNSSERVERS
1511TYPE: onoff
1512DEFAULT: off
1513LOC: Config.onoff.res_defnames
1514IFDEF: USE_DNSSERVERS
1515DOC_START
1516 Normally the 'dnsserver' disables the RES_DEFNAMES resolver
1517 option (see res_init(3)). This prevents caches in a hierarchy
1518 from interpreting single-component hostnames locally. To allow
1519 dnsserver to handle single-component names, enable this
1520 option.
1521DOC_END
1522
1523NAME: dns_nameservers
1524TYPE: wordlist
1525DEFAULT: none
1526LOC: Config.dns_nameservers
1527DOC_START
1528 Use this if you want to specify a list of DNS name servers
1529 (IP addresses) to use instead of those given in your
1530 /etc/resolv.conf file.
1531 On Windows platforms, if no value is specified here or in
1532 the /etc/resolv.conf file, the list of DNS name servers are
1533 taken from the Windows registry, both static and dynamic DHCP
1534 configurations are supported.
1535
1536 Example: dns_nameservers 10.0.0.1 192.172.0.4
1537DOC_END
1538
1539NAME: hosts_file
1540TYPE: string
1541DEFAULT: @DEFAULT_HOSTS@
1542LOC: Config.etcHostsPath
1543DOC_START
1544 Location of the host-local IP name-address associations
1545 database. Most Operating Systems have such a file on different
1546 default locations:
1547 - Un*X & Linux: /etc/hosts
1548 - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts
1549 (%SystemRoot% value install default is c:\winnt)
1550 - Windows XP: %SystemRoot%\system32\drivers\etc\hosts
1551 (%SystemRoot% value install default is c:\windows)
1552 - Windows 9x/Me: %windir%\hosts
1553 (%windir% value is usually c:\windows)
1554 - Cygwin: /etc/hosts
1555
1556 The file contains newline-separated definitions, in the
1557 form ip_address_in_dotted_form name [name ...] names are
1558 whitespace-separated. Lines beginnng with an hash (#)
1559 character are comments.
1560
1561 The file is checked at startup and upon configuration.
1562 If set to 'none', it won't be checked.
1563 If append_domain is used, that domain will be added to
1564 domain-local (i.e. not containing any dot character) host
1565 definitions.
1566DOC_END
1567
1568NAME: diskd_program
1569TYPE: string
1570DEFAULT: @DEFAULT_DISKD@
1571LOC: Config.Program.diskd
1572DOC_START
1573 Specify the location of the diskd executable.
1574 Note that this is only useful if you have compiled in
1575 diskd as one of the store io modules.
1576DOC_END
1577
1578NAME: unlinkd_program
1579IFDEF: USE_UNLINKD
1580TYPE: string
1581DEFAULT: @DEFAULT_UNLINKD@
1582LOC: Config.Program.unlinkd
1583DOC_START
1584 Specify the location of the executable for file deletion process.
1585DOC_END
1586
1587NAME: pinger_program
1588TYPE: string
1589DEFAULT: @DEFAULT_PINGER@
1590LOC: Config.Program.pinger
1591IFDEF: USE_ICMP
1592DOC_START
1593 Specify the location of the executable for the pinger process.
1594DOC_END
1595
1596
1597NAME: redirect_program
1598TYPE: wordlist
1599LOC: Config.Program.redirect
1600DEFAULT: none
1601DOC_START
1602 Specify the location of the executable for the URL redirector.
1603 Since they can perform almost any function there isn't one included.
1604 See the FAQ (section 15) for information on how to write one.
1605 By default, a redirector is not used.
1606DOC_END
1607
1608
1609NAME: redirect_children
1610TYPE: int
1611DEFAULT: 5
1612LOC: Config.redirectChildren
1613DOC_START
1614 The number of redirector processes to spawn. If you start
1615 too few Squid will have to wait for them to process a backlog of
1616 URLs, slowing it down. If you start too many they will use RAM
1617 and other system resources.
1618DOC_END
1619
1620NAME: redirect_concurrency
1621TYPE: int
1622DEFAULT: 0
1623LOC: Config.redirectConcurrency
1624DOC_START
1625 The number of requests each redirector helper can handle in
1626 parallell. Defaults to 0 which indicates that the redirector
1627 is a old-style singlethreaded redirector.
1628DOC_END
1629
1630NAME: redirect_rewrites_host_header
1631TYPE: onoff
1632DEFAULT: on
1633LOC: Config.onoff.redir_rewrites_host
1634DOC_START
1635 By default Squid rewrites any Host: header in redirected
1636 requests. If you are running an accelerator then this may
1637 not be a wanted effect of a redirector.
1638
1639 WARNING: Entries are cached on the result of the URL rewriting
1640 process, so be careful if you have domain-virtual hosts.
1641DOC_END
1642
1643NAME: redirector_access
1644TYPE: acl_access
1645DEFAULT: none
1646LOC: Config.accessList.redirector
1647DOC_START
1648 If defined, this access list specifies which requests are
1649 sent to the redirector processes. By default all requests
1650 are sent.
1651DOC_END
1652
1653NAME: auth_param
1654TYPE: authparam
1655LOC: Config.authConfiguration
1656DEFAULT: none
1657DOC_START
1658 This is used to pass parameters to the various authentication
1659 schemes.
1660 format: auth_param scheme parameter [setting]
1661
1662 auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
1663 would tell the basic authentication scheme it's program parameter.
1664
1665 The order that authentication prompts are presented to the client_agent
1666 is dependant on the order the scheme first appears in config file.
1667 IE has a bug (it's not rfc 2617 compliant) in that it will use the basic
1668 scheme if basic is the first entry presented, even if more secure schemes
1669 are presented. For now use the order in the file below. If other browsers
1670 have difficulties (don't recognise the schemes offered even if you are using
1671 basic) then either put basic first, or disable the other schemes (by commenting
1672 out their program entry).
1673
1674 Once an authentication scheme is fully configured, it can only be shutdown
1675 by shutting squid down and restarting. Changes can be made on the fly and
1676 activated with a reconfigure. I.E. You can change to a different helper,
1677 but not unconfigure the helper completely.
1678
1679 === Parameters for the basic scheme follow. ===
1680
1681 "program" cmdline
1682 Specify the command for the external authenticator. Such a
1683 program reads a line containing "username password" and replies
1684 "OK" or "ERR" in an endless loop. If you use an authenticator,
1685 make sure you have 1 acl of type proxy_auth. By default, the
1686 basic authentication sheme is not used unless a program is specified.
1687
1688 If you want to use the traditional proxy authentication,
1689 jump over to the ../auth_modules/NCSA directory and
1690 type:
1691 % make
1692 % make install
1693
1694 Then, set this line to something like
1695
1696 auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
1697
1698 "children" numberofchildren
1699 The number of authenticator processes to spawn (no default).
1700 If you start too few Squid will have to wait for them to
1701 process a backlog of usercode/password verifications, slowing
1702 it down. When password verifications are done via a (slow)
1703 network you are likely to need lots of authenticator
1704 processes.
1705 auth_param basic children 5
1706
1707 "concurrency" concurrency
1708 The number of concurrent requests the helper can process.
1709 The default of 0 is used for helpers who only supports
1710 one request at a time.
1711 auth_param basic concurrency 0
1712
1713 "realm" realmstring
1714 Specifies the realm name which is to be reported to the
1715 client for the basic proxy authentication scheme (part of
1716 the text the user will see when prompted their username and
1717 password). There is no default.
1718 auth_param basic realm Squid proxy-caching web server
1719
1720 "credentialsttl" timetolive
1721 Specifies how long squid assumes an externally validated
1722 username:password pair is valid for - in other words how
1723 often the helper program is called for that user. Set this
1724 low to force revalidation with short lived passwords. Note
1725 that setting this high does not impact your susceptability
1726 to replay attacks unless you are using an one-time password
1727 system (such as SecureID). If you are using such a system,
1728 you will be vulnerable to replay attacks unless you also
1729 use the max_user_ip ACL in an http_access rule.
1730
1731 === Parameters for the digest scheme follow ===
1732
1733 "program" cmdline
1734 Specify the command for the external authenticator. Such
1735 a program reads a line containing "username":"realm" and
1736 replies with the appropriate H(A1) value base64 encoded.
1737 See rfc 2616 for the definition of H(A1). If you use an
1738 authenticator, make sure you have 1 acl of type proxy_auth.
1739 By default, authentication is not used.
1740
1741 If you want to use build an authenticator,
1742 jump over to the ../digest_auth_modules directory and choose the
1743 authenticator to use. It it's directory type
1744 % make
1745 % make install
1746
1747 Then, set this line to something like
1748
1749 auth_param digest program @DEFAULT_PREFIX@/bin/digest_auth_pw @DEFAULT_PREFIX@/etc/digpass
1750
1751
1752 "children" numberofchildren
1753 The number of authenticator processes to spawn (no default).
1754 If you start too few Squid will have to wait for them to
1755 process a backlog of H(A1) calculations, slowing it down.
1756 When the H(A1) calculations are done via a (slow) network
1757 you are likely to need lots of authenticator processes.
1758 auth_param digest children 5
1759
1760 "realm" realmstring
1761 Specifies the realm name which is to be reported to the
1762 client for the digest proxy authentication scheme (part of
1763 the text the user will see when prompted their username and
1764 password). There is no default.
1765 auth_param digest realm Squid proxy-caching web server
1766
1767 "nonce_garbage_interval" timeinterval
1768 Specifies the interval that nonces that have been issued
1769 to client_agent's are checked for validity.
1770
1771 "nonce_max_duration" timeinterval
1772 Specifies the maximum length of time a given nonce will be
1773 valid for.
1774
1775 "nonce_max_count" number
1776 Specifies the maximum number of times a given nonce can be
1777 used.
1778
1779 "nonce_strictness" on|off
1780 Determines if squid requires strict increment-by-1 behaviour
1781 for nonce counts, or just incrementing (off - for use when
1782 useragents generate nonce counts that occasionally miss 1
1783 (ie, 1,2,4,6)). Default off.
1784
1785 "check_nonce_count" on|off
1786 This directive if set to off can disable the nonce count check
1787 completely to work around buggy digest qop implementations in
1788 certain mainstream browser versions. Default on to check the
1789 nonce count to protect from authentication replay attacks.
1790
1791 "post_workaround" on|off
1792 This is a workaround to certain buggy browsers who sends
1793 an incorrect request digest in POST requests when reusing
1794 the same nonce as aquired earlier on a GET request.
1795
1796
1797 === NTLM scheme options follow ===
1798
1799 "program" cmdline
1800 Specify the command for the external ntlm authenticator.
bdf7e1b4 1801 Such a program reads exchanged NTLMSSP packets with
1802 the browser via Squid until authentication is completed.
cccac0a2 1803 If you use an ntlm authenticator, make sure you have 1 acl
1804 of type proxy_auth. By default, the ntlm authenticator_program
1805 is not used.
1806
1807 auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth
1808
1809 "children" numberofchildren
1810 The number of authenticator processes to spawn (no default).
1811 If you start too few Squid will have to wait for them to
1812 process a backlog of credential verifications, slowing it
1813 down. When crendential verifications are done via a (slow)
1814 network you are likely to need lots of authenticator
1815 processes.
1816 auth_param ntlm children 5
1817
1818 "max_challenge_reuses" number
1819 The maximum number of times a challenge given by a ntlm
1820 authentication helper can be reused. Increasing this number
1821 increases your exposure to replay attacks on your network.
1822 0 means use the challenge only once. (disable challenge
1823 caching) See max_ntlm_challenge_lifetime for more information.
1824 auth_param ntlm max_challenge_reuses 0
1825
1826 "max_challenge_lifetime" timespan
1827 The maximum time period that a ntlm challenge is reused
1828 over. The actual period will be the minimum of this time
1829 AND the number of reused challenges.
1830 auth_param ntlm max_challenge_lifetime 2 minutes
1831
1832NOCOMMENT_START
94439e4e 1833#Recommended minimum configuration:
2d70df72 1834#auth_param digest program <uncomment and complete this line>
1835#auth_param digest children 5
1836#auth_param digest realm Squid proxy-caching web server
1837#auth_param digest nonce_garbage_interval 5 minutes
1838#auth_param digest nonce_max_duration 30 minutes
1839#auth_param digest nonce_max_count 50
94439e4e 1840#auth_param ntlm program <uncomment and complete this line to activate>
2d70df72 1841#auth_param ntlm children 5
1842#auth_param ntlm max_challenge_reuses 0
1843#auth_param ntlm max_challenge_lifetime 2 minutes
94439e4e 1844#auth_param basic program <uncomment and complete this line>
6b698a21 1845auth_param basic children 5
1846auth_param basic realm Squid proxy-caching web server
1847auth_param basic credentialsttl 2 hours
1848NOCOMMENT_END
1849DOC_END
0976f8db 1850
6b698a21 1851NAME: authenticate_cache_garbage_interval
1852TYPE: time_t
1853DEFAULT: 1 hour
1854LOC: Config.authenticateGCInterval
1855DOC_START
1856 The time period between garbage collection across the
1857 username cache. This is a tradeoff between memory utilisation
1858 (long intervals - say 2 days) and CPU (short intervals -
1859 say 1 minute). Only change if you have good reason to.
1860DOC_END
0976f8db 1861
6b698a21 1862NAME: authenticate_ttl
1863TYPE: time_t
1864DEFAULT: 1 hour
1865LOC: Config.authenticateTTL
1866DOC_START
1867 The time a user & their credentials stay in the logged in
1868 user cache since their last request. When the garbage
1869 interval passes, all user credentials that have passed their
1870 TTL are removed from memory.
1871DOC_END
0976f8db 1872
6b698a21 1873NAME: authenticate_ip_ttl
1874TYPE: time_t
1875LOC: Config.authenticateIpTTL
1876DEFAULT: 0 seconds
1877DOC_START
1878 If you use proxy authentication and the 'max_user_ip' ACL,
1879 this directive controls how long Squid remembers the IP
1880 addresses associated with each user. Use a small value
1881 (e.g., 60 seconds) if your users might change addresses
1882 quickly, as is the case with dialups. You might be safe
1883 using a larger value (e.g., 2 hours) in a corporate LAN
1884 environment with relatively static address assignments.
1885DOC_END
0976f8db 1886
6b698a21 1887NAME: external_acl_type
1888TYPE: externalAclHelper
1889LOC: Config.externalAclHelperList
1890DEFAULT: none
1891DOC_START
1892 This option defines external acl classes using a helper program
1893 to look up the status
1894
1895 external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..]
1896
1897 Options:
0976f8db 1898
6b698a21 1899 ttl=n TTL in seconds for cached results (defaults to 3600
1900 for 1 hour)
1901 negative_ttl=n
1902 TTL for cached negative lookups (default same
1903 as ttl)
1904 children=n Number of acl helper processes spawn to service
1905 external acl lookups of this type.
1906 concurrency=n concurrency level per process. Use 0 for old style
1907 helpers who can only process a single request at a
1908 time.
1909 cache=n result cache size, 0 is unbounded (default)
1910 grace=n Percentage remaining of TTL where a refresh of a
1911 cached entry should be initiated without needing to
1912 wait for a new reply. (default 0 for no grace period)
1913
1914 FORMAT specifications
1915
1916 %LOGIN Authenticated user login name
1917 %IDENT Ident user name
1918 %SRC Client IP
1919 %SRCPORT Client source port
1920 %DST Requested host
1921 %PROTO Requested protocol
1922 %PORT Requested port
1923 %PATH Requested URL path
1924 %METHOD Request method
1925 %MYADDR Squid interface address
1926 %MYPORT Squid http_port number
1927 %USER_CERT_xx SSL User certificate attribute xx
1928 %USER_CA_xx SSL User certificate CA attribute xx
1929 %{Header} HTTP request header
1930 %{Hdr:member} HTTP request header list member
1931 %{Hdr:;member}
1932 HTTP request header list member using ; as
1933 list separator. ; can be any non-alphanumeric
1934 character.
1935
1936 In addition, any string specified in the referencing acl will
1937 also be included in the helper request line, after the specified
1938 formats (see the "acl external" directive)
1939
1940 The helper receives lines per the above format specification,
1941 and returns lines starting with OK or ERR indicating the validity
1942 of the request and optionally followed by additional keywords with
1943 more details.
1944
1945 General result syntax:
1946
1947 OK/ERR keyword=value ...
0976f8db 1948
6b698a21 1949 Defined keywords:
0976f8db 1950
6b698a21 1951 user= The users name (login)
1952 password= The users password (for login= cache_peer option)
1953 message= Message describing the reason. Available as %o
1954 in error pages
1955 tag= Apply a tag to a request (for both ERR and OK results)
1956 Only sets a tag, does not alter existing tags.
1957 log= String to be logged in access.log. Available as
1958 %ea in logformat specifications
0976f8db 1959
6b698a21 1960 Keyword values need to be enclosed in quotes if they may
1961 contain whitespace, or the whitespace escaped using \. Any
1962 quotes or \ characters within the keyword value must be \
1963 escaped.
1964DOC_END
0976f8db 1965
6b698a21 1966COMMENT_START
1967 OPTIONS FOR TUNING THE CACHE
1968 -----------------------------------------------------------------------------
1969COMMENT_END
0976f8db 1970
6b698a21 1971NAME: wais_relay_host
1972TYPE: string
1973DEFAULT: none
1974LOC: Config.Wais.relayHost
1975DOC_NONE
0976f8db 1976
6b698a21 1977NAME: wais_relay_port
1978TYPE: ushort
1979DEFAULT: 0
1980LOC: Config.Wais.relayPort
1981DOC_START
1982 Relay WAIS request to host (1st arg) at port (2 arg).
1983DOC_END
0976f8db 1984
0976f8db 1985
6b698a21 1986NAME: request_header_max_size
1987COMMENT: (KB)
1988TYPE: b_size_t
1989DEFAULT: 10 KB
1990LOC: Config.maxRequestHeaderSize
1991DOC_START
1992 This specifies the maximum size for HTTP headers in a request.
1993 Request headers are usually relatively small (about 512 bytes).
1994 Placing a limit on the request header size will catch certain
1995 bugs (for example with persistent connections) and possibly
1996 buffer-overflow or denial-of-service attacks.
1997DOC_END
0976f8db 1998
6b698a21 1999NAME: request_body_max_size
2000COMMENT: (KB)
2001TYPE: b_size_t
2002DEFAULT: 0 KB
2003LOC: Config.maxRequestBodySize
2004DOC_START
2005 This specifies the maximum size for an HTTP request body.
2006 In other words, the maximum size of a PUT/POST request.
2007 A user who attempts to send a request with a body larger
2008 than this limit receives an "Invalid Request" error message.
2009 If you set this parameter to a zero (the default), there will
2010 be no limit imposed.
2011DOC_END
0976f8db 2012
6b698a21 2013NAME: refresh_pattern
2014TYPE: refreshpattern
2015LOC: Config.Refresh
2016DEFAULT: none
2017DOC_START
2018 usage: refresh_pattern [-i] regex min percent max [options]
0976f8db 2019
6b698a21 2020 By default, regular expressions are CASE-SENSITIVE. To make
2021 them case-insensitive, use the -i option.
0976f8db 2022
6b698a21 2023 'Min' is the time (in minutes) an object without an explicit
2024 expiry time should be considered fresh. The recommended
2025 value is 0, any higher values may cause dynamic applications
2026 to be erroneously cached unless the application designer
2027 has taken the appropriate actions.
0976f8db 2028
6b698a21 2029 'Percent' is a percentage of the objects age (time since last
2030 modification age) an object without explicit expiry time
2031 will be considered fresh.
0976f8db 2032
6b698a21 2033 'Max' is an upper limit on how long objects without an explicit
2034 expiry time will be considered fresh.
0976f8db 2035
6b698a21 2036 options: override-expire
2037 override-lastmod
2038 reload-into-ims
2039 ignore-reload
0976f8db 2040
6b698a21 2041 override-expire enforces min age even if the server
2042 sent a Expires: header. Doing this VIOLATES the HTTP
2043 standard. Enabling this feature could make you liable
2044 for problems which it causes.
0976f8db 2045
6b698a21 2046 override-lastmod enforces min age even on objects
2047 that was modified recently.
0976f8db 2048
6b698a21 2049 reload-into-ims changes client no-cache or ``reload''
2050 to If-Modified-Since requests. Doing this VIOLATES the
2051 HTTP standard. Enabling this feature could make you
2052 liable for problems which it causes.
0976f8db 2053
6b698a21 2054 ignore-reload ignores a client no-cache or ``reload''
2055 header. Doing this VIOLATES the HTTP standard. Enabling
2056 this feature could make you liable for problems which
2057 it causes.
2058
2059 Basically a cached object is:
0976f8db 2060
6b698a21 2061 FRESH if expires < now, else STALE
2062 STALE if age > max
2063 FRESH if lm-factor < percent, else STALE
2064 FRESH if age < min
2065 else STALE
0976f8db 2066
6b698a21 2067 The refresh_pattern lines are checked in the order listed here.
2068 The first entry which matches is used. If none of the entries
2069 match, then the default will be used.
0976f8db 2070
6b698a21 2071 Note, you must uncomment all the default lines if you want
2072 to change one. The default setting is only active if none is
2073 used.
0976f8db 2074
6b698a21 2075Suggested default:
2076NOCOMMENT_START
2077refresh_pattern ^ftp: 1440 20% 10080
2078refresh_pattern ^gopher: 1440 0% 1440
2079refresh_pattern . 0 20% 4320
2080NOCOMMENT_END
2081DOC_END
0976f8db 2082
6b698a21 2083NAME: quick_abort_min
2084COMMENT: (KB)
2085TYPE: kb_size_t
2086DEFAULT: 16 KB
2087LOC: Config.quickAbort.min
2088DOC_NONE
0976f8db 2089
6b698a21 2090NAME: quick_abort_max
2091COMMENT: (KB)
2092TYPE: kb_size_t
2093DEFAULT: 16 KB
2094LOC: Config.quickAbort.max
2095DOC_NONE
0976f8db 2096
6b698a21 2097NAME: quick_abort_pct
2098COMMENT: (percent)
2099TYPE: int
2100DEFAULT: 95
2101LOC: Config.quickAbort.pct
2102DOC_START
2103 The cache by default continues downloading aborted requests
2104 which are almost completed (less than 16 KB remaining). This
2105 may be undesirable on slow (e.g. SLIP) links and/or very busy
2106 caches. Impatient users may tie up file descriptors and
2107 bandwidth by repeatedly requesting and immediately aborting
2108 downloads.
0976f8db 2109
6b698a21 2110 When the user aborts a request, Squid will check the
2111 quick_abort values to the amount of data transfered until
2112 then.
0976f8db 2113
6b698a21 2114 If the transfer has less than 'quick_abort_min' KB remaining,
2115 it will finish the retrieval.
0976f8db 2116
6b698a21 2117 If the transfer has more than 'quick_abort_max' KB remaining,
2118 it will abort the retrieval.
0976f8db 2119
6b698a21 2120 If more than 'quick_abort_pct' of the transfer has completed,
2121 it will finish the retrieval.
0976f8db 2122
6b698a21 2123 If you do not want any retrieval to continue after the client
2124 has aborted, set both 'quick_abort_min' and 'quick_abort_max'
2125 to '0 KB'.
0976f8db 2126
6b698a21 2127 If you want retrievals to always continue if they are being
2128 cached then set 'quick_abort_min' to '-1 KB'.
2129DOC_END
0976f8db 2130
6b698a21 2131NAME: read_ahead_gap
2132COMMENT: buffer-size
2133TYPE: kb_size_t
2134LOC: Config.readAheadGap
2135DEFAULT: 16 KB
2136DOC_START
2137 The amount of data the cache will buffer ahead of what has been
2138 sent to the client when retrieving an object from another server.
2139DOC_END
0976f8db 2140
6b698a21 2141NAME: negative_ttl
2142COMMENT: time-units
2143TYPE: time_t
2144LOC: Config.negativeTtl
2145DEFAULT: 5 minutes
2146DOC_START
2147 Time-to-Live (TTL) for failed requests. Certain types of
2148 failures (such as "connection refused" and "404 Not Found") are
2149 negatively-cached for a configurable amount of time. The
2150 default is 5 minutes. Note that this is different from
2151 negative caching of DNS lookups.
2152DOC_END
0976f8db 2153
0976f8db 2154
6b698a21 2155NAME: positive_dns_ttl
2156COMMENT: time-units
2157TYPE: time_t
2158LOC: Config.positiveDnsTtl
2159DEFAULT: 6 hours
2160DOC_START
2161 Time-to-Live (TTL) for positive caching of successful DNS lookups.
2162 Default is 6 hours (360 minutes). If you want to minimize the
2163 use of Squid's ipcache, set this to 1, not 0.
2164DOC_END
0976f8db 2165
0976f8db 2166
6b698a21 2167NAME: negative_dns_ttl
2168COMMENT: time-units
2169TYPE: time_t
2170LOC: Config.negativeDnsTtl
2171DEFAULT: 5 minutes
2172DOC_START
2173 Time-to-Live (TTL) for negative caching of failed DNS lookups.
2174DOC_END
0976f8db 2175
6b698a21 2176NAME: range_offset_limit
2177COMMENT: (bytes)
2178TYPE: b_size_t
2179LOC: Config.rangeOffsetLimit
2180DEFAULT: 0 KB
2181DOC_START
2182 Sets a upper limit on how far into the the file a Range request
2183 may be to cause Squid to prefetch the whole file. If beyond this
2184 limit then Squid forwards the Range request as it is and the result
2185 is NOT cached.
0976f8db 2186
6b698a21 2187 This is to stop a far ahead range request (lets say start at 17MB)
2188 from making Squid fetch the whole object up to that point before
2189 sending anything to the client.
0976f8db 2190
6b698a21 2191 A value of -1 causes Squid to always fetch the object from the
2192 beginning so that it may cache the result. (2.0 style)
0976f8db 2193
6b698a21 2194 A value of 0 causes Squid to never fetch more than the
2195 client requested. (default)
2196DOC_END
0976f8db 2197
0976f8db 2198
6b698a21 2199COMMENT_START
2200 TIMEOUTS
2201 -----------------------------------------------------------------------------
2202COMMENT_END
0976f8db 2203
6b698a21 2204NAME: connect_timeout
2205COMMENT: time-units
2206TYPE: time_t
2207LOC: Config.Timeout.connect
2208DEFAULT: 2 minutes
2209DOC_START
2210 Some systems (notably Linux) can not be relied upon to properly
2211 time out connect(2) requests. Therefore the Squid process
2212 enforces its own timeout on server connections. This parameter
2213 specifies how long to wait for the connect to complete. The
2214 default is two minutes (120 seconds).
2215DOC_END
0976f8db 2216
6b698a21 2217NAME: peer_connect_timeout
2218COMMENT: time-units
2219TYPE: time_t
2220LOC: Config.Timeout.peer_connect
2221DEFAULT: 30 seconds
2222DOC_START
2223 This parameter specifies how long to wait for a pending TCP
2224 connection to a peer cache. The default is 30 seconds. You
2225 may also set different timeout values for individual neighbors
2226 with the 'connect-timeout' option on a 'cache_peer' line.
2227DOC_END
0976f8db 2228
6b698a21 2229NAME: read_timeout
2230COMMENT: time-units
2231TYPE: time_t
2232LOC: Config.Timeout.read
2233DEFAULT: 15 minutes
2234DOC_START
2235 The read_timeout is applied on server-side connections. After
2236 each successful read(), the timeout will be extended by this
2237 amount. If no data is read again after this amount of time,
2238 the request is aborted and logged with ERR_READ_TIMEOUT. The
2239 default is 15 minutes.
2240DOC_END
0976f8db 2241
0976f8db 2242
6b698a21 2243NAME: request_timeout
2244TYPE: time_t
2245LOC: Config.Timeout.request
2246DEFAULT: 5 minutes
2247DOC_START
2248 How long to wait for an HTTP request after initial
2249 connection establishment.
2250DOC_END
0976f8db 2251
0976f8db 2252
6b698a21 2253NAME: persistent_request_timeout
2254TYPE: time_t
2255LOC: Config.Timeout.persistent_request
2256DEFAULT: 1 minute
2257DOC_START
2258 How long to wait for the next HTTP request on a persistent
2259 connection after the previous request completes.
2260DOC_END
0976f8db 2261
0976f8db 2262
6b698a21 2263NAME: client_lifetime
2264COMMENT: time-units
2265TYPE: time_t
2266LOC: Config.Timeout.lifetime
2267DEFAULT: 1 day
2268DOC_START
2269 The maximum amount of time that a client (browser) is allowed to
2270 remain connected to the cache process. This protects the Cache
2271 from having a lot of sockets (and hence file descriptors) tied up
2272 in a CLOSE_WAIT state from remote clients that go away without
2273 properly shutting down (either because of a network failure or
2274 because of a poor client implementation). The default is one
2275 day, 1440 minutes.
2276
2277 NOTE: The default value is intended to be much larger than any
2278 client would ever need to be connected to your cache. You
2279 should probably change client_lifetime only as a last resort.
2280 If you seem to have many client connections tying up
2281 filedescriptors, we recommend first tuning the read_timeout,
2282 request_timeout, persistent_request_timeout and quick_abort values.
2283DOC_END
2284
2285NAME: half_closed_clients
2286TYPE: onoff
2287LOC: Config.onoff.half_closed_clients
2288DEFAULT: on
2289DOC_START
2290 Some clients may shutdown the sending side of their TCP
2291 connections, while leaving their receiving sides open. Sometimes,
2292 Squid can not tell the difference between a half-closed and a
2293 fully-closed TCP connection. By default, half-closed client
2294 connections are kept open until a read(2) or write(2) on the
2295 socket returns an error. Change this option to 'off' and Squid
2296 will immediately close client connections when read(2) returns
2297 "no more data to read."
2298DOC_END
0976f8db 2299
6b698a21 2300NAME: pconn_timeout
2301TYPE: time_t
2302LOC: Config.Timeout.pconn
2303DEFAULT: 120 seconds
2304DOC_START
2305 Timeout for idle persistent connections to servers and other
2306 proxies.
2307DOC_END
0976f8db 2308
6b698a21 2309NAME: ident_timeout
2310TYPE: time_t
2311IFDEF: USE_IDENT
2312LOC: Config.Timeout.ident
2313DEFAULT: 10 seconds
2314DOC_START
2315 Maximum time to wait for IDENT lookups to complete.
2316
2317 If this is too high, and you enabled IDENT lookups from untrusted
2318 users, then you might be susceptible to denial-of-service by having
2319 many ident requests going at once.
2320DOC_END
0976f8db 2321
0976f8db 2322
6b698a21 2323NAME: shutdown_lifetime
2324COMMENT: time-units
2325TYPE: time_t
2326LOC: Config.shutdownLifetime
2327DEFAULT: 30 seconds
2328DOC_START
2329 When SIGTERM or SIGHUP is received, the cache is put into
2330 "shutdown pending" mode until all active sockets are closed.
2331 This value is the lifetime to set for all open descriptors
2332 during shutdown mode. Any active clients after this many
2333 seconds will receive a 'timeout' message.
2334DOC_END
9e7dbc51 2335
6b698a21 2336COMMENT_START
2337 ACCESS CONTROLS
2338 -----------------------------------------------------------------------------
2339COMMENT_END
9e7dbc51 2340
6b698a21 2341NAME: acl
2342TYPE: acl
2343LOC: Config.aclList
2344DEFAULT: none
2345DOC_START
2346 Defining an Access List
9e7dbc51 2347
6b698a21 2348 acl aclname acltype string1 ...
2349 acl aclname acltype "file" ...
9e7dbc51 2350
6b698a21 2351 when using "file", the file should contain one item per line
9e7dbc51 2352
6b698a21 2353 acltype is one of the types described below
9e7dbc51 2354
6b698a21 2355 By default, regular expressions are CASE-SENSITIVE. To make
2356 them case-insensitive, use the -i option.
9e7dbc51 2357
6b698a21 2358 acl aclname src ip-address/netmask ... (clients IP address)
2359 acl aclname src addr1-addr2/netmask ... (range of addresses)
2360 acl aclname dst ip-address/netmask ... (URL host's IP address)
2361 acl aclname myip ip-address/netmask ... (local socket IP address)
9e7dbc51 2362
6b698a21 2363 acl aclname srcdomain .foo.com ... # reverse lookup, client IP
2364 acl aclname dstdomain .foo.com ... # Destination server from URL
2365 acl aclname srcdom_regex [-i] xxx ... # regex matching client name
2366 acl aclname dstdom_regex [-i] xxx ... # regex matching server
9e7dbc51 2367 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
2368 # based URL is used. The name "none" is used if the reverse lookup
2369 # fails.
2370
6b698a21 2371 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
2372 day-abbrevs:
2373 S - Sunday
2374 M - Monday
2375 T - Tuesday
2376 W - Wednesday
2377 H - Thursday
2378 F - Friday
2379 A - Saturday
2380 h1:m1 must be less than h2:m2
2381 acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
2382 acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path
2383 acl aclname port 80 70 21 ...
2384 acl aclname port 0-1024 ... # ranges allowed
2385 acl aclname myport 3128 ... # (local socket TCP port)
2386 acl aclname proto HTTP FTP ...
2387 acl aclname method GET POST ...
2388 acl aclname browser [-i] regexp ...
2389 # pattern match on User-Agent header
2390 acl aclname referer_regex [-i] regexp ...
2391 # pattern match on Referer header
9e7dbc51 2392 # Referer is highly unreliable, so use with care
6b698a21 2393 acl aclname ident username ...
2394 acl aclname ident_regex [-i] pattern ...
2395 # string match on ident output.
9e7dbc51 2396 # use REQUIRED to accept any non-null ident.
6b698a21 2397 acl aclname src_as number ...
2398 acl aclname dst_as number ...
2399 # Except for access control, AS numbers can be used for
9e7dbc51 2400 # routing of requests to specific caches. Here's an
2401 # example for routing all requests for AS#1241 and only
6468fe10 2402 # those to mycache.mydomain.net:
2403 # acl asexample dst_as 1241
d87ebd78 2404 # cache_peer_access mycache.mydomain.net allow asexample
2405 # cache_peer_access mycache_mydomain.net deny all
6468fe10 2406
6b698a21 2407 acl aclname proxy_auth [-i] username ...
2408 acl aclname proxy_auth_regex [-i] pattern ...
2409 # list of valid usernames
c68e9c6b 2410 # use REQUIRED to accept any valid username.
73e67ee0 2411 #
2412 # NOTE: when a Proxy-Authentication header is sent but it is not
2413 # needed during ACL checking the username is NOT logged
2414 # in access.log.
c68e9c6b 2415 #
2416 # NOTE: proxy_auth requires a EXTERNAL authentication program
2417 # to check username/password combinations (see
f7d2a450 2418 # auth_param directive).
c68e9c6b 2419 #
d048c262 2420 # NOTE: proxy_auth can't be used in a transparent proxy as
2421 # the browser needs to be configured for using a proxy in order
2422 # to respond to proxy authentication.
934b03fc 2423
6b698a21 2424 acl aclname snmp_community string ...
2425 # A community string to limit access to your SNMP Agent
dba79ac5 2426 # Example:
96d88dcb 2427 #
dba79ac5 2428 # acl snmppublic snmp_community public
2429
6b698a21 2430 acl aclname maxconn number
2431 # This will be matched when the client's IP address has
9bc73deb 2432 # more than <number> HTTP connections established.
2433
6b698a21 2434 acl aclname max_user_ip [-s] number
2435 # This will be matched when the user attempts to log in from more
c23e89cd 2436 # than <number> different ip addresses. The authenticate_ip_ttl
60d096f4 2437 # parameter controls the timeout on the ip entries.
be5caa55 2438 # If -s is specified then the limit is strict, denying browsing
2439 # from any further IP addresses until the ttl has expired. Without
c23e89cd 2440 # -s Squid will just annoy the user by "randomly" denying requests.
be5caa55 2441 # (the counter is then reset each time the limit is reached and a
2442 # request is denied)
2443 # NOTE: in acceleration mode or where there is mesh of child proxies,
c23e89cd 2444 # clients may appear to come from multiple addresses if they are
be5caa55 2445 # going through proxy farms, so a limit of 1 may cause user problems.
60d096f4 2446
cccac0a2 2447 acl aclname req_mime_type mime-type1 ...
2448 # regex match agains the mime type of the request generated
ba2b31a8 2449 # by the client. Can be used to detect file upload or some
2450 # types HTTP tunelling requests.
2451 # NOTE: This does NOT match the reply. You cannot use this
2452 # to match the returned file type.
c68e9c6b 2453
cccac0a2 2454 acl aclname rep_mime_type mime-type1 ...
2455 # regex match against the mime type of the reply recieved by
c4ab8329 2456 # squid. Can be used to detect file download or some
2457 # types HTTP tunelling requests.
2458 # NOTE: This has no effect in http_access rules. It only has
2459 # effect in rules that affect the reply data stream such as
2460 # http_reply_access.
2461
cccac0a2 2462 acl acl_name external class_name [arguments...]
2463 # external ACL lookup via a helper class defined by the
d9572179 2464 # external_acl_type directive.
c4ab8329 2465
cccac0a2 2466 acl aclname user_cert attribute values...
2467 # match against attributes in a user SSL certificate
a7ad6e4e 2468 # attribute is one of DN/C/O/CN/L/ST
2469
cccac0a2 2470 acl aclname ca_cert attribute values...
2471 # match against attributes a users issuing CA SSL certificate
a7ad6e4e 2472 # attribute is one of DN/C/O/CN/L/ST
2473
cccac0a2 2474 acl aclname ext_user username ...
2475 acl aclname ext_user_regex [-i] pattern ...
2476 # string match on username returned by external acl processing
d95b862f 2477 # use REQUIRED to accept any non-null user name.
2478
cccac0a2 2479Examples:
2480acl myexample dst_as 1241
2481acl password proxy_auth REQUIRED
2482acl fileupload req_mime_type -i ^multipart/form-data$
2483acl javascript rep_mime_type -i ^application/x-javascript$
c68e9c6b 2484
cccac0a2 2485NOCOMMENT_START
6b53c392 2486#Recommended minimum configuration:
cccac0a2 2487acl all src 0.0.0.0/0.0.0.0
2488acl manager proto cache_object
2489acl localhost src 127.0.0.1/255.255.255.255
2490acl to_localhost dst 127.0.0.0/8
2491acl SSL_ports port 443 563
2492acl Safe_ports port 80 # http
2493acl Safe_ports port 21 # ftp
2494acl Safe_ports port 443 563 # https, snews
2495acl Safe_ports port 70 # gopher
2496acl Safe_ports port 210 # wais
2497acl Safe_ports port 1025-65535 # unregistered ports
2498acl Safe_ports port 280 # http-mgmt
2499acl Safe_ports port 488 # gss-http
2500acl Safe_ports port 591 # filemaker
2501acl Safe_ports port 777 # multiling http
2502acl CONNECT method CONNECT
2503NOCOMMENT_END
2504DOC_END
2505
2506NAME: http_access
2507TYPE: acl_access
2508LOC: Config.accessList.http
2509DEFAULT: none
2510DEFAULT_IF_NONE: deny all
2511DOC_START
2512 Allowing or Denying access based on defined access lists
2513
2514 Access to the HTTP port:
2515 http_access allow|deny [!]aclname ...
2516
2517 NOTE on default values:
2518
2519 If there are no "access" lines present, the default is to deny
2520 the request.
2521
2522 If none of the "access" lines cause a match, the default is the
2523 opposite of the last line in the list. If the last line was
2524 deny, then the default is allow. Conversely, if the last line
2525 is allow, the default will be deny. For these reasons, it is a
2526 good idea to have an "deny all" or "allow all" entry at the end
2527 of your access lists to avoid potential confusion.
2528
2529NOCOMMENT_START
6b53c392 2530#Recommended minimum configuration:
2531#
2532# Only allow cachemgr access from localhost
cccac0a2 2533http_access allow manager localhost
2534http_access deny manager
6b53c392 2535# Deny requests to unknown ports
cccac0a2 2536http_access deny !Safe_ports
6b53c392 2537# Deny CONNECT to other than SSL ports
cccac0a2 2538http_access deny CONNECT !SSL_ports
c68e9c6b 2539#
4cc6eb12 2540# We strongly recommend to uncomment the following to protect innocent
2541# web applications running on the proxy server who think that the only
2542# one who can access services on "localhost" is a local user
2543#http_access deny to_localhost
c68e9c6b 2544#
4cc6eb12 2545# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
2546
59f4a63e 2547# Example rule allowing access from your local networks. Adapt
b9d7fe3e 2548# to list your (internal) IP networks from where browsing should
2549# be allowed
2550#acl our_networks src 192.168.1.0/24 192.168.2.0/24
2551#http_access allow our_networks
2552
6b53c392 2553# And finally deny all other access to this proxy
cccac0a2 2554http_access deny all
2555NOCOMMENT_END
2556DOC_END
c4ab8329 2557
cccac0a2 2558NAME: http_reply_access
2559TYPE: acl_access
2560LOC: Config.accessList.reply
2561DEFAULT: none
2562DEFAULT_IF_NONE: allow all
2563DOC_START
2564 Allow replies to client requests. This is complementary to http_access.
c4ab8329 2565
cccac0a2 2566 http_reply_access allow|deny [!] aclname ...
0976f8db 2567
cccac0a2 2568 NOTE: if there are no access lines present, the default is to allow
2569 all replies
0976f8db 2570
cccac0a2 2571 If none of the access lines cause a match, then the opposite of the
2572 last line will apply. Thus it is good practice to end the rules
2573 with an "allow all" or "deny all" entry.
0976f8db 2574
cccac0a2 2575NOCOMMENT_START
c4ab8329 2576#Recommended minimum configuration:
2577#
2578# Insert your own rules here.
2579#
2580#
2581# and finally allow by default
cccac0a2 2582http_reply_access allow all
2583NOCOMMENT_END
2584DOC_END
6b53c392 2585
6b53c392 2586
cccac0a2 2587NAME: icp_access
2588TYPE: acl_access
2589LOC: Config.accessList.icp
2590DEFAULT: none
2591DEFAULT_IF_NONE: deny all
2592DOC_START
2593 Allowing or Denying access to the ICP port based on defined
2594 access lists
934b03fc 2595
cccac0a2 2596 icp_access allow|deny [!]aclname ...
0976f8db 2597
cccac0a2 2598 See http_access for details
0976f8db 2599
cccac0a2 2600NOCOMMENT_START
403b5e7b 2601#Allow ICP queries from everyone
cccac0a2 2602icp_access allow all
2603NOCOMMENT_END
2604DOC_END
934b03fc 2605
2606
cccac0a2 2607NAME: miss_access
2608TYPE: acl_access
2609LOC: Config.accessList.miss
2610DEFAULT: none
2611DOC_START
2612 Use to force your neighbors to use you as a sibling instead of
2613 a parent. For example:
934b03fc 2614
cccac0a2 2615 acl localclients src 172.16.0.0/16
2616 miss_access allow localclients
2617 miss_access deny !localclients
934b03fc 2618
cccac0a2 2619 This means that only your local clients are allowed to fetch
2620 MISSES and all other clients can only fetch HITS.
934b03fc 2621
cccac0a2 2622 By default, allow all clients who passed the http_access rules
2623 to fetch MISSES from us.
6b53c392 2624
cccac0a2 2625NOCOMMENT_START
6b53c392 2626#Default setting:
2627# miss_access allow all
cccac0a2 2628NOCOMMENT_END
2629DOC_END
2630
2631
2632NAME: cache_peer_access
2633TYPE: peer_access
2634DEFAULT: none
2635LOC: none
2636DOC_START
2637 Similar to 'cache_peer_domain' but provides more flexibility by
2638 using ACL elements.
2639
2640 cache_peer_access cache-host allow|deny [!]aclname ...
2641
2642 The syntax is identical to 'http_access' and the other lists of
2643 ACL elements. See the comments for 'http_access' below, or
2644 the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html).
2645DOC_END
2646
2647NAME: ident_lookup_access
2648TYPE: acl_access
2649IFDEF: USE_IDENT
2650DEFAULT: none
2651DEFAULT_IF_NONE: deny all
2652LOC: Config.accessList.identLookup
2653DOC_START
2654 A list of ACL elements which, if matched, cause an ident
2655 (RFC 931) lookup to be performed for this request. For
2656 example, you might choose to always perform ident lookups
2657 for your main multi-user Unix boxes, but not for your Macs
2658 and PCs. By default, ident lookups are not performed for
2659 any requests.
2660
2661 To enable ident lookups for specific client addresses, you
2662 can follow this example:
2663
2664 acl ident_aware_hosts src 198.168.1.0/255.255.255.0
2665 ident_lookup_access allow ident_aware_hosts
2666 ident_lookup_access deny all
2667
2668 Only src type ACL checks are fully supported. A src_domain
2669 ACL might work at times, but it will not always provide
2670 the correct result.
2671DOC_END
2672
2673NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoing_dscp
2674TYPE: acl_tos
2675DEFAULT: none
2676LOC: Config.accessList.outgoing_tos
2677DOC_START
2678 Allows you to select a TOS/Diffserv value to mark outgoing
2679 connections with, based on the username or source address
2680 making the request.
2681
2682 tcp_outgoing_tos ds-field [!]aclname ...
2683
2684 Example where normal_service_net uses the TOS value 0x00
2685 and normal_service_net uses 0x20
2686
2687 acl normal_service_net src 10.0.0.0/255.255.255.0
2688 acl good_service_net src 10.0.1.0/255.255.255.0
2689 tcp_outgoing_tos 0x00 normal_service_net 0x00
2690 tcp_outgoing_tos 0x20 good_service_net
2691
2692 TOS/DSCP values really only have local significance - so you should
2693 know what you're specifying. For more, see RFC 2474
2694
2695 The TOS/DSCP byte must be exactly that - a byte, value 0 - 255, or
2696 "default" to use whatever default your host has.
2697
2698 Processing proceeds in the order specified, and stops at first fully
2699 matching line.
2700DOC_END
2701
2702NAME: tcp_outgoing_address
2703TYPE: acl_address
2704DEFAULT: none
2705LOC: Config.accessList.outgoing_address
2706DOC_START
2707 Allows you to map requests to different outgoing IP addresses
2708 based on the username or sourceaddress of the user making
2709 the request.
2710
2711 tcp_outgoing_address ipaddr [[!]aclname] ...
2712
2713 Example where requests from 10.0.0.0/24 will be forwareded
2714 with source address 10.1.0.1, 10.0.2.0/24 forwarded with
2715 source address 10.1.0.2 and the rest will be forwarded with
2716 source address 10.1.0.3.
2717
2718 acl normal_service_net src 10.0.0.0/255.255.255.0
2719 acl good_service_net src 10.0.1.0/255.255.255.0
2720 tcp_outgoing_address 10.0.0.1 normal_service_net
2721 tcp_outgoing_address 10.0.0.2 good_service_net
2722 tcp_outgoing_address 10.0.0.3
2723
2724 Processing proceeds in the order specified, and stops at first fully
2725 matching line.
2726DOC_END
2727
2728NAME: reply_body_max_size
2729COMMENT: size [acl acl...]
2730TYPE: acl_b_size_t
2731DEFAULT: none
2732LOC: Config.ReplyBodySize
2733DOC_START
2734 This option specifies the maximum size of a reply body. It can be
2735 used to prevent users from downloading very large files, such as
2736 MP3's and movies. When the reply headers are recieved, the
2737 reply_body_max_size lines are processed, and the first line where
2738 all (if any) listed acls are true is used as the maximum body size
2739 for this reply.
2740
2741 This size is then checked twice. First when we get the reply headers,
2742 we check the content-length value. If the content length value exists
2743 and is larger than the allowed size, the request is denied and the
2744 user receives an error message that says "the request or reply
2745 is too large." If there is no content-length, and the reply
2746 size exceeds this limit, the client's connection is just closed
2747 and they will receive a partial reply.
2748
2749 WARNING: downstream caches probably can not detect a partial reply
2750 if there is no content-length header, so they will cache
2751 partial responses and give them out as hits. You should NOT
2752 use this option if you have downstream caches.
2753
2754 WARNING: A maximum size smaller than the size of squid's error messages
2755 will cause an infinite loop and crash squid. Ensure that the smallest
2756 non-zero value you use is greater that the maximum header size plus
2757 the size of your largest error page.
2758
2759 If you set this parameter none (the default), there will be
2760 no limit imposed.
2761DOC_END
2762
2763NAME: log_access
2764TYPE: acl_access
2765LOC: Config.accessList.log
2766DEFAULT: none
2767COMMENT: allow|deny acl acl...
2768DOC_START
2769 This options allows you to control which requests gets logged
2770 to access.log (see access_log directive). Requests denied for
2771 logging will also not be accounted for in performance counters.
2772DOC_END
0976f8db 2773
cccac0a2 2774COMMENT_START
2775 ADMINISTRATIVE PARAMETERS
2776 -----------------------------------------------------------------------------
2777COMMENT_END
2778
2779NAME: cache_mgr
2780TYPE: string
2781DEFAULT: webmaster
2782LOC: Config.adminEmail
2783DOC_START
2784 Email-address of local cache manager who will receive
2785 mail if the cache dies. The default is "webmaster."
2786DOC_END
2787
2788
2789NAME: cache_effective_user
2790TYPE: string
2791DEFAULT: nobody
2792LOC: Config.effectiveUser
2793DOC_NONE
2794
2795NAME: cache_effective_group
2796TYPE: string
2797DEFAULT: none
2798LOC: Config.effectiveGroup
2799DOC_START
2800
2801 If you start Squid as root, it will change its effective/real
2802 UID/GID to the UID/GID specified below. The default is to
2803 change to UID to nobody. If you define cache_effective_user,
2804 but not cache_effective_group, Squid sets the GID the
2805 effective user's default group ID (taken from the password
2806 file).
2807
2808 If Squid is not started as root, the cache_effective_user
2809 value is ignored and the GID value is unchanged by default.
2810 However, you can make Squid change its GID to another group
2811 that the process owner is a member of. Note that if Squid
2812 is not started as root then you cannot set http_port to a
2813 value lower than 1024.
2814DOC_END
2815
2816
2817NAME: visible_hostname
2818TYPE: string
2819LOC: Config.visibleHostname
2820DEFAULT: none
2821DOC_START
2822 If you want to present a special hostname in error messages, etc,
2823 then define this. Otherwise, the return value of gethostname()
2824 will be used. If you have multiple caches in a cluster and
2825 get errors about IP-forwarding you must set them to have individual
2826 names with this setting.
2827DOC_END
2828
2829
2830NAME: unique_hostname
2831TYPE: string
2832LOC: Config.uniqueHostname
2833DEFAULT: none
2834DOC_START
2835 If you want to have multiple machines with the same
2836 'visible_hostname' then you must give each machine a different
2837 'unique_hostname' so that forwarding loops can be detected.
2838DOC_END
2839
2840
2841NAME: hostname_aliases
2842TYPE: wordlist
2843LOC: Config.hostnameAliases
2844DEFAULT: none
2845DOC_START
2846 A list of other DNS names that your cache has.
2847DOC_END
0976f8db 2848
cccac0a2 2849COMMENT_START
2850 OPTIONS FOR THE CACHE REGISTRATION SERVICE
2851 -----------------------------------------------------------------------------
2852
2853 This section contains parameters for the (optional) cache
2854 announcement service. This service is provided to help
2855 cache administrators locate one another in order to join or
2856 create cache hierarchies.
2857
2858 An 'announcement' message is sent (via UDP) to the registration
2859 service by Squid. By default, the announcement message is NOT
2860 SENT unless you enable it with 'announce_period' below.
2861
2862 The announcement message includes your hostname, plus the
2863 following information from this configuration file:
2864
2865 http_port
2866 icp_port
2867 cache_mgr
2868
2869 All current information is processed regularly and made
2870 available on the Web at http://www.ircache.net/Cache/Tracker/.
2871COMMENT_END
2872
2873NAME: announce_period
2874TYPE: time_t
2875LOC: Config.Announce.period
2876DEFAULT: 0
2877DOC_START
2878 This is how frequently to send cache announcements. The
2879 default is `0' which disables sending the announcement
2880 messages.
2881
2882 To enable announcing your cache, just uncomment the line
2883 below.
2884
2885NOCOMMENT_START
9e7dbc51 2886#To enable announcing your cache, just uncomment the line below.
2887#announce_period 1 day
cccac0a2 2888NOCOMMENT_END
2889DOC_END
2890
2891
2892NAME: announce_host
2893TYPE: string
2894DEFAULT: tracker.ircache.net
2895LOC: Config.Announce.host
2896DOC_NONE
2897
2898NAME: announce_file
2899TYPE: string
2900DEFAULT: none
2901LOC: Config.Announce.file
2902DOC_NONE
2903
2904NAME: announce_port
2905TYPE: ushort
2906DEFAULT: 3131
2907LOC: Config.Announce.port
2908DOC_START
2909 announce_host and announce_port set the hostname and port
2910 number where the registration message will be sent.
2911
2912 Hostname will default to 'tracker.ircache.net' and port will
2913 default default to 3131. If the 'filename' argument is given,
2914 the contents of that file will be included in the announce
2915 message.
2916DOC_END
2917
2918NAME: httpd_accel_surrogate_id
2919IFDEF: ESI
2920TYPE: string
2921LOC: Config.Accel.surrogate_id
2922DEFAULT: unset-id
2923DOC_START
2924 Surrogates (http://www.esi.org/architecture_spec_1.0.html)
2925 need an identification token to allow control targeting. Because
2926 a farm of surrogates may all perform the same tasks, they may share
2927 an identification token.
2928DOC_END
2929
2930NAME: http_accel_surrogate_remote
2931IFDEF: ESI
2932COMMENT: on|off
2933TYPE: onoff
2934DEFAULT: off
2935LOC: Config.onoff.surrogate_is_remote
2936DOC_START
2937 Remote surrogates (such as those in a CDN) honour Surrogate-Control: no-store-remote.
2938 Set this to on to have squid behave as a remote surrogate.
2939DOC_END
2940
2941NAME: esi_parser
2942IFDEF: ESI
2943COMMENT: expat|custom
2944TYPE: string
2945LOC: ESIParser::Type
2946DEFAULT: custom
2947DOC_START
2948 ESI markup is not strictly XML compatible. The custom ESI parser
2949 will give higher performance, but cannot handle non ASCII character
2950 encodings.
2951DOC_END
0976f8db 2952
cccac0a2 2953COMMENT_START
2954 MISCELLANEOUS
2955 -----------------------------------------------------------------------------
2956COMMENT_END
2957
2958NAME: dns_testnames
2959TYPE: wordlist
2960LOC: Config.dns_testname_list
2961DEFAULT: none
2962DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com
2963DOC_START
2964 The DNS tests exit as soon as the first site is successfully looked up
2965
2966 This test can be disabled with the -D command line option.
2967DOC_END
2968
2969
2970NAME: logfile_rotate
2971TYPE: int
2972DEFAULT: 10
2973LOC: Config.Log.rotateNumber
2974DOC_START
2975 Specifies the number of logfile rotations to make when you
2976 type 'squid -k rotate'. The default is 10, which will rotate
2977 with extensions 0 through 9. Setting logfile_rotate to 0 will
2978 disable the rotation, but the logfiles are still closed and
2979 re-opened. This will enable you to rename the logfiles
2980 yourself just before sending the rotate signal.
2981
2982 Note, the 'squid -k rotate' command normally sends a USR1
2983 signal to the running squid process. In certain situations
2984 (e.g. on Linux with Async I/O), USR1 is used for other
2985 purposes, so -k rotate uses another signal. It is best to get
2986 in the habit of using 'squid -k rotate' instead of 'kill -USR1
2987 <pid>'.
2988DOC_END
2989
2990
2991NAME: append_domain
2992TYPE: string
2993LOC: Config.appendDomain
2994DEFAULT: none
2995DOC_START
2996 Appends local domain name to hostnames without any dots in
2997 them. append_domain must begin with a period.
2998
2999 Be warned that there today is Internet names with no dots in
3000 them using only top-domain names, so setting this may
3001 cause some Internet sites to become unavailable.
3002
3003Example:
3004 append_domain .yourdomain.com
3005DOC_END
3006
3007
3008NAME: tcp_recv_bufsize
3009COMMENT: (bytes)
3010TYPE: b_size_t
3011DEFAULT: 0 bytes
3012LOC: Config.tcpRcvBufsz
3013DOC_START
3014 Size of receive buffer to set for TCP sockets. Probably just
3015 as easy to change your kernel's default. Set to zero to use
3016 the default buffer size.
3017DOC_END
3018
3019NAME: err_html_text
3020TYPE: eol
3021LOC: Config.errHtmlText
3022DEFAULT: none
3023DOC_START
3024 HTML text to include in error messages. Make this a "mailto"
3025 URL to your admin address, or maybe just a link to your
3026 organizations Web page.
3027
3028 To include this in your error messages, you must rewrite
3029 the error template files (found in the "errors" directory).
3030 Wherever you want the 'err_html_text' line to appear,
3031 insert a %L tag in the error template file.
3032DOC_END
3033
3034NAME: email_err_data
3035COMMENT: on|off
3036TYPE: onoff
3037LOC: Config.onoff.emailErrData
3038DEFAULT: on
3039DOC_START
3040 If enabled, information about the occurred error will be
3041 included in the mailto links of the ERR pages (if %W is set)
3042 so that the email body then contains the data.
3043 Syntax is <A HREF="mailto:%w%W">%w</A>
3044DOC_END
3045
3046
3047NAME: deny_info
3048TYPE: denyinfo
3049LOC: Config.denyInfoList
3050DEFAULT: none
3051DOC_START
3052 Usage: deny_info err_page_name acl
3053 or deny_info http://... acl
3054 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
3055
3056 This can be used to return a ERR_ page for requests which
3057 do not pass the 'http_access' rules. A single ACL will cause
3058 the http_access check to fail. If a 'deny_info' line exists
3059 for that ACL then Squid returns a corresponding error page.
3060
3061 You may use ERR_ pages that come with Squid or create your own pages
3062 and put them into the configured errors/ directory.
3063
3064 Alternatively you can specify an error URL. The browsers will then
3065 get redirected (302) to the specified URL. %s in the redirection
3066 URL will be replaced by the requested URL.
3067
3068 Alternatively you can tell Squid to reset the TCP connection
3069 by specifying TCP_RESET.
3070DOC_END
3071
3072NAME: memory_pools
3073COMMENT: on|off
3074TYPE: onoff
3075DEFAULT: on
3076LOC: Config.onoff.mem_pools
3077DOC_START
3078 If set, Squid will keep pools of allocated (but unused) memory
3079 available for future use. If memory is a premium on your
3080 system and you believe your malloc library outperforms Squid
3081 routines, disable this.
3082DOC_END
3083
3084NAME: memory_pools_limit
3085COMMENT: (bytes)
3086TYPE: b_size_t
3087DEFAULT: none
3088LOC: Config.MemPools.limit
3089DOC_START
3090 Used only with memory_pools on:
3091 memory_pools_limit 50 MB
3092
3093 If set to a non-zero value, Squid will keep at most the specified
3094 limit of allocated (but unused) memory in memory pools. All free()
3095 requests that exceed this limit will be handled by your malloc
3096 library. Squid does not pre-allocate any memory, just safe-keeps
3097 objects that otherwise would be free()d. Thus, it is safe to set
3098 memory_pools_limit to a reasonably high value even if your
3099 configuration will use less memory.
3100
3101 If not set (default) or set to zero, Squid will keep all memory it
3102 can. That is, there will be no limit on the total amount of memory
3103 used for safe-keeping.
3104
3105 To disable memory allocation optimization, do not set
3106 memory_pools_limit to 0. Set memory_pools to "off" instead.
3107
3108 An overhead for maintaining memory pools is not taken into account
3109 when the limit is checked. This overhead is close to four bytes per
3110 object kept. However, pools may actually _save_ memory because of
3111 reduced memory thrashing in your malloc library.
3112DOC_END
3113
3114NAME: via
3115IFDEF: HTTP_VIOLATIONS
3116COMMENT: on|off
3117TYPE: onoff
3118DEFAULT: on
3119LOC: Config.onoff.via
3120DOC_START
3121 If set (default), Squid will include a Via header in requests and
3122 replies as required by RFC2616.
3123DOC_END
3124
3125NAME: forwarded_for
3126COMMENT: on|off
3127TYPE: onoff
3128DEFAULT: on
3129LOC: opt_forwarded_for
3130DOC_START
3131 If set, Squid will include your system's IP address or name
3132 in the HTTP requests it forwards. By default it looks like
3133 this:
3134
3135 X-Forwarded-For: 192.1.2.3
3136
3137 If you disable this, it will appear as
3138
3139 X-Forwarded-For: unknown
3140DOC_END
3141
3142NAME: log_icp_queries
3143COMMENT: on|off
3144TYPE: onoff
3145DEFAULT: on
3146LOC: Config.onoff.log_udp
3147DOC_START
3148 If set, ICP queries are logged to access.log. You may wish
3149 do disable this if your ICP load is VERY high to speed things
3150 up or to simplify log analysis.
3151DOC_END
3152
3153NAME: icp_hit_stale
3154COMMENT: on|off
3155TYPE: onoff
3156DEFAULT: off
3157LOC: Config.onoff.icp_hit_stale
3158DOC_START
3159 If you want to return ICP_HIT for stale cache objects, set this
3160 option to 'on'. If you have sibling relationships with caches
3161 in other administrative domains, this should be 'off'. If you only
3162 have sibling relationships with caches under your control, then
3163 it is probably okay to set this to 'on'.
3164 If set to 'on', then your siblings should use the option "allow-miss"
3165 on their cache_peer lines for connecting to you.
3166DOC_END
3167
3168
3169NAME: minimum_direct_hops
3170TYPE: int
3171DEFAULT: 4
3172LOC: Config.minDirectHops
3173DOC_START
3174 If using the ICMP pinging stuff, do direct fetches for sites
3175 which are no more than this many hops away.
3176DOC_END
3177
3178NAME: minimum_direct_rtt
3179TYPE: int
3180DEFAULT: 400
3181LOC: Config.minDirectRtt
3182DOC_START
3183 If using the ICMP pinging stuff, do direct fetches for sites
3184 which are no more than this many rtt milliseconds away.
3185DOC_END
3186
3187NAME: cachemgr_passwd
3188TYPE: cachemgrpasswd
3189DEFAULT: none
3190LOC: Config.passwd_list
3191DOC_START
3192 Specify passwords for cachemgr operations.
3193
3194 Usage: cachemgr_passwd password action action ...
3195
3196 Some valid actions are (see cache manager menu for a full list):
3197 5min
3198 60min
3199 asndb
3200 authenticator
3201 cbdata
3202 client_list
3203 comm_incoming
3204 config *
3205 counters
3206 delay
3207 digest_stats
3208 dns
3209 events
3210 filedescriptors
3211 fqdncache
3212 histograms
3213 http_headers
3214 info
3215 io
3216 ipcache
3217 mem
3218 menu
3219 netdb
3220 non_peers
3221 objects
3222 offline_toggle *
3223 pconn
3224 peer_select
3225 redirector
3226 refresh
3227 server_list
3228 shutdown *
3229 store_digest
3230 storedir
3231 utilization
3232 via_headers
3233 vm_objects
3234
3235 * Indicates actions which will not be performed without a
3236 valid password, others can be performed if not listed here.
3237
3238 To disable an action, set the password to "disable".
3239 To allow performing an action without a password, set the
3240 password to "none".
3241
3242 Use the keyword "all" to set the same password for all actions.
3243
3244Example:
3245 cachemgr_passwd secret shutdown
3246 cachemgr_passwd lesssssssecret info stats/objects
3247 cachemgr_passwd disable all
3248DOC_END
3249
3250NAME: store_avg_object_size
3251COMMENT: (kbytes)
3252TYPE: kb_size_t
3253DEFAULT: 13 KB
3254LOC: Config.Store.avgObjectSize
3255DOC_START
3256 Average object size, used to estimate number of objects your
3257 cache can hold. See doc/Release-Notes-1.1.txt. The default is
3258 13 KB.
3259DOC_END
3260
3261NAME: store_objects_per_bucket
3262TYPE: int
3263DEFAULT: 20
3264LOC: Config.Store.objectsPerBucket
3265DOC_START
3266 Target number of objects per bucket in the store hash table.
3267 Lowering this value increases the total number of buckets and
3268 also the storage maintenance rate. The default is 50.
3269DOC_END
3270
3271NAME: client_db
3272COMMENT: on|off
3273TYPE: onoff
3274DEFAULT: on
3275LOC: Config.onoff.client_db
3276DOC_START
3277 If you want to disable collecting per-client statistics, then
3278 turn off client_db here.
3279DOC_END
3280
3281
3282NAME: netdb_low
3283TYPE: int
3284DEFAULT: 900
3285LOC: Config.Netdb.low
3286DOC_NONE
3287
3288NAME: netdb_high
3289TYPE: int
3290DEFAULT: 1000
3291LOC: Config.Netdb.high
3292DOC_START
3293 The low and high water marks for the ICMP measurement
3294 database. These are counts, not percents. The defaults are
3295 900 and 1000. When the high water mark is reached, database
3296 entries will be deleted until the low mark is reached.
3297DOC_END
3298
3299
3300NAME: netdb_ping_period
3301TYPE: time_t
3302LOC: Config.Netdb.period
3303DEFAULT: 5 minutes
3304DOC_START
3305 The minimum period for measuring a site. There will be at
3306 least this much delay between successive pings to the same
3307 network. The default is five minutes.
3308DOC_END
3309
3310
3311NAME: query_icmp
3312COMMENT: on|off
3313TYPE: onoff
3314DEFAULT: off
3315LOC: Config.onoff.query_icmp
3316DOC_START
3317 If you want to ask your peers to include ICMP data in their ICP
3318 replies, enable this option.
3319
3320 If your peer has configured Squid (during compilation) with
3321 '--enable-icmp' then that peer will send ICMP pings to origin server
3322 sites of the URLs it receives. If you enable this option then the
3323 ICP replies from that peer will include the ICMP data (if available).
3324 Then, when choosing a parent cache, Squid will choose the parent with
3325 the minimal RTT to the origin server. When this happens, the
3326 hierarchy field of the access.log will be
3327 "CLOSEST_PARENT_MISS". This option is off by default.
3328DOC_END
3329
3330NAME: test_reachability
3331COMMENT: on|off
3332TYPE: onoff
3333DEFAULT: off
3334LOC: Config.onoff.test_reachability
3335DOC_START
3336 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
3337 instead of ICP_MISS if the target host is NOT in the ICMP
3338 database, or has a zero RTT.
3339DOC_END
3340
3341NAME: buffered_logs
3342COMMENT: on|off
3343TYPE: onoff
3344DEFAULT: off
3345LOC: Config.onoff.buffered_logs
3346DOC_START
3347 cache.log log file is written with stdio functions, and as such
3348 it can be buffered or unbuffered. By default it will be unbuffered.
3349 Buffering it can speed up the writing slightly (though you are
3350 unlikely to need to worry unless you run with tons of debugging
3351 enabled in which case performance will suffer badly anyway..).
3352DOC_END
3353
3354NAME: reload_into_ims
3355IFDEF: HTTP_VIOLATIONS
3356COMMENT: on|off
3357TYPE: onoff
3358DEFAULT: off
3359LOC: Config.onoff.reload_into_ims
3360DOC_START
3361 When you enable this option, client no-cache or ``reload''
3362 requests will be changed to If-Modified-Since requests.
3363 Doing this VIOLATES the HTTP standard. Enabling this
3364 feature could make you liable for problems which it
3365 causes.
3366
3367 see also refresh_pattern for a more selective approach.
3368DOC_END
3369
3370NAME: always_direct
3371TYPE: acl_access
3372LOC: Config.accessList.AlwaysDirect
3373DEFAULT: none
3374DOC_START
3375 Usage: always_direct allow|deny [!]aclname ...
3376
3377 Here you can use ACL elements to specify requests which should
3378 ALWAYS be forwarded directly to origin servers. For example,
3379 to always directly forward requests for local servers use
3380 something like:
3381
3382 acl local-servers dstdomain my.domain.net
3383 always_direct allow local-servers
3384
3385 To always forward FTP requests directly, use
3386
3387 acl FTP proto FTP
3388 always_direct allow FTP
3389
3390 NOTE: There is a similar, but opposite option named
3391 'never_direct'. You need to be aware that "always_direct deny
3392 foo" is NOT the same thing as "never_direct allow foo". You
3393 may need to use a deny rule to exclude a more-specific case of
3394 some other rule. Example:
3395
3396 acl local-external dstdomain external.foo.net
3397 acl local-servers dstdomain .foo.net
3398 always_direct deny local-external
3399 always_direct allow local-servers
3400
3401 This option replaces some v1.1 options such as local_domain
3402 and local_ip.
3403DOC_END
3404
3405NAME: never_direct
3406TYPE: acl_access
3407LOC: Config.accessList.NeverDirect
3408DEFAULT: none
3409DOC_START
3410 Usage: never_direct allow|deny [!]aclname ...
3411
3412 never_direct is the opposite of always_direct. Please read
3413 the description for always_direct if you have not already.
3414
3415 With 'never_direct' you can use ACL elements to specify
3416 requests which should NEVER be forwarded directly to origin
3417 servers. For example, to force the use of a proxy for all
3418 requests, except those in your local domain use something like:
3419
3420 acl local-servers dstdomain .foo.net
3421 acl all src 0.0.0.0/0.0.0.0
3422 never_direct deny local-servers
3423 never_direct allow all
3424
3425 or if squid is inside a firewall and there is local intranet
3426 servers inside the firewall then use something like:
3427
3428 acl local-intranet dstdomain .foo.net
3429 acl local-external dstdomain external.foo.net
3430 always_direct deny local-external
3431 always_direct allow local-intranet
3432 never_direct allow all
3433
3434 This option replaces some v1.1 options such as inside_firewall
3435 and firewall_ip.
3436DOC_END
3437
3438NAME: header_access
3439IFDEF: HTTP_VIOLATIONS
3440TYPE: http_header_access[]
3441LOC: Config.header_access
3442DEFAULT: none
3443DOC_START
3444 Usage: header_access header_name allow|deny [!]aclname ...
3445
3446 WARNING: Doing this VIOLATES the HTTP standard. Enabling
3447 this feature could make you liable for problems which it
3448 causes.
3449
3450 This option replaces the old 'anonymize_headers' and the
3451 older 'http_anonymizer' option with something that is much
3452 more configurable. This new method creates a list of ACLs
3453 for each header, allowing you very fine-tuned header
3454 mangling.
3455
3456 You can only specify known headers for the header name.
3457 Other headers are reclassified as 'Other'. You can also
3458 refer to all the headers with 'All'.
3459
3460 For example, to achieve the same behaviour as the old
3461 'http_anonymizer standard' option, you should use:
3462
3463 header_access From deny all
3464 header_access Referer deny all
3465 header_access Server deny all
3466 header_access User-Agent deny all
3467 header_access WWW-Authenticate deny all
3468 header_access Link deny all
3469
3470 Or, to reproduce the old 'http_anonymizer paranoid' feature
3471 you should use:
3472
3473 header_access Allow allow all
3474 header_access Authorization allow all
3475 header_access WWW-Authenticate allow all
3476 header_access Cache-Control allow all
3477 header_access Content-Encoding allow all
3478 header_access Content-Length allow all
3479 header_access Content-Type allow all
3480 header_access Date allow all
3481 header_access Expires allow all
3482 header_access Host allow all
3483 header_access If-Modified-Since allow all
3484 header_access Last-Modified allow all
3485 header_access Location allow all
3486 header_access Pragma allow all
3487 header_access Accept allow all
3488 header_access Accept-Charset allow all
3489 header_access Accept-Encoding allow all
3490 header_access Accept-Language allow all
3491 header_access Content-Language allow all
3492 header_access Mime-Version allow all
3493 header_access Retry-After allow all
3494 header_access Title allow all
3495 header_access Connection allow all
3496 header_access Proxy-Connection allow all
3497 header_access All deny all
3498
3499 By default, all headers are allowed (no anonymizing is
3500 performed).
3501DOC_END
3502
3503NAME: header_replace
3504IFDEF: HTTP_VIOLATIONS
3505TYPE: http_header_replace[]
3506LOC: Config.header_access
3507DEFAULT: none
3508DOC_START
3509 Usage: header_replace header_name message
3510 Example: header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit)
3511
3512 This option allows you to change the contents of headers
3513 denied with header_access above, by replacing them with
3514 some fixed string. This replaces the old fake_user_agent
3515 option.
3516
3517 By default, headers are removed if denied.
3518DOC_END
3519
3520NAME: icon_directory
3521TYPE: string
3522LOC: Config.icons.directory
3523DEFAULT: @DEFAULT_ICON_DIR@
3524DOC_START
3525 Where the icons are stored. These are normally kept in
3526 @DEFAULT_ICON_DIR@
3527DOC_END
3528
3529NAME: error_directory
3530TYPE: string
3531LOC: Config.errorDirectory
3532DEFAULT: @DEFAULT_ERROR_DIR@
3533DOC_START
3534 If you wish to create your own versions of the default
3535 (English) error files, either to customize them to suit your
3536 language or company copy the template English files to another
3537 directory and point this tag at them.
3538DOC_END
3539
3540NAME: maximum_single_addr_tries
3541TYPE: int
3542LOC: Config.retry.maxtries
4ed0e075 3543DEFAULT: 1
cccac0a2 3544DOC_START
3545 This sets the maximum number of connection attempts for a
3546 host that only has one address (for multiple-address hosts,
3547 each address is tried once).
3548
4ed0e075 3549 The default value is one attempt, the (not recommended)
cccac0a2 3550 maximum is 255 tries. A warning message will be generated
3551 if it is set to a value greater than ten.
4ed0e075 3552
3553 Note: This is in addition to the request reforwarding which
3554 takes place if Squid fails to get a satisfying response.
cccac0a2 3555DOC_END
3556
3557NAME: snmp_port
3558TYPE: ushort
3559LOC: Config.Port.snmp
3560DEFAULT: 3401
3561IFDEF: SQUID_SNMP
3562DOC_START
3563 Squid can now serve statistics and status information via SNMP.
3564 By default it listens to port 3401 on the machine. If you don't
3565 wish to use SNMP, set this to "0".
4ed0e075 3566
3567 Note: If you want Squid to use parents for all requests then see
3568 the never_direct directive. prefer_direct only modifies how Squid
3569 acts on cachable requests.
cccac0a2 3570DOC_END
3571
3572NAME: snmp_access
3573TYPE: acl_access
3574LOC: Config.accessList.snmp
3575DEFAULT: none
3576DEFAULT_IF_NONE: deny all
3577IFDEF: SQUID_SNMP
3578DOC_START
3579 Allowing or denying access to the SNMP port.
3580
3581 All access to the agent is denied by default.
3582 usage:
3583
3584 snmp_access allow|deny [!]aclname ...
3585
3586Example:
3587 snmp_access allow snmppublic localhost
3588 snmp_access deny all
3589DOC_END
3590
3591NAME: snmp_incoming_address
3592TYPE: address
3593LOC: Config.Addrs.snmp_incoming
3594DEFAULT: 0.0.0.0
3595IFDEF: SQUID_SNMP
3596DOC_NONE
3597NAME: snmp_outgoing_address
3598TYPE: address
3599LOC: Config.Addrs.snmp_outgoing
3600DEFAULT: 255.255.255.255
3601IFDEF: SQUID_SNMP
3602DOC_START
3603 Just like 'udp_incoming_address' above, but for the SNMP port.
3604
3605 snmp_incoming_address is used for the SNMP socket receiving
3606 messages from SNMP agents.
3607 snmp_outgoing_address is used for SNMP packets returned to SNMP
3608 agents.
3609
3610 The default snmp_incoming_address (0.0.0.0) is to listen on all
3611 available network interfaces.
3612
3613 If snmp_outgoing_address is set to 255.255.255.255 (the default)
3614 then it will use the same socket as snmp_incoming_address. Only
3615 change this if you want to have SNMP replies sent using another
3616 address than where this Squid listens for SNMP queries.
3617
3618 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
3619 the same value since they both use port 3401.
3620DOC_END
3621
3622NAME: as_whois_server
3623TYPE: string
3624LOC: Config.as_whois_server
3625DEFAULT: whois.ra.net
3626DEFAULT_IF_NONE: whois.ra.net
3627DOC_START
3628 WHOIS server to query for AS numbers. NOTE: AS numbers are
3629 queried only when Squid starts up, not for every request.
3630DOC_END
3631
3632NAME: wccp_router
3633TYPE: address
3634LOC: Config.Wccp.router
3635DEFAULT: 0.0.0.0
3636IFDEF: USE_WCCP
3637DOC_START
3638 Use this option to define your WCCP ``home'' router for
3639 Squid. Setting the 'wccp_router' to 0.0.0.0 (the default)
3640 disables WCCP.
3641DOC_END
3642
3643NAME: wccp_version
3644TYPE: int
3645LOC: Config.Wccp.version
3646DEFAULT: 4
3647IFDEF: USE_WCCP
3648DOC_START
3649 According to some users, Cisco IOS 11.2 only supports WCCP
3650 version 3. If you're using that version of IOS, change
3651 this value to 3.
3652DOC_END
3653
3654NAME: wccp_incoming_address
3655TYPE: address
3656LOC: Config.Wccp.incoming
3657DEFAULT: 0.0.0.0
3658IFDEF: USE_WCCP
3659DOC_NONE
3660NAME: wccp_outgoing_address
3661TYPE: address
3662LOC: Config.Wccp.outgoing
3663DEFAULT: 255.255.255.255
3664IFDEF: USE_WCCP
3665DOC_START
3666 wccp_incoming_address Use this option if you require WCCP
3667 messages to be received on only one
3668 interface. Do NOT use this option if
3669 you're unsure how many interfaces you
3670 have, or if you know you have only one
3671 interface.
3672
3673 wccp_outgoing_address Use this option if you require WCCP
3674 messages to be sent out on only one
3675 interface. Do NOT use this option if
3676 you're unsure how many interfaces you
3677 have, or if you know you have only one
3678 interface.
3679
3680 The default behavior is to not bind to any specific address.
3681
3682 NOTE, wccp_incoming_address and wccp_outgoing_address can not have
3683 the same value since they both use port 2048.
3684DOC_END
0976f8db 3685
0976f8db 3686
cccac0a2 3687COMMENT_START
3688 DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
3689 -----------------------------------------------------------------------------
3690COMMENT_END
3691
3692NAME: delay_pools
3693TYPE: delay_pool_count
3694DEFAULT: 0
3695IFDEF: DELAY_POOLS
3696LOC: Config.Delay
3697DOC_START
3698 This represents the number of delay pools to be used. For example,
3699 if you have one class 2 delay pool and one class 3 delays pool, you
3700 have a total of 2 delay pools.
3701DOC_END
3702
3703NAME: delay_class
3704TYPE: delay_pool_class
3705DEFAULT: none
3706IFDEF: DELAY_POOLS
3707LOC: Config.Delay
3708DOC_START
3709 This defines the class of each delay pool. There must be exactly one
3710 delay_class line for each delay pool. For example, to define two
3711 delay pools, one of class 2 and one of class 3, the settings above
3712 and here would be:
3713
3714Example:
3715 delay_pools 4 # 4 delay pools
3716 delay_class 1 2 # pool 1 is a class 2 pool
3717 delay_class 2 3 # pool 2 is a class 3 pool
3718 delay_class 3 4 # pool 3 is a class 4 pool
3719 delay_class 4 5 # pool 4 is a class 5 pool
3720
3721 The delay pool classes are:
3722
3723 class 1 Everything is limited by a single aggregate
3724 bucket.
3725
3726 class 2 Everything is limited by a single aggregate
3727 bucket as well as an "individual" bucket chosen
3728 from bits 25 through 32 of the IP address.
3729
3730 class 3 Everything is limited by a single aggregate
3731 bucket as well as a "network" bucket chosen
3732 from bits 17 through 24 of the IP address and a
3733 "individual" bucket chosen from bits 17 through
3734 32 of the IP address.
3735
3736 class 4 Everything in a class 3 delay pool, with an
3737 additional limit on a per user basis. This
3738 only takes effect if the username is established
3739 in advance - by forcing authentication in your
3740 http_access rules.
3741
3742 class 5 Requests are grouped according their tag (see
3743 external_acl's tag= reply).
3744
3745 NOTE: If an IP address is a.b.c.d
3746 -> bits 25 through 32 are "d"
3747 -> bits 17 through 24 are "c"
3748 -> bits 17 through 32 are "c * 256 + d"
3749DOC_END
3750
3751NAME: delay_access
3752TYPE: delay_pool_access
3753DEFAULT: none
3754IFDEF: DELAY_POOLS
3755LOC: Config.Delay
3756DOC_START
3757 This is used to determine which delay pool a request falls into.
3758 The first matched delay pool is always used, i.e., if a request falls
3759 into delay pool number one, no more delay are checked, otherwise the
3760 rest are checked in order of their delay pool number until they have
3761 all been checked. For example, if you want some_big_clients in delay
3762 pool 1 and lotsa_little_clients in delay pool 2:
3763
3764Example:
3765 delay_access 1 allow some_big_clients
3766 delay_access 1 deny all
3767 delay_access 2 allow lotsa_little_clients
3768 delay_access 2 deny all
3769 delay_access 3 allow authenticated_clients
3770DOC_END
3771
3772NAME: delay_parameters
3773TYPE: delay_pool_rates
3774DEFAULT: none
3775IFDEF: DELAY_POOLS
3776LOC: Config.Delay
3777DOC_START
3778 This defines the parameters for a delay pool. Each delay pool has
3779 a number of "buckets" associated with it, as explained in the
3780 description of delay_class. For a class 1 delay pool, the syntax is:
3781
3782delay_parameters pool aggregate
3783
3784 For a class 2 delay pool:
3785
3786delay_parameters pool aggregate individual
3787
3788 For a class 3 delay pool:
3789
3790delay_parameters pool aggregate network individual
3791
3792 For a class 4 delay pool:
3793
3794delay_parameters pool aggregate network individual user
3795
3796 For a class 5 delay pool:
3797
3798delay_parameters pool tag
3799
3800 The variables here are:
3801
3802 pool a pool number - ie, a number between 1 and the
3803 number specified in delay_pools as used in
3804 delay_class lines.
3805
3806 aggregate the "delay parameters" for the aggregate bucket
3807 (class 1, 2, 3).
3808
3809 individual the "delay parameters" for the individual
3810 buckets (class 2, 3).
3811
3812 network the "delay parameters" for the network buckets
3813 (class 3).
3814
3815 user the delay parameters for the user buckets
3816 (class 4).
3817
3818 tag the delay parameters for the tag buckets
3819 (class 5).
3820
3821 A pair of delay parameters is written restore/maximum, where restore is
3822 the number of bytes (not bits - modem and network speeds are usually
3823 quoted in bits) per second placed into the bucket, and maximum is the
3824 maximum number of bytes which can be in the bucket at any time.
3825
3826 For example, if delay pool number 1 is a class 2 delay pool as in the
3827 above example, and is being used to strictly limit each host to 64kbps
3828 (plus overheads), with no overall limit, the line is:
3829
3830delay_parameters 1 -1/-1 8000/8000
3831
3832 Note that the figure -1 is used to represent "unlimited".
3833
3834 And, if delay pool number 2 is a class 3 delay pool as in the above
3835 example, and you want to limit it to a total of 256kbps (strict limit)
3836 with each 8-bit network permitted 64kbps (strict limit) and each
3837 individual host permitted 4800bps with a bucket maximum size of 64kb
3838 to permit a decent web page to be downloaded at a decent speed
3839 (if the network is not being limited due to overuse) but slow down
3840 large downloads more significantly:
3841
3842delay_parameters 2 32000/32000 8000/8000 600/8000
3843
3844 There must be one delay_parameters line for each delay pool.
3845
3846 Finally, for a class 4 delay pool as in the example - each user will
3847 be limited to 128Kb no matter how many workstations they are logged into.:
3848
3849delay_parameters 4 32000/32000 8000/8000 600/64000 16000/16000
3850DOC_END
3851
3852NAME: delay_initial_bucket_level
3853COMMENT: (percent, 0-100)
3854TYPE: ushort
3855DEFAULT: 50
3856IFDEF: DELAY_POOLS
3857LOC: Config.Delay.initial
3858DOC_START
3859 The initial bucket percentage is used to determine how much is put
3860 in each bucket when squid starts, is reconfigured, or first notices
3861 a host accessing it (in class 2 and class 3, individual hosts and
3862 networks only have buckets associated with them once they have been
3863 "seen" by squid).
3864DOC_END
3865
3866NAME: incoming_icp_average
3867TYPE: int
3868DEFAULT: 6
3869LOC: Config.comm_incoming.icp_average
3870DOC_NONE
3871
3872NAME: incoming_http_average
3873TYPE: int
3874DEFAULT: 4
3875LOC: Config.comm_incoming.http_average
3876DOC_NONE
3877
3878NAME: incoming_dns_average
3879TYPE: int
3880DEFAULT: 4
3881LOC: Config.comm_incoming.dns_average
3882DOC_NONE
3883
3884NAME: min_icp_poll_cnt
3885TYPE: int
3886DEFAULT: 8
3887LOC: Config.comm_incoming.icp_min_poll
3888DOC_NONE
3889
3890NAME: min_dns_poll_cnt
3891TYPE: int
3892DEFAULT: 8
3893LOC: Config.comm_incoming.dns_min_poll
3894DOC_NONE
3895
3896NAME: min_http_poll_cnt
3897TYPE: int
3898DEFAULT: 8
3899LOC: Config.comm_incoming.http_min_poll
3900DOC_START
3901 Heavy voodoo here. I can't even believe you are reading this.
3902 Are you crazy? Don't even think about adjusting these unless
3903 you understand the algorithms in comm_select.c first!
3904DOC_END
3905
3906NAME: max_open_disk_fds
3907TYPE: int
3908LOC: Config.max_open_disk_fds
3909DEFAULT: 0
3910DOC_START
3911 To avoid having disk as the I/O bottleneck Squid can optionally
3912 bypass the on-disk cache if more than this amount of disk file
3913 descriptors are open.
3914
3915 A value of 0 indicates no limit.
3916DOC_END
3917
3918NAME: offline_mode
3919TYPE: onoff
3920LOC: Config.onoff.offline
3921DEFAULT: off
3922DOC_START
3923 Enable this option and Squid will never try to validate cached
3924 objects.
3925DOC_END
3926
3927NAME: uri_whitespace
3928TYPE: uri_whitespace
3929LOC: Config.uri_whitespace
3930DEFAULT: strip
3931DOC_START
3932 What to do with requests that have whitespace characters in the
3933 URI. Options:
3934
3935 strip: The whitespace characters are stripped out of the URL.
3936 This is the behavior recommended by RFC2396.
3937 deny: The request is denied. The user receives an "Invalid
3938 Request" message.
3939 allow: The request is allowed and the URI is not changed. The
3940 whitespace characters remain in the URI. Note the
3941 whitespace is passed to redirector processes if they
3942 are in use.
3943 encode: The request is allowed and the whitespace characters are
3944 encoded according to RFC1738. This could be considered
3945 a violation of the HTTP/1.1
3946 RFC because proxies are not allowed to rewrite URI's.
3947 chop: The request is allowed and the URI is chopped at the
3948 first whitespace. This might also be considered a
3949 violation.
3950DOC_END
3951
3952NAME: broken_posts
3953TYPE: acl_access
3954DEFAULT: none
3955LOC: Config.accessList.brokenPosts
3956DOC_START
3957 A list of ACL elements which, if matched, causes Squid to send
3958 an extra CRLF pair after the body of a PUT/POST request.
3959
3960 Some HTTP servers has broken implementations of PUT/POST,
3961 and rely on an extra CRLF pair sent by some WWW clients.
3962
3963 Quote from RFC 2068 section 4.1 on this matter:
3964
3965 Note: certain buggy HTTP/1.0 client implementations generate an
3966 extra CRLF's after a POST request. To restate what is explicitly
3967 forbidden by the BNF, an HTTP/1.1 client must not preface or follow
3968 a request with an extra CRLF.
3969
3970Example:
3971 acl buggy_server url_regex ^http://....
3972 broken_posts allow buggy_server
3973DOC_END
3974
3975NAME: mcast_miss_addr
3976IFDEF: MULTICAST_MISS_STREAM
3977TYPE: address
3978LOC: Config.mcast_miss.addr
3979DEFAULT: 255.255.255.255
3980DOC_START
3981 If you enable this option, every "cache miss" URL will
3982 be sent out on the specified multicast address.
3983
3984 Do not enable this option unless you are are absolutely
3985 certain you understand what you are doing.
3986DOC_END
3987
3988NAME: mcast_miss_ttl
3989IFDEF: MULTICAST_MISS_TTL
3990TYPE: ushort
3991LOC: Config.mcast_miss.ttl
3992DEFAULT: 16
3993DOC_START
3994 This is the time-to-live value for packets multicasted
3995 when multicasting off cache miss URLs is enabled. By
3996 default this is set to 'site scope', i.e. 16.
3997DOC_END
3998
3999NAME: mcast_miss_port
4000IFDEF: MULTICAST_MISS_STREAM
4001TYPE: ushort
4002LOC: Config.mcast_miss.port
4003DEFAULT: 3135
4004DOC_START
4005 This is the port number to be used in conjunction with
4006 'mcast_miss_addr'.
4007DOC_END
4008
4009NAME: mcast_miss_encode_key
4010IFDEF: MULTICAST_MISS_STREAM
4011TYPE: string
4012LOC: Config.mcast_miss.encode_key
4013DEFAULT: XXXXXXXXXXXXXXXX
4014DOC_START
4015 The URLs that are sent in the multicast miss stream are
4016 encrypted. This is the encryption key.
4017DOC_END
4018
4019NAME: nonhierarchical_direct
4020TYPE: onoff
4021LOC: Config.onoff.nonhierarchical_direct
4022DEFAULT: on
4023DOC_START
4024 By default, Squid will send any non-hierarchical requests
4025 (matching hierarchy_stoplist or not cachable request type) direct
4026 to origin servers.
4027
4028 If you set this to off, then Squid will prefer to send these
4029 requests to parents.
4030
4031 Note that in most configurations, by turning this off you will only
4032 add latency to these request without any improvement in global hit
4033 ratio.
4034
4035 If you are inside an firewall then see never_direct instead of
4036 this directive.
4037DOC_END
4038
4039NAME: prefer_direct
4040TYPE: onoff
4041LOC: Config.onoff.prefer_direct
4042DEFAULT: off
4043DOC_START
4044 Normally Squid tries to use parents for most requests. If you by some
4045 reason like it to first try going direct and only use a parent if
4046 going direct fails then set this to on.
4047
4048 By combining nonhierarchical_direct off and prefer_direct on you
4049 can set up Squid to use a parent as a backup path if going direct
4050 fails.
4051DOC_END
4052
4053NAME: strip_query_terms
4054TYPE: onoff
4055LOC: Config.onoff.strip_query_terms
4056DEFAULT: on
4057DOC_START
4058 By default, Squid strips query terms from requested URLs before
4059 logging. This protects your user's privacy.
4060DOC_END
4061
4062NAME: coredump_dir
4063TYPE: string
4064LOC: Config.coredump_dir
4065DEFAULT: none
4066DEFAULT_IF_NONE: none
4067DOC_START
4068 By default Squid leaves core files in the directory from where
4069 it was started. If you set 'coredump_dir' to a directory
4070 that exists, Squid will chdir() to that directory at startup
4071 and coredump files will be left there.
4072
4073NOCOMMENT_START
5ff76111 4074# Leave coredumps in the first cache dir
cccac0a2 4075coredump_dir @DEFAULT_SWAP_DIR@
4076NOCOMMENT_END
4077DOC_END
4078
4079NAME: redirector_bypass
4080TYPE: onoff
4081LOC: Config.onoff.redirector_bypass
4082DEFAULT: off
4083DOC_START
4084 When this is 'on', a request will not go through the
4085 redirector if all redirectors are busy. If this is 'off'
4086 and the redirector queue grows too large, Squid will exit
4087 with a FATAL error and ask you to increase the number of
4088 redirectors. You should only enable this if the redirectors
4089 are not critical to your caching system. If you use
4090 redirectors for access control, and you enable this option,
4091 then users may have access to pages that they should not
4092 be allowed to request.
4093DOC_END
4094
4095NAME: ignore_unknown_nameservers
4096TYPE: onoff
4097LOC: Config.onoff.ignore_unknown_nameservers
4098DEFAULT: on
4099DOC_START
4100 By default Squid checks that DNS responses are received
4101 from the same IP addresses that they are sent to. If they
4102 don't match, Squid ignores the response and writes a warning
4103 message to cache.log. You can allow responses from unknown
4104 nameservers by setting this option to 'off'.
4105DOC_END
4106
4107NAME: digest_generation
4108IFDEF: USE_CACHE_DIGESTS
4109TYPE: onoff
4110LOC: Config.onoff.digest_generation
4111DEFAULT: on
4112DOC_START
4113 This controls whether the server will generate a Cache Digest
4114 of its contents. By default, Cache Digest generation is
4115 enabled if Squid is compiled with USE_CACHE_DIGESTS defined.
4116DOC_END
4117
4118NAME: digest_bits_per_entry
4119IFDEF: USE_CACHE_DIGESTS
4120TYPE: int
4121LOC: Config.digest.bits_per_entry
4122DEFAULT: 5
4123DOC_START
4124 This is the number of bits of the server's Cache Digest which
4125 will be associated with the Digest entry for a given HTTP
4126 Method and URL (public key) combination. The default is 5.
4127DOC_END
4128
4129NAME: digest_rebuild_period
4130IFDEF: USE_CACHE_DIGESTS
4131COMMENT: (seconds)
4132TYPE: time_t
4133LOC: Config.digest.rebuild_period
4134DEFAULT: 1 hour
4135DOC_START
4136 This is the number of seconds between Cache Digest rebuilds.
4137DOC_END
4138
4139NAME: digest_rewrite_period
4140COMMENT: (seconds)
4141IFDEF: USE_CACHE_DIGESTS
4142TYPE: time_t
4143LOC: Config.digest.rewrite_period
4144DEFAULT: 1 hour
4145DOC_START
4146 This is the number of seconds between Cache Digest writes to
4147 disk.
4148DOC_END
4149
4150NAME: digest_swapout_chunk_size
4151COMMENT: (bytes)
4152TYPE: b_size_t
4153IFDEF: USE_CACHE_DIGESTS
4154LOC: Config.digest.swapout_chunk_size
4155DEFAULT: 4096 bytes
4156DOC_START
4157 This is the number of bytes of the Cache Digest to write to
4158 disk at a time. It defaults to 4096 bytes (4KB), the Squid
4159 default swap page.
4160DOC_END
4161
4162NAME: digest_rebuild_chunk_percentage
4163COMMENT: (percent, 0-100)
4164IFDEF: USE_CACHE_DIGESTS
4165TYPE: int
4166LOC: Config.digest.rebuild_chunk_percentage
4167DEFAULT: 10
4168DOC_START
4169 This is the percentage of the Cache Digest to be scanned at a
4170 time. By default it is set to 10% of the Cache Digest.
4171DOC_END
4172
4173NAME: chroot
4174TYPE: string
4175LOC: Config.chroot_dir
4176DEFAULT: none
4177DOC_START
4178 Use this to have Squid do a chroot() while initializing. This
4179 also causes Squid to fully drop root privileges after
4180 initializing. This means, for example, that if you use a HTTP
4181 port less than 1024 and try to reconfigure, you will get an
4182 error.
4183DOC_END
4184
4185NAME: client_persistent_connections
4186TYPE: onoff
4187LOC: Config.onoff.client_pconns
4188DEFAULT: on
4189DOC_NONE
4190
4191NAME: server_persistent_connections
4192TYPE: onoff
4193LOC: Config.onoff.server_pconns
4194DEFAULT: on
4195DOC_START
4196 Persistent connection support for clients and servers. By
4197 default, Squid uses persistent connections (when allowed)
4198 with its clients and servers. You can use these options to
4199 disable persistent connections with clients and/or servers.
4200DOC_END
4201
4202NAME: pipeline_prefetch
4203TYPE: onoff
4204LOC: Config.onoff.pipeline_prefetch
4205DEFAULT: off
4206DOC_START
4207 To boost the performance of pipelined requests to closer
4208 match that of a non-proxied environment Squid can try to fetch
4209 up to two requests in parallell from a pipeline.
4210
4211 Defaults to off for bandwidth management and access logging
4212 reasons.
4213DOC_END
4214
4215NAME: extension_methods
4216TYPE: wordlist
4217LOC: Config.ext_methods
4218DEFAULT: none
4219DOC_START
4220 Squid only knows about standardized HTTP request methods.
4221 You can add up to 20 additional "extension" methods here.
4222DOC_END
4223
4224NAME: request_entities
4225TYPE: onoff
4226LOC: Config.onoff.request_entities
4227DEFAULT: off
4228DOC_START
4229 Squid defaults to deny GET and HEAD requests with request entities,
4230 as the meaning of such requests are undefined in the HTTP standard
4231 even if not explicitly forbidden.
4232
4233 Set this directive to on if you have clients which insists
4234 on sending request entities in GET or HEAD requests.
4235DOC_END
4236
4237NAME: high_response_time_warning
4238TYPE: int
4239COMMENT: (msec)
4240LOC: Config.warnings.high_rptm
4241DEFAULT: 0
4242DOC_START
4243 If the one-minute median response time exceeds this value,
4244 Squid prints a WARNING with debug level 0 to get the
4245 administrators attention. The value is in milliseconds.
4246DOC_END
4247
4248NAME: high_page_fault_warning
4249TYPE: int
4250LOC: Config.warnings.high_pf
4251DEFAULT: 0
4252DOC_START
4253 If the one-minute average page fault rate exceeds this
4254 value, Squid prints a WARNING with debug level 0 to get
4255 the administrators attention. The value is in page faults
4256 per second.
4257DOC_END
4258
4259NAME: high_memory_warning
4260TYPE: b_size_t
4261LOC: Config.warnings.high_memory
4262DEFAULT: 0
4263DOC_START
4264 If the memory usage (as determined by mallinfo) exceeds
4265 value, Squid prints a WARNING with debug level 0 to get
4266 the administrators attention.
4267DOC_END
4268
4269NAME: store_dir_select_algorithm
4270TYPE: string
4271LOC: Config.store_dir_select_algorithm
4272DEFAULT: least-load
4273DOC_START
4274 Set this to 'round-robin' as an alternative.
4275DOC_END
4276
4277NAME: forward_log
4278IFDEF: WIP_FWD_LOG
4279TYPE: string
4280DEFAULT: none
4281LOC: Config.Log.forward
4282DOC_START
4283 Logs the server-side requests.
4284
4285 This is currently work in progress.
4286DOC_END
4287
4288NAME: ie_refresh
4289COMMENT: on|off
4290TYPE: onoff
4291LOC: Config.onoff.ie_refresh
4292DEFAULT: off
4293DOC_START
4294 Microsoft Internet Explorer up until version 5.5 Service
4295 Pack 1 has an issue with transparent proxies, wherein it
4296 is impossible to force a refresh. Turning this on provides
4297 a partial fix to the problem, by causing all IMS-REFRESH
4298 requests from older IE versions to check the origin server
4299 for fresh content. This reduces hit ratio by some amount
4300 (~10% in my experience), but allows users to actually get
4301 fresh content when they want it. Note that because Squid
4302 cannot tell if the user is using 5.5 or 5.5SP1, the behavior
4303 of 5.5 is unchanged from old versions of Squid (i.e. a
4304 forced refresh is impossible). Newer versions of IE will,
4305 hopefully, continue to have the new behavior and will be
4306 handled based on that assumption. This option defaults to
4307 the old Squid behavior, which is better for hit ratios but
4308 worse for clients using IE, if they need to be able to
4309 force fresh content.
4310DOC_END
4311
4312NAME: vary_ignore_expire
4313COMMENT: on|off
4314TYPE: onoff
4315LOC: Config.onoff.vary_ignore_expire
4316DEFAULT: off
4317DOC_START
4318 Many HTTP servers supporting Vary gives such objects
4319 immediate expiry time with no cache-control header
4320 when requested by a HTTP/1.0 client. This option
4321 enables Squid to ignore such expiry times until
4322 HTTP/1.1 is fully implemented.
4323 WARNING: This may eventually cause some varying
4324 objects not intended for caching to get cached.
4325DOC_END
4326
4327NAME: sleep_after_fork
4328COMMENT: (microseconds)
4329TYPE: int
4330LOC: Config.sleep_after_fork
4331DEFAULT: 0
4332DOC_START
4333 When this is set to a non-zero value, the main Squid process
4334 sleeps the specified number of microseconds after a fork()
4335 system call. This sleep may help the situation where your
4336 system reports fork() failures due to lack of (virtual)
4337 memory. Note, however, that if you have a lot of child
4338 processes, then these sleep delays will add up and your
4339 Squid will not service requests for some amount of time
4340 until all the child processes have been started.
4341DOC_END
4342
4343EOF