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