]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
fixes from Eric Stern
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
3a278cb8 1
9cef6668 2#
1dfa1d81 3# $Id: cf.data.pre,v 1.96 1998/08/17 21:27:31 wessels Exp $
9cef6668 4#
5#
6# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
7# ----------------------------------------------------------
8#
9# Squid is the result of efforts by numerous individuals from the
10# Internet community. Development is led by Duane Wessels of the
11# National Laboratory for Applied Network Research and funded by the
12# National Science Foundation. Squid is Copyrighted (C) 1998 by
13# Duane Wessels and the University of California San Diego. Please
14# see the COPYRIGHT file for full details. Squid incorporates
15# software developed and/or copyrighted by other sources. Please see
16# the CREDITS file for full details.
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.
22#
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.
27#
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
34 WELCOME TO SQUID 1.2
35 --------------------
3a278cb8 36
cf5cc17e 37 This is the default Squid configuration file. You may wish
b58b1ad6 38 to look at http://cache.is.co.za/squid/ for documentation,
39 or the Squid home page (http://squid.nlanr.net/) for the FAQ.
3a278cb8 40
0f74202c 41COMMENT_END
3a278cb8 42
0f74202c 43COMMENT_START
3a278cb8 44 NETWORK OPTIONS
45 -----------------------------------------------------------------------------
0f74202c 46COMMENT_END
3a278cb8 47
934b03fc 48NAME: http_port ascii_port
49TYPE: ushortlist
f53b06f9 50DEFAULT: none
51DEFAULT_IF_NONE: 3128
934b03fc 52LOC: Config.Port.http
53DOC_START
cf5cc17e 54 The port number where Squid will listen for HTTP client
934b03fc 55 requests. Default is 3128, for httpd-accel mode use port 80.
56 May be overridden with -a on the command line.
57
58 You may specify multiple ports here, but they MUST all be on
59 a single line.
60
61http_port 3128
62DOC_END
63
64
65NAME: icp_port udp_port
66TYPE: ushort
67DEFAULT: 3130
68LOC: Config.Port.icp
69DOC_START
459f1836 70 The port number where Squid sends and receives ICP requests to
934b03fc 71 and from neighbor caches. Default is 3130. To disable use
72 "0". May be overridden with -u on the command line.
73
74icp_port 3130
75DOC_END
76
459f1836 77NAME: htcp_port
78IFDEF: USE_HTCP
79TYPE: ushort
80DEFAULT: 4827
81LOC: Config.Port.htcp
82DOC_START
83 The port number where Squid sends and receives ICP requests to
84 and from neighbor caches. Default is 4827. To disable use
85 "0".
86
87htcp_port 4827
88DOC_END
89
934b03fc 90
91NAME: mcast_groups
92TYPE: wordlist
93LOC: Config.mcast_group_list
1273d501 94DEFAULT: none
934b03fc 95DOC_START
cf5cc17e 96 This tag specifies a list of multicast groups which your server
97 should join to receive multicasted ICP requests.
934b03fc 98
99 NOTE! Be very careful what you put here! Be sure you
100 understand the difference between an ICP _query_ and an ICP
101 _reply_. This option is to be set only if you want to RECEIVE
102 multicast queries. Do NOT set this option to SEND multicast
a95856a0 103 ICP (use cache_peer for that). ICP replies are always sent via
934b03fc 104 unicast, so this option does not affect whether or not you will
105 receive replies from multicast group members.
106
107 You must be very careful to NOT use a multicast address which
108 is already in use by another group of caches. NLANR has been
109 assigned a block of multicast address space for use in Web
110 Caching. Plese write to us at nlanr-cache@nlanr.net to receive
111 an address for your own use.
112
cf5cc17e 113 If you are unsure about multicast, please read the Multicast
114 chapter in the Squid FAQ (http://squid.nlanr.net/Squid/FAQ/).
115
934b03fc 116 Usage: mcast_groups 239.128.16.128 224.0.1.20
117
cf5cc17e 118 By default, Squid doesn't listen on any multicast groups.
934b03fc 119
120mcast_groups 239.128.16.128
121DOC_END
122
123
124NAME: tcp_incoming_address bind_address
125TYPE: address
126LOC: Config.Addrs.tcp_incoming
270b86af 127DEFAULT: 0.0.0.0
934b03fc 128DOC_NONE
129
130NAME: tcp_outgoing_address outbound_address
131TYPE: address
132LOC: Config.Addrs.tcp_outgoing
270b86af 133DEFAULT: 255.255.255.255
934b03fc 134DOC_NONE
135
136NAME: udp_incoming_address
137TYPE: address
138LOC:Config.Addrs.udp_incoming
270b86af 139DEFAULT: 0.0.0.0
934b03fc 140DOC_NONE
141
142NAME: udp_outgoing_address
143TYPE: address
144LOC: Config.Addrs.udp_outgoing
270b86af 145DEFAULT: 255.255.255.255
934b03fc 146DOC_START
147 Usage: tcp_incoming_address 10.20.30.40
148 udp_outgoing_address fully.qualified.domain.name
149
934b03fc 150 tcp_incoming_address is used for the HTTP socket which accepts
151 connections from clients and other caches.
152 tcp_outgoing_address is used for connections made to remote
153 servers and other caches.
154 udp_incoming_address is used for the ICP socket receiving packets
155 from other caches.
156 udp_outgoing_address is used for ICP packets sent out to other
157 caches.
158
15dcc168 159 The default behaviour is to not bind to any specific address.
934b03fc 160
161 NOTE, udp_incoming_address and udp_outgoing_address can not have
162 the same value since they both use port 3130.
163
164tcp_incoming_address 0.0.0.0
165tcp_outgoing_address 0.0.0.0
166udp_incoming_address 0.0.0.0
167udp_outgoing_address 0.0.0.0
168DOC_END
169
0f74202c 170COMMENT_START
3a278cb8 171 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
172 -----------------------------------------------------------------------------
0f74202c 173COMMENT_END
934b03fc 174
40a1495e 175NAME: cache_peer
176TYPE: peer
1273d501 177DEFAULT: none
0153d498 178LOC: Config.peers
934b03fc 179DOC_START
180 To specify other caches in a hierarchy, use the format:
181
182 hostname type http_port icp_port
183
d0d41f07 184 For example,
934b03fc 185
186 # proxy icp
187 # hostname type port port options
188 # -------------------- -------- ----- ----- -----------
cf5cc17e 189 cache_peer parent.foo.net parent 3128 3130 [proxy-only]
190 cache_peer sib1.foo.net sibling 3128 3130 [proxy-only]
191 cache_peer sib2.foo.net sibling 3128 3130 [proxy-only]
934b03fc 192
193 type: either 'parent', 'sibling', or 'multicast'.
194
195 proxy_port: The port number where the cache listens for proxy
196 requests.
197
198 icp_port: Used for querying neighbor caches about
199 objects. To have a non-ICP neighbor
200 specify '7' for the ICP port and make sure the
201 neighbor machine has the UDP echo port
202 enabled in its /etc/inetd.conf file.
203
204 options: proxy-only
205 weight=n
206 ttl=n
207 no-query
208 default
209 round-robin
210 multicast-responder
b3264694 211 closest-only
223213df 212 no-netdb-exchange
95e36d02 213 no-delay
934b03fc 214
215 use 'proxy-only' to specify that objects fetched
216 from this cache should not be saved locally.
217
218 use 'weight=n' to specify a weighted parent.
219 The weight must be an integer. The default weight
220 is 1, larger weights are favored more.
221
222 use 'ttl=n' to specify a IP multicast TTL to use
223 when sending an ICP request to this address.
224 Only useful when sending to a multicast group.
225 Because we don't accept ICP replies from random
226 hosts, you must configure other group members as
227 peers with the 'multicast-responder' option below.
228
229 use 'no-query' to NOT send ICP queries to this
230 neighbor.
231
232 use 'default' if this is a parent cache which can
233 be used as a "last-resort." You should probably
234 only use 'default' in situations where you cannot
235 use ICP with your parent cache(s).
236
237 use 'round-robin' to define a set of parents which
238 should be used in a round-robin fashion in the
239 absence of any ICP queries.
240
241 'multicast-responder' indicates that the named peer
242 is a member of a multicast group. ICP queries will
243 not be sent directly to the peer, but ICP replies
244 will be accepted from it.
245
b3264694 246 'closest-only' indicates that, for ICP_OP_MISS
247 replies, we'll only forward CLOSEST_PARENT_MISSes
248 and never FIRST_PARENT_MISSes.
249
223213df 250 'no-netdb-exchange' disables requesting ICMP
251 RTT database (NetDB) from the neighbor.
252
95e36d02 253 use 'no-delay' to prevent access to this neighbor
254 from influencing the delay pools.
255
934b03fc 256 NOTE: non-ICP neighbors must be specified as 'parent'.
257
a95856a0 258cache_peer hostname type 3128 3130
934b03fc 259DOC_END
260
261
af7d912e 262NAME: cache_peer_domain cache_host_domain
934b03fc 263TYPE: hostdomain
f1dc9b30 264DEFAULT: none
265LOC: none
934b03fc 266DOC_START
cf5cc17e 267 Use to limit the domains for which a neighbor cache will be
268 queried. Usage:
934b03fc 269
af7d912e 270 cache_peer_domain cache-host domain [domain ...]
271 cache_peer_domain cache-host !domain
934b03fc 272
273 For example, specifying
274
af7d912e 275 cache_peer_domain parent.foo.net .edu
934b03fc 276
277 has the effect such that UDP query packets are sent to
278 'bigserver' only when the requested object exists on a
279 server in the .edu domain. Prefixing the domainname
280 with '!' means that the cache will be queried for objects
281 NOT in that domain.
282
283 NOTE: * Any number of domains may be given for a cache-host,
284 either on the same or separate lines.
285 * When multiple domains are given for a particular
286 cache-host, the first matched domain is applied.
287 * Cache hosts with no domain restrictions are queried
288 for all requests.
289 * There are no defaults.
af7d912e 290 * There is also a 'cache_peer_acl' tag in the ACL
934b03fc 291 section.
292DOC_END
293
294
295NAME: neighbor_type_domain
296TYPE: hostdomaintype
f1dc9b30 297DEFAULT: none
298LOC: none
934b03fc 299DOC_START
300 usage: neighbor_type_domain parent|sibling domain domain ...
301
302 Modifying the neighbor type for specific domains is now
303 possible. You can treat some domains differently than the the
a95856a0 304 default neighbor type specified on the 'cache_peer' line.
934b03fc 305 Normally it should only be necessary to list domains which
306 should be treated differently because the default neighbor type
307 applies for hostnames which do not match domains listed here.
308
309EXAMPLE:
a95856a0 310 cache_peer parent cache.foo.org 3128 3130
934b03fc 311 neighbor_type_domain cache.foo.org sibling .com .net
312 neighbor_type_domain cache.foo.org sibling .au .de
313DOC_END
314
465dc415 315NAME: icp_query_timeout
316COMMENT: (msec)
317DEFAULT: 0
318TYPE: int
319LOC: Config.Timeout.icp_query
934b03fc 320DOC_START
465dc415 321 Normally Squid will automatically determine an optimal ICP
322 query timeout value based on the round-trip-time of recent ICP
323 queries. If you want to override the value determined by
324 Squid, set this 'icp_query_timeout' to a non-zero value. This
325 value is specified in MILLISECONDS, so, to use a 2-second
326 timeout (the old default), you would write:
934b03fc 327
465dc415 328 icp_query_timeout 2000
329
330icp_query_timeout 0
331DOC_END
332
333NAME: mcast_icp_query_timeout
334COMMENT: (msec)
335DEFAULT: 2000
336TYPE: int
337LOC: Config.Timeout.mcast_icp_query
338DOC_START
339 For Multicast peers, Squid regularly sends out ICP "probes" to
340 count how many other peers are listening on the given multicast
341 address. This value specifies how long Squid should wait to
342 count all the replies. The default is 2000 msec, or 2
343 seconds.
344
345mcast_icp_query_timeout 2000
934b03fc 346DOC_END
347
dc835977 348NAME: dead_peer_timeout
349COMMENT: (seconds)
350DEFAULT: 10 seconds
351TYPE: time_t
352LOC: Config.Timeout.deadPeer
353DOC_START
354 This controls how long Squid waits to declare a peer cache
355 as "dead." If there are no ICP replies received in this
356 amount of time, Squid will declare the peer dead and not
357 expect to receive any further ICP replies. However, it
358 continues to send ICP queries, and will mark the peer as
359 alive upon receipt of the first subsequent ICP reply.
360
361dead_peer_timeout 10 seconds
362DOC_END
363
934b03fc 364
365NAME: hierarchy_stoplist
366TYPE: wordlist
f8d9f54a 367DEFAULT: none
368DEFAULT_IF_NONE: cgi-bin ?
934b03fc 369LOC: Config.hierarchy_stoplist
370DOC_START
371 A list of words which, if found in a URL, cause the object to
372 be handled directly by this cache. In other words, use this
373 to not query neighbor caches for certain objects. You may
374 list this option multiple times.
375
376 The default is to directly fetch URLs containing 'cgi-bin' or '?'.
377
378hierarchy_stoplist cgi-bin ?
379DOC_END
380
381
bd05e3e3 382NAME: no_cache
383TYPE: acl_access
384DEFAULT: none
385LOC: Config.accessList.noCache
934b03fc 386DOC_START
bd05e3e3 387 A list of ACL elements which, if matched, cause the reply to
934b03fc 388 immediately removed from the cache. In other words, use this
bd05e3e3 389 to force certain objects to never be cached.
934b03fc 390
b269cf4e 391 You must use the word 'DENY' to indicate the ACL names which should
392 NOT be cached.
0fdafae7 393
bd05e3e3 394 There is no default. We recommend you uncomment the following
395 two lines.
934b03fc 396
bd05e3e3 397acl QUERY urlpath_regex cgi-bin \?
b269cf4e 398no_cache deny QUERY
934b03fc 399DOC_END
400
934b03fc 401
0f74202c 402COMMENT_START
3a278cb8 403 OPTIONS WHICH AFFECT THE CACHE SIZE
404 -----------------------------------------------------------------------------
0f74202c 405COMMENT_END
934b03fc 406
407NAME: cache_mem
9906e724 408COMMENT: (bytes)
1b635117 409TYPE: b_size_t
9906e724 410DEFAULT: 8 MB
934b03fc 411LOC: Config.Mem.maxSize
412DOC_START
7b2496ca 413 NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS
414 SIZE. IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY
415 USAGE. SQUID USES MEMORY FOR OTHER THINGS AS WELL.
416 YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES
417 BIGGER THAN THE VALUE YOU PUT HERE
418
419 'cache_mem' specifies the ideal amount of memory to be used
420 for:
421 * In-Transit objects
422 * Hot Objects
423 * Negative-Cached objects
424
425 Data for these objects are stored in 4 KB blocks. This
426 parameter specifies the ideal upper limit on the total size of
427 4 KB blocks allocated. In-Transit objects take the highest
428 priority.
934b03fc 429
430 In-transit objects have priority over the others. When
431 additional space is needed for incoming data, negative-cached
432 and hot objects will be released. In other words, the
433 negative-cached and hot objects will fill up any unused space
434 not needed for in-transit objects.
435
7b2496ca 436 If circumstances require, this limit will be exceeded.
437 Specifically, if your incoming request rate requires more than
438 'cache_mem' of memory to hold in-transit objects, Squid will
439 exceed this limit to satisfy the new requests. When the load
440 decreases, blocks will be freed until the high-water mark is
441 reached. Thereafter, blocks will be used to store hot
442 objects.
443
934b03fc 444 The values of cache_mem_low and cache_mem_high (below) can be
445 used to tune the use of the memory pool. When the high mark is
446 reached, in-transit and hot objects will be released to clear
447 space. When an object transfer is completed, it will remain in
448 memory only if the current memory usage is below the low water
449 mark.
450
451 The default is 8 Megabytes.
452
9906e724 453cache_mem 8 MB
934b03fc 454DOC_END
455
456
457NAME: cache_swap_low
458COMMENT: (percent, 0-100)
459TYPE: int
460DEFAULT: 90
461LOC: Config.Swap.lowWaterMark
462DOC_NONE
463
464NAME: cache_swap_high
465COMMENT: (percent, 0-100)
466TYPE: int
467DEFAULT: 95
468LOC: Config.Swap.highWaterMark
469DOC_START
cf5cc17e 470 The low- and high-water marks for cache LRU replacement. LRU
471 replacement begins when the high-water mark is reached and ends
472 when enough objects have been removed and the low-water mark is
473 reached. Defaults are 90% and 95%. If you have a large cache, 5%
474 could be hundreds of MB. If this is the case you may wish to
475 set these numbers closer together.
934b03fc 476
477cache_swap_low 90
478cache_swap_high 95
479DOC_END
480
481
482NAME: cache_mem_low
483COMMENT: (in percent, 0-100)
484TYPE: int
485DEFAULT: 75
486LOC: Config.Mem.lowWaterMark
487DOC_NONE
488
489NAME: cache_mem_high
490COMMENT: (in percent, 0-100)
491TYPE: int
492DEFAULT: 95
493LOC: Config.Mem.highWaterMark
494DOC_START
495 The low- and high-water mark for cache memory storage. When
496 the amount of RAM used by the hot-object RAM cache reaches this
497 point, the cache starts throwing objects out of the RAM cache
498 (but they remain on disk). Defaults are 75% and 90%.
499
500cache_mem_low 75
501cache_mem_high 90
502DOC_END
503
504
505NAME: maximum_object_size
9e975e4e 506COMMENT: (bytes)
1b635117 507TYPE: b_size_t
9906e724 508DEFAULT: 4096 KB
934b03fc 509LOC: Config.Store.maxObjectSize
510DOC_START
511 Objects larger than this size will NOT be saved on disk. The
cf5cc17e 512 value is specified in kilobytes, and the default is 4MB. If
513 you wish to get a high BYTES hit ratio, you should probably
514 increase this (one 32 MB object hit counts for 3200 10KB
515 hits). If you wish to increase speed more than your want to
516 save bandwidth you should leave this low.
934b03fc 517
9906e724 518maximum_object_size 4096 KB
934b03fc 519DOC_END
520
521
522NAME: ipcache_size
523COMMENT: (number of entries)
524TYPE: int
525DEFAULT: 1024
526LOC: Config.ipcache.size
527DOC_NONE
528
529NAME: ipcache_low
530COMMENT: (percent)
531TYPE: int
532DEFAULT: 90
533LOC: Config.ipcache.low
534DOC_NONE
535
536NAME: ipcache_high
537COMMENT: (percent)
538TYPE: int
539DEFAULT: 95
540LOC: Config.ipcache.high
541DOC_START
542 The size, low-, and high-water marks for the IP cache.
543
544ipcache_size 1024
545ipcache_low 90
546ipcache_high 95
547DOC_END
548
0f74202c 549COMMENT_START
3a278cb8 550 LOGFILE PATHNAMES AND CACHE DIRECTORIES
551 -----------------------------------------------------------------------------
0f74202c 552COMMENT_END
934b03fc 553
554NAME: cache_dir
555TYPE: cachedir
f1dc9b30 556DEFAULT: none
0108d71f 557DEFAULT_IF_NONE: @DEFAULT_SWAP_DIR@ 100 16 256
f1dc9b30 558LOC: Config.cacheSwap
934b03fc 559DOC_START
cf5cc17e 560 Usage:
561
562 cache_dir Directory-Name Mbytes Level-1 Level2
934b03fc 563
564 You can specify multiple cache_dir lines to spread the
565 cache among different disk partitions.
566
cf5cc17e 567 'Directory' is a top-level directory where cache swap
568 files will be stored. If you want to use an entire disk
569 for caching, then this can be the mount-point directory.
570 The directory must exist and be writable by the Squid
571 process. Squid will NOT create this directory for you.
572
573 If no 'cache_dir' lines are specified, the following
574 default will be used: @DEFAULT_SWAP_DIR@.
575
576 'Mbytes' is the amount of disk space (MB) to use under this
577 directory. The default is 100 MB. Change this to suit your
578 configuration.
579
580 'Level-1' is the number of first-level subdirectories which
581 will be created under the 'Directory'. The default is 16.
582
583 'Level-2' is the number of second-level subdirectories which
584 will be created under each first-level directory. The default
585 is 256.
586
5375428c 587cache_dir @DEFAULT_SWAP_DIR@ 100 16 256
934b03fc 588DOC_END
589
590
591NAME: cache_access_log
592TYPE: string
d0b98f84 593DEFAULT: @DEFAULT_ACCESS_LOG@
934b03fc 594LOC: Config.Log.access
595DOC_START
596 Logs the client request activity. Contains an entry for
597 every HTTP and ICP request received.
598
5375428c 599cache_access_log @DEFAULT_ACCESS_LOG@
934b03fc 600DOC_END
601
602
603NAME: cache_log
604TYPE: string
0153d498 605DEFAULT: @DEFAULT_CACHE_LOG@
934b03fc 606LOC: Config.Log.log
607DOC_START
cf5cc17e 608 Cache logging file. This is where general information about
609 your cache's behaviour goes. You can increase the amount of data
610 logged to this file with the "debug_options" tag below.
934b03fc 611
0153d498 612cache_log @DEFAULT_CACHE_LOG@
934b03fc 613DOC_END
614
615
616NAME: cache_store_log
617TYPE: string
0153d498 618DEFAULT: @DEFAULT_STORE_LOG@
934b03fc 619LOC: Config.Log.store
620DOC_START
621 Logs the activities of the storage manager. Shows which
622 objects are ejected from the cache, and which objects are
cf5cc17e 623 saved and for how long. To disable, enter "none". There are
624 not really utilities to analyse this data, so you can safely
625 disable it.
934b03fc 626
0153d498 627cache_store_log @DEFAULT_STORE_LOG@
934b03fc 628DOC_END
629
630
631NAME: cache_swap_log
632TYPE: string
633LOC: Config.Log.swap
1273d501 634DEFAULT: none
934b03fc 635DOC_START
d0d3ec94 636 Location for the cache "swap.log." This log file holds the
934b03fc 637 metadata of objects saved on disk. It is used to rebuild the
638 cache during startup. Normally this file resides in the first
639 'cache_dir' directory, but you may specify an alternate
640 pathname here. Note you must give a full filename, not just
cf5cc17e 641 a directory. Since this is the index for the whole object
642 list you CANNOT periodically rotate it!
934b03fc 643
644cache_swap_log
645DOC_END
646
647
648NAME: emulate_httpd_log
649COMMENT: on|off
650TYPE: onoff
f1dc9b30 651DEFAULT: off
17a0a4ee 652LOC: Config.onoff.common_log
934b03fc 653DOC_START
654 The Cache can emulate the log file format which many 'httpd'
655 programs use. To disable/enable this emulation, set
656 emulate_httpd_log to 'off' or 'on'. The default
cf5cc17e 657 is to use the native log format since it includes useful
658 information that Squid-specific log analysers use.
934b03fc 659
660emulate_httpd_log off
661DOC_END
662
663
664NAME: mime_table
f0b19334 665TYPE: string
0153d498 666DEFAULT: @DEFAULT_MIME_TABLE@
934b03fc 667LOC: Config.mimeTablePathname
668DOC_START
cf5cc17e 669 Pathname to Squid's MIME table. You shouldn't need to change
670 this, but the default file contains examples and formatting
671 information if you do.
934b03fc 672
0153d498 673mime_table @DEFAULT_MIME_TABLE@
934b03fc 674DOC_END
675
676
677NAME: log_mime_hdrs
678COMMENT: on|off
679TYPE: onoff
17a0a4ee 680LOC: Config.onoff.log_mime_hdrs
f1dc9b30 681DEFAULT: off
934b03fc 682DOC_START
cf5cc17e 683 The Cache can record both the request and the response MIME
684 headers for each HTTP transaction. The headers are encoded
685 safely and will appear as two bracketed fields at the end of
686 the access log (for either the native or httpd-emulated log
687 formats). To enable this logging set log_mime_hdrs to 'on'.
934b03fc 688
689log_mime_hdrs off
690DOC_END
691
692
693NAME: useragent_log
694TYPE: string
695LOC: Config.Log.useragent
f1dc9b30 696DEFAULT: none
934b03fc 697DOC_START
cf5cc17e 698 If configured with the "--enable-useragent_log" configure
699 option, Squid will write the User-Agent field from HTTP
700 requests to the filename specified here. By default
701 useragent_log is disabled.
934b03fc 702
703useragent_log none
704DOC_END
705
706
707NAME: pid_filename
708TYPE: string
0153d498 709DEFAULT: @DEFAULT_PID_FILE@
934b03fc 710LOC: Config.pidFilename
711DOC_START
d0d41f07 712 A filename to write the process-id to. To disable, enter "none".
934b03fc 713
0153d498 714pid_filename @DEFAULT_PID_FILE@
934b03fc 715DOC_END
716
717
718NAME: debug_options
f1dc9b30 719TYPE: eol
934b03fc 720DEFAULT: ALL,1
721LOC: Config.debugOptions
722DOC_START
723 Logging options are set as section,level where each source file
724 is assigned a unique section. Lower levels result in less
725 output, Full debugging (level 9) can result in a very large
726 log file, so be careful. The magic word "ALL" sets debugging
727 levels for all sections. We recommend normally running with
728 "ALL,1".
729
730debug_options ALL,1
731DOC_END
732
733
734NAME: ident_lookup
735COMMENT: on|off
736TYPE: onoff
f1dc9b30 737DEFAULT: off
17a0a4ee 738LOC: Config.onoff.ident_lookup
934b03fc 739DOC_START
cf5cc17e 740 If you wish to make an RFC931/ident lookup of the client
741 username for each connection, enable this. It is off by
742 default.
934b03fc 743
744ident_lookup off
745DOC_END
746
747
748NAME: log_fqdn
749COMMENT: on|off
750TYPE: onoff
f1dc9b30 751DEFAULT: off
17a0a4ee 752LOC: Config.onoff.log_fqdn
934b03fc 753DOC_START
754 Turn this on if you wish to log fully qualified domain names
cf5cc17e 755 in the access.log. To do this Squid does a DNS lookup of all
756 IP's connecting to it. This can (in some situations) increase
757 latency, which makes your cache seem slower for interactive
758 browsing.
934b03fc 759
760log_fqdn off
761DOC_END
762
763
764NAME: client_netmask
765TYPE: address
766LOC: Config.Addrs.client_netmask
f1dc9b30 767DEFAULT: 255.255.255.255
934b03fc 768DOC_START
769 A netmask for client addresses in logfiles and cachemgr output.
770 Change this to protect the privacy of your cache clients.
cf5cc17e 771 A netmask of 255.255.255.0 will log all IP's in that range with
772 the last digit set to '0'.
934b03fc 773
774client_netmask 255.255.255.255
775DOC_END
776
777
0f74202c 778COMMENT_START
3a278cb8 779 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
780 -----------------------------------------------------------------------------
0f74202c 781COMMENT_END
934b03fc 782
934b03fc 783NAME: ftp_user
784TYPE: string
cf5cc17e 785DEFAULT: Squid@
934b03fc 786LOC: Config.Ftp.anon_user
787DOC_START
788 If you want the anonymous login password to be more informative
789 (and enable the use of picky ftp servers), set this to something
790 resonable for your domain, like wwwuser@somewhere.net
791
792 The reason why this is domainless by default is that the
793 request can be made on the behalf of a user in any domain,
794 depending on how the cache is used.
795 Some ftp server also validate that the email address is valid
796 (for example perl.com).
797
cf5cc17e 798ftp_user Squid@
934b03fc 799DOC_END
800
365cb147 801NAME: ftp_list_width
1b635117 802TYPE: size_t
365cb147 803DEFAULT: 32
804LOC: Config.Ftp.list_width
805DOC_START
cf5cc17e 806 Sets the width of ftp listings. This should be set to fit in
807 the width of a standard browser. Setting this too small
808 can cut off long filenames when browsing ftp sites.
809
365cb147 810ftp_list_width 32
811DOC_END
812
934b03fc 813NAME: cache_dns_program
f0b19334 814TYPE: string
0153d498 815DEFAULT: @DEFAULT_DNSSERVER@
934b03fc 816LOC: Config.Program.dnsserver
817DOC_START
818 Specify the location of the executable for dnslookup process.
819
0153d498 820cache_dns_program @DEFAULT_DNSSERVER@
934b03fc 821DOC_END
822
934b03fc 823NAME: dns_children
824TYPE: int
825DEFAULT: 5
826LOC: Config.dnsChildren
827DOC_START
828 The number of processes spawn to service DNS name lookups.
829 For heavily loaded caches on large servers, you should
830 probably increase this value to at least 10. The maximum
831 is 32. The default is 5.
832
833 To disable dnsservers, set this to 0. NOTE, this is very
834 strongly discouraged. If you disable dnsservers your Squid
835 process will BLOCK on DNS lookups!
836
837dns_children 5
838DOC_END
839
840
841NAME: dns_defnames
842COMMENT: on|off
843TYPE: onoff
f1dc9b30 844DEFAULT: off
17a0a4ee 845LOC: Config.onoff.res_defnames
934b03fc 846DOC_START
847 Normally the 'dnsserver' disables the RES_DEFNAMES resolver
848 option (see res_init(3)). This prevents caches in a hierarchy
849 from interpreting single-component hostnames locally. To allow
850 dnsserver to handle single-component names, enable this
851 option.
852
853dns_defnames off
854DOC_END
855
09c483ec 856NAME: dns_nameservers
857TYPE: wordlist
858DEFAULT: none
859LOC: Config.dns_nameservers
860DOC_START
861 Use this if you want to specify a list of DNS name servers
862 (IP addresses) to use instead of those given in your
863 /etc/resolv.conf file.
864
865 Example: dns_nameservers 10.0.0.1 192.172.0.4
866
867dns_nameservers none
868DOC_END
869
934b03fc 870
871NAME: unlinkd_program
f0b19334 872TYPE: string
0153d498 873DEFAULT: @DEFAULT_UNLINKD@
934b03fc 874LOC: Config.Program.unlinkd
875DOC_START
876 Specify the location of the executable for file deletion process.
cf5cc17e 877 This isn't needed if you are using async-io since it's handled by
878 a thread.
934b03fc 879
0153d498 880unlinkd_program @DEFAULT_UNLINKD@
934b03fc 881DOC_END
882
883
884NAME: pinger_program
a95856a0 885TYPE: string
0153d498 886DEFAULT: @DEFAULT_PINGER@
934b03fc 887LOC: Config.Program.pinger
888DOC_START
889 Specify the location of the executable for the pinger process.
cf5cc17e 890 This is only useful if you configured Squid (during compliation)
891 with the '--enable-icmp' option.
934b03fc 892
0153d498 893pinger_program @DEFAULT_PINGER@
934b03fc 894DOC_END
895
896
897NAME: redirect_program
f0b19334 898TYPE: string
934b03fc 899LOC: Config.Program.redirect
62607543 900DEFAULT: none
934b03fc 901DOC_START
902 Specify the location of the executable for the URL redirector.
cf5cc17e 903 Since they can perform almost any function there isn't one included.
904 See the Release-Notes for information on how to write one.
905 By default, a redirector is not used.
934b03fc 906
f0b19334 907redirect_program none
934b03fc 908DOC_END
909
910
911NAME: redirect_children
912TYPE: int
913DEFAULT: 5
914LOC: Config.redirectChildren
915DOC_START
cf5cc17e 916 The number of redirector processes to spawn. If you start
917 too few Squid will have to wait for them to process a backlog of
918 URLs, slowing it down. If you start too many they will use RAM
919 and other system resources.
934b03fc 920
921redirect_children 5
922DOC_END
923
0f74202c 924COMMENT_START
3a278cb8 925 OPTIONS FOR TUNING THE CACHE
926 -----------------------------------------------------------------------------
0f74202c 927COMMENT_END
934b03fc 928
0153d498 929NAME: wais_relay_host
930TYPE: string
1273d501 931DEFAULT: none
0153d498 932LOC: Config.Wais.relayHost
933DOC_NONE
934b03fc 934
0153d498 935NAME: wais_relay_port
936TYPE: ushort
937DEFAULT: 0
938LOC: Config.Wais.relayPort
934b03fc 939DOC_START
940 Relay WAIS request to host (1st arg) at port (2 arg).
941
0153d498 942wais_relay_host localhost
943wais_relay_port 8000
934b03fc 944DOC_END
945
946
947NAME: request_size
9906e724 948COMMENT: (KB)
518da0bd 949TYPE: b_size_t
9906e724 950DEFAULT: 100 KB
934b03fc 951LOC: Config.maxRequestSize
952DOC_START
953 Maximum allowed request size in kilobytes. If people are using
954 POST to upload files, then set this to the largest acceptable
955 filesize plus a few extra kbytes.
956
9906e724 957request_size 100 KB
934b03fc 958DOC_END
959
960
961NAME: refresh_pattern
934b03fc 962TYPE: refreshpattern
f1dc9b30 963LOC: Config.Refresh
1273d501 964DEFAULT: none
934b03fc 965DOC_START
1dfa1d81 966 usage: refresh_pattern regex min percent max [options]
934b03fc 967
968 min and max are specified in MINUTES.
969 percent is an integer number.
970
1dfa1d81 971 options: override-expire
972 override-lastmod
973
974 override-expire enforces min age even if the server
975 sent a Expires: header. Warning: This breaks HTTP
976 freshness control, and may have servere inpact on
977 the usability of sites that makes correct use of
978 Expires: headers on dynamic data.
979
980 override-lastmod enforces min age even on objects
981 that was modified recently.
982
934b03fc 983 Please see the file doc/Release-Notes-1.1.txt for a full
984 description of Squid's refresh algorithm. Basically a
1dfa1d81 985 cached object is: (the order is changed from 1.1.X)
934b03fc 986
934b03fc 987 STALE if age > max
1dfa1d81 988 FRESH if expires < now, else STALE
989 FRESH if lm-factor < percent, else STALE
990 FRESH if age < min
991 else STALE
934b03fc 992
993 The refresh_pattern lines are checked in the order listed here.
994 The first entry which matches is used. If none of the entries
995 match, then the default will be used.
996
997Default:
998refresh_pattern . 0 20% 4320
999DOC_END
1000
1001
1002NAME: reference_age
f1dc9b30 1003TYPE: time_t
934b03fc 1004LOC: Config.referenceAge
f1dc9b30 1005DEFAULT: 1 year
934b03fc 1006DOC_START
1007 As a part of normal operation, Squid performs Least Recently
1008 Used removal of cached objects. The LRU age for removal is
1009 computed dynamically, based on the amount of disk space in
6778c757 1010 use. The dynamic value can be seen in the Cache Manager 'info'
1011 output.
1012
1013 The 'reference_age' parameter defines the maximum LRU age. For
1014 example, setting reference_age to '1 week' will cause objects
1015 to be removed if they have not been accessed for a week or
1016 more. The default value is one month.
934b03fc 1017
1018 Specify a number here, followed by units of time. For example:
1019 1 week
1020 3.5 days
1021 4 months
1022 2.2 hours
1023
f1dc9b30 1024reference_age 1 month
934b03fc 1025DOC_END
1026
1027
0153d498 1028NAME: quick_abort_min
9906e724 1029COMMENT: (KB)
1030TYPE: kb_size_t
9e975e4e 1031DEFAULT: -1 kb
0153d498 1032LOC: Config.quickAbort.min
1033DOC_NONE
1034
1035NAME: quick_abort_pct
1036COMMENT: (percent)
1037TYPE: int
1038DEFAULT: 0
1039LOC: Config.quickAbort.pct
1040DOC_NONE
1041
1042NAME: quick_abort_max
9906e724 1043COMMENT: (KB)
1044TYPE: kb_size_t
9e975e4e 1045DEFAULT: 0 kb
0153d498 1046LOC: Config.quickAbort.max
934b03fc 1047DOC_START
cf5cc17e 1048 The cache can be configured to continue downloading aborted
1049 requests. This may be undesirable on slow (e.g. SLIP) links
1050 and/or very busy caches. Impatient users may tie up file
1051 descriptors and bandwidth by repeatedly requesting and
1052 immediately aborting downloads.
934b03fc 1053
1054 When the user aborts a request, Squid will check the
1055 quick_abort values to the amount of data transfered until
1056 then.
1057
cf5cc17e 1058 If the transfer has less than 'quick_abort_min' KB remaining,
1059 it will finish the retrieval. Setting 'quick_abort_min' to -1
1060 will disable the quick_abort feature.
934b03fc 1061
cf5cc17e 1062 If more than 'quick_abort_pct' of the transfer has completed,
1063 it will finish the retrieval.
934b03fc 1064
cf5cc17e 1065 If the transfer has more than 'quick_abort_max' KB remaining,
1066 it will abort the retrieval.
934b03fc 1067
cf5cc17e 1068quick_abort_min -1 KB
0153d498 1069quick_abort_pct 0
cf5cc17e 1070quick_abort_max 0 KB
934b03fc 1071DOC_END
1072
1073
1074NAME: negative_ttl
bc0eb004 1075COMMENT: time-units
f1dc9b30 1076TYPE: time_t
934b03fc 1077LOC: Config.negativeTtl
9e975e4e 1078DEFAULT: 5 minutes
934b03fc 1079DOC_START
1080 Time-to-Live (TTL) for failed requests. Certain types of
1081 failures (such as "connection refused" and "404 Not Found") are
cf5cc17e 1082 negatively-cached for a configurable amount of time. The
1083 default is 5 minutes. Note that this is different from
1084 negative caching of DNS lookups.
934b03fc 1085
1086negative_ttl 5 minutes
1087DOC_END
1088
1089
1090NAME: positive_dns_ttl
bc0eb004 1091COMMENT: time-units
f1dc9b30 1092TYPE: time_t
934b03fc 1093LOC: Config.positiveDnsTtl
9e975e4e 1094DEFAULT: 6 hours
934b03fc 1095DOC_START
1096 Time-to-Live (TTL) for positive caching of successful DNS lookups.
1097 Default is 6 hours (360 minutes). If you want to minimize the
1098 use of Squid's ipcache, set this to 1, not 0.
1099
9e975e4e 1100positive_dns_ttl 6 hours
934b03fc 1101DOC_END
1102
1103
1104NAME: negative_dns_ttl
bc0eb004 1105COMMENT: time-units
f1dc9b30 1106TYPE: time_t
934b03fc 1107LOC: Config.negativeDnsTtl
9e975e4e 1108DEFAULT: 5 minutes
934b03fc 1109DOC_START
1110 Time-to-Live (TTL) for negative caching of failed DNS lookups.
1111
1112negative_dns_ttl 5 minutes
1113DOC_END
1114
0f74202c 1115COMMENT_START
3a278cb8 1116 TIMEOUTS
1117 -----------------------------------------------------------------------------
0f74202c 1118COMMENT_END
934b03fc 1119
1120NAME: connect_timeout
bc0eb004 1121COMMENT: time-units
f1dc9b30 1122TYPE: time_t
934b03fc 1123LOC: Config.Timeout.connect
9e975e4e 1124DEFAULT: 2 minutes
934b03fc 1125DOC_START
1126 Some systems (notably Linux) can not be relied upon to properly
cf5cc17e 1127 time out connect(2) requests. Therefore the Squid process
934b03fc 1128 enforces its own timeout on server connections. This parameter
1129 specifies how long to wait for the connect to complete. The
1130 default is two minutes (120 seconds).
1131
1132connect_timeout 120 seconds
1133DOC_END
1134
23d92c64 1135NAME: siteselect_timeout
1136COMMENT: time-units
1137TYPE: time_t
1138LOC: Config.Timeout.siteSelect
1139DEFAULT: 4 seconds
1140DOC_START
1141 For URN to multiple URL's URL selection
1142
1143siteselect_timeout 4 seconds
1144DOC_END
934b03fc 1145
1146NAME: read_timeout
bc0eb004 1147COMMENT: time-units
f1dc9b30 1148TYPE: time_t
934b03fc 1149LOC: Config.Timeout.read
9e975e4e 1150DEFAULT: 15 minutes
934b03fc 1151DOC_START
1152 The read_timeout is applied on server-side connections. After
1153 each successful read(), the timeout will be extended by this
1154 amount. If no data is read again after this amount of time,
1155 the request is aborted and logged with ERR_READ_TIMEOUT. The
1156 default is 15 minutes.
1157
1158read_timeout 15 minutes
1159DOC_END
1160
1161
934b03fc 1162NAME: request_timeout
f1dc9b30 1163TYPE: time_t
934b03fc 1164LOC: Config.Timeout.request
9e975e4e 1165DEFAULT: 30 seconds
934b03fc 1166DOC_START
1167 How long to wait for an HTTP request after connection
1168 establishment. For persistent connections, wait this long
1169 after the previous request completes.
1170
0fbcf3c7 1171request_timeout 30 seconds
934b03fc 1172DOC_END
1173
1174
1175NAME: client_lifetime
bc0eb004 1176COMMENT: time-units
f1dc9b30 1177TYPE: time_t
934b03fc 1178LOC: Config.Timeout.lifetime
9e975e4e 1179DEFAULT: 1 day
934b03fc 1180DOC_START
1181 The maximum amount of time that a client (browser) is allowed to
1182 remain connected to the cache process. This protects the Cache
1183 from having alot of sockets (and hence file descriptors) tied up
1184 in a CLOSE_WAIT state from remote clients that go away without
1185 properly shutting down (either because of a network failure or
1186 because of a poor client implementation). The default is one
1187 day, 1440 minutes.
1188
1189 NOTE: The default value is intended to be much larger than any
1190 client would ever need to be connected to your cache. You
1191 should probably change client_lifetime only as a last resort.
1192 If you seem to have many client connections tying up
1193 filedescriptors, we recommend first tuning the read_timeout,
0fbcf3c7 1194 request_timeout, pconn_timeout and quick_abort values.
934b03fc 1195
1196client_lifetime 1 day
1197DOC_END
1198
ea285003 1199NAME: half_closed_clients
1200TYPE: onoff
1201LOC: Config.onoff.half_closed_clients
1202DEFAULT: on
1203DOC_START
1204 Some clients may shutdown the sending side of their TCP
1205 connections, while leaving their receiving sides open. Sometimes,
1206 Squid can not tell the difference between a half-closed and a
1207 fully-closed TCP connection. By default, half-closed client
1208 connections are kept open until a read(2) or write(2) on the
1209 socket returns an error. Change this option to 'off' and Squid
1210 will immediately close client connections when read(2) returns
1211 "no more data to read."
1212
1213half_closed_clients on
1214DOC_END
1215
603a02fd 1216NAME: pconn_timeout
1217TYPE: time_t
1218LOC: Config.Timeout.pconn
1219DEFAULT: 120 seconds
1220DOC_START
1221 Timeout for idle persistent connections to servers and other
1222 proxies.
1223pconn_timeout 120 seconds
1224DOC_END
1225
934b03fc 1226
1227NAME: shutdown_lifetime
bc0eb004 1228COMMENT: time-units
f1dc9b30 1229TYPE: time_t
934b03fc 1230LOC: Config.shutdownLifetime
9e975e4e 1231DEFAULT: 30 seconds
934b03fc 1232DOC_START
1233 When SIGTERM or SIGHUP is received, the cache is put into
1234 "shutdown pending" mode until all active sockets are closed.
1235 This value is the lifetime to set for all open descriptors
1236 during shutdown mode. Any active clients after this many
1237 seconds will receive a 'timeout' message.
1238
1239shutdown_lifetime 30 seconds
1240DOC_END
1241
0f74202c 1242COMMENT_START
3a278cb8 1243 ACCESS CONTROLS
1244 -----------------------------------------------------------------------------
0f74202c 1245COMMENT_END
934b03fc 1246
1247NAME: acl
1248TYPE: acl
f1dc9b30 1249LOC: Config.aclList
1250DEFAULT: none
934b03fc 1251DOC_START
1252 Defining an Access List
1253
1254 acl aclname acltype string1 ...
1255 acl aclname acltype "file" ...
1256
1257 when using "file", the file should contain one item per line
1258
1259 acltype is one of src dst srcdomain dstdomain url_pattern
1260 urlpath_pattern time port proto method browser user
1261
1262 acl aclname src ip-address/netmask ... (clients IP address)
1263 acl aclname src addr1-addr2/netmask ... (range of addresses)
1264 acl aclname dst ip-address/netmask ... (URL host's IP address)
d0d41f07 1265
1266 acl aclname srcdomain foo.com ... # reverse lookup, client IP
1267 acl aclname dstdomain foo.com ... # Destination server from URL
1268 acl aclname srcdom_regex xxx ... # regex matching client name
1269 acl aclname dstdom_regex xxx ... # regex matching server
1270 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
1271 # based URL is used. The name "none" is used if the reverse lookup
1272 # fails.
1273
934b03fc 1274 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
1275 day-abbrevs:
1276 S - Sunday
1277 M - Monday
1278 T - Tuesday
1279 W - Wednesday
1280 H - Thursday
1281 F - Friday
1282 A - Saturday
1283 h1:m1 must be less than h2:m2
1284 acl aclname url_regex ^http:// ... # regex matching on whole URL
d0d41f07 1285 acl aclname urlpath_regex \.gif$ ... # regex matching on URL path
934b03fc 1286 acl aclname port 80 70 21 ...
1287 acl aclname proto HTTP FTP ...
1288 acl aclname method GET POST ...
1289 acl aclname browser regexp
1290 acl aclname user username ... # string match on ident output.
1291 # use REQUIRED to accept any
1292 # non-null ident.
6468fe10 1293 acl aclname src_as number ...
1294 acl aclname dst_as number ...
1295 # Except for access control, AS numbers can be used for
1296 # routing of requests to specific caches. Here's an
1297 # example for routing all requests for AS#1241 and only
1298 # those to mycache.mydomain.net:
1299 # acl asexample dst_as 1241
af7d912e 1300 # cache_peer_acl mycache.mydomain.net asexample
1301 # cache_peer_acl mycache_mydomain.net !all
6468fe10 1302
afe95a7e 1303 acl aclname proxy_auth passwd_file [ refresh ]
1304 # 'passwd_file' is an Apache-style file of passwords for
1305 # authenticated proxy access. Looks like user:password, with
1306 # the password being standard crypt() format. 'refresh' is
1307 # the time in seconds to check for a changes in the file
1308 # (default = 300 secs). When using a proxy_auth ACL in an
1309 # ACL list, make sure it is the *last* in the list and the
1310 # only proxy_auth ACL in the list. NOTE: when a
1311 # Proxy-Authentication header is sent but it is not needed
1312 # during ACL checking the username is NOT logged in
1313 # access.log.
934b03fc 1314
1315acl manager proto cache_object
1316acl localhost src 127.0.0.1/255.255.255.255
1317acl all src 0.0.0.0/0.0.0.0
6468fe10 1318acl myexample dst_as 1241
934b03fc 1319acl SSL_ports port 443 563
1320acl Dangerous_ports port 7 9 19
1321acl CONNECT method CONNECT
1322DOC_END
1323
1324NAME: http_access
1325TYPE: acl_access
f1dc9b30 1326LOC: Config.accessList.http
1327DEFAULT: none
934b03fc 1328DOC_START
1329 Allowing or Denying access based on defined access lists
1330
1331 Access to the HTTP port:
1332 http_access allow|deny [!]aclname ...
1333
1334 Access to the ICP port:
1335 icp_access allow|deny [!]aclname ...
1336
1337 NOTE on default values:
1338
1339 If there are no "access" lines present, the default is to allow
1340 the request.
1341
1342 If none of the "access" lines cause a match, the default is the
1343 opposite of the last line in the list. If the last line was
1344 deny, then the default is allow. Conversely, if the last line
1345 is allow, the default will be deny. For these reasons, it is a
1346 good idea to have an "deny all" or "allow all" entry at the end
1347 of your access lists to avoid potential confusion.
1348
1349
1350 Only allow access to the cache manager functions from the local host.
1351http_access deny manager !localhost
1352http_access deny CONNECT !SSL_ports
1353http_access deny Dangerous_ports
1354
1355 Allow everything else
1356http_access allow all
1357DOC_END
1358
1359
1360NAME: icp_access
1361TYPE: acl_access
f1dc9b30 1362LOC: Config.accessList.icp
1363DEFAULT: none
934b03fc 1364DOC_START
1365 Reply to all ICP queries we receive
1366
1367icp_access allow all
1368DOC_END
1369
1370
1371NAME: miss_access
1372TYPE: acl_access
f1dc9b30 1373LOC: Config.accessList.miss
1374DEFAULT: none
934b03fc 1375DOC_START
1376 Use to force your neighbors to use you as a sibling instead of
1377 a parent. For example:
1378
1379 acl localclients src 172.16.0.0/16
1380 miss_access allow localclients
1381 miss_access deny !localclients
1382
1383 This means that only your local clients are allowed to fetch
1384 MISSES and all other clients can only fetch HITS.
1385
1386 By default, allow all clients who passed the http_access rules
1387 to fetch MISSES from us.
1388
1389miss_access allow all
1390DOC_END
1391
1392
505e35db 1393NAME: cache_peer_access
1394TYPE: peer_access
f1dc9b30 1395DEFAULT: none
1396LOC: none
934b03fc 1397DOC_START
505e35db 1398 Similar to 'cache_peer_domain' but provides more flexibility by
1399 using ACL elements.
934b03fc 1400
505e35db 1401 cache_peer_access cache-host allow|deny [!]aclname ...
934b03fc 1402
505e35db 1403 The syntax is identical to 'http_access' and the other lists of
1404 ACL elements. See the comments for 'http_access' below, or
1405 the Squid FAQ (http://squid.nlanr.net/Squid/FAQ/FAQ-10.html).
934b03fc 1406DOC_END
1407
f715bd3a 1408NAME: proxy_auth_realm
1409TYPE: eol
1410DEFAULT: Squid proxy-caching web server
1411LOC: Config.proxyAuthRealm
1412DOC_START
1413 Specifies the realm name which is to be reported to the client for
1414 proxy authentication (part of the text the user will see when
1415 prompted their username and password).
1416
1417proxy_auth_realm Squid proxy-caching web server
1418DOC_END
1419
1420
0f74202c 1421COMMENT_START
3a278cb8 1422 ADMINISTRATIVE PARAMETERS
1423 -----------------------------------------------------------------------------
0f74202c 1424COMMENT_END
934b03fc 1425
1426NAME: cache_mgr
1427TYPE: string
1428DEFAULT: webmaster
1429LOC: Config.adminEmail
1430DOC_START
1431 Email-address of local cache manager who will receive
1432 mail if the cache dies. The default is "webmaster."
1433
1434cache_mgr webmaster
1435DOC_END
1436
1437
1438NAME: cache_effective_user
0153d498 1439TYPE: string
a95856a0 1440DEFAULT: nobody
0153d498 1441LOC: Config.effectiveUser
1442DOC_NONE
1443
1444NAME: cache_effective_group
1445TYPE: string
a95856a0 1446DEFAULT: nogroup
0153d498 1447LOC: Config.effectiveGroup
934b03fc 1448DOC_START
1449 If the cache is run as root, it will change its effective/real
1450 UID/GID to the UID/GID specified below. The default is not to
1451 change UID/GID.
1452
0153d498 1453cache_effective_user nobody
1454cache_effective_group nogroup
934b03fc 1455DOC_END
1456
1457
1458NAME: visible_hostname
1459TYPE: string
1460LOC: Config.visibleHostname
f1dc9b30 1461DEFAULT: none
934b03fc 1462DOC_START
1463 If you want to present a special hostname in error messages, etc,
1464 then define this. Otherwise, the return value of gethostname()
cf5cc17e 1465 will be used. If you have multiple caches in a cluster and
1466 get errors about IP-forwarding you must set them to have individual
1467 names with this setting.
934b03fc 1468
1469visible_hostname www-cache.foo.org
1470DOC_END
1471
98829f69 1472
1473NAME: unique_hostname
1474TYPE: string
1475LOC: Config.uniqueHostname
1476DEFAULT: none
1477DOC_START
1478 If you want to have multiple machines with the same
1479 'visible_hostname' then you must give each machine a different
1480 'unique_hostname' so that forwarding loops can be detected.
1481
1482unique_hostname www-cache1.foo.org
1483DOC_END
1484
0f74202c 1485COMMENT_START
3a278cb8 1486 OPTIONS FOR THE CACHE REGISTRATION SERVICE
1487 -----------------------------------------------------------------------------
934b03fc 1488
3a278cb8 1489 This section contains parameters for the (optional) cache
1490 announcement service. This service is provided to help
1491 cache administrators locate one another in order to join or
1492 create cache hierarchies.
934b03fc 1493
3a278cb8 1494 An 'announcement' message is sent (via UDP) to the registration
1495 service by Squid. By default, the annoucement message is NOT
d2d631ce 1496 SENT unless you enable it with 'announce_period' below.
3a278cb8 1497
1498 The announcement message includes your hostname, plus the
1499 following information from this configuration file:
934b03fc 1500
3a278cb8 1501 http_port
1502 icp_port
1503 cache_mgr
1504
1505 All current information is processed regularly and made
d2d631ce 1506 available on the Web at http://ircache.nlanr.net/Cache/Tracker/.
0f74202c 1507COMMENT_END
934b03fc 1508
f1dc9b30 1509NAME: announce_period
1510TYPE: time_t
1511LOC: Config.Announce.period
d2d631ce 1512DEFAULT: 0
934b03fc 1513DOC_START
d2d631ce 1514 This is how frequently to send cache announcements. The
1515 default is `0' which disables sending the announcement
1516 messages.
934b03fc 1517
d2d631ce 1518 To enable announcing your cache, just uncomment the line
1519 below.
934b03fc 1520
9e975e4e 1521announce_period 1 day
934b03fc 1522DOC_END
1523
1524
f1dc9b30 1525NAME: announce_host
1526TYPE: string
61735fcf 1527DEFAULT: tracker.ircache.net
f1dc9b30 1528LOC: Config.Announce.host
1529DOC_NONE
1530
cf5cc17e 1531NAME: announce_file
1532TYPE: string
61735fcf 1533DEFAULT: none
cf5cc17e 1534LOC: Config.Announce.file
1535DOC_NONE
1536
f1dc9b30 1537NAME: announce_port
1538TYPE: ushort
1539DEFAULT: 3131
1540LOC: Config.Announce.port
934b03fc 1541DOC_START
d2d631ce 1542 announce_host and announce_port set the hostname and port
1543 number where the registration message will be sent.
934b03fc 1544
d2d631ce 1545 Hostname will default to 'tracker.ircache.net' and port will
1546 default default to 3131. If the 'filename' argument is given,
1547 the contents of that file will be included in the announce
1548 message.
934b03fc 1549
61735fcf 1550announce_host tracker.ircache.net
f1dc9b30 1551announce_port 3131
934b03fc 1552DOC_END
1553
0f74202c 1554COMMENT_START
3a278cb8 1555 HTTPD-ACCELERATOR OPTIONS
1556 -----------------------------------------------------------------------------
0f74202c 1557COMMENT_END
934b03fc 1558
f1dc9b30 1559NAME: httpd_accel_host
1560TYPE: string
1561LOC: Config.Accel.host
1562DEFAULT: none
1563DOC_NONE
1564
1565NAME: httpd_accel_port
1566TYPE: ushort
1567LOC: Config.Accel.port
5b68a4d3 1568DEFAULT: 80
934b03fc 1569DOC_START
cf5cc17e 1570 If you want to run Squid as an httpd accelerator, define the
934b03fc 1571 host name and port number where the real HTTP server is.
1572
1573 If you want virtual host support then specify the hostname
1574 as "virtual".
1575
f1dc9b30 1576httpd_accel_host hostname
1577httpd_accel_port port
934b03fc 1578DOC_END
1579
1580
1581NAME: httpd_accel_with_proxy
1582COMMENT: on|off
1583TYPE: onoff
f1dc9b30 1584DEFAULT: off
17a0a4ee 1585LOC: Config.onoff.accel_with_proxy
934b03fc 1586DOC_START
cf5cc17e 1587 If you want to use Squid as both a local httpd accelerator
934b03fc 1588 and as a proxy, change this to 'on'.
1589
1590httpd_accel_with_proxy off
1591DOC_END
1592
1593
1594NAME: httpd_accel_uses_host_header
1595COMMENT: on|off
1596TYPE: onoff
f1dc9b30 1597DEFAULT: off
934b03fc 1598LOC: opt_accel_uses_host
1599DOC_START
1600 HTTP/1.1 requests include a Host: header which is basically the
1601 hostname from the URL. Squid can be an accelerator for
1602 different HTTP servers by looking at this header. However,
1603 Squid does NOT check the value of the Host header, so it opens
1604 a big security hole. We recommend that this option remain
1605 disabled unless you are sure of what you are doing.
1606
04f6f348 1607 However, you will need to enable this option if you run Squid
1608 as a transparent proxy. Otherwise, virtual servers which
1609 require the Host: header will not be properly cached.
934b03fc 1610httpd_accel_uses_host_header off
1611DOC_END
1612
0f74202c 1613COMMENT_START
3a278cb8 1614 MISCELLANEOUS
1615 -----------------------------------------------------------------------------
0f74202c 1616COMMENT_END
934b03fc 1617
1618NAME: dns_testnames
1619TYPE: wordlist
1620LOC: Config.dns_testname_list
f1dc9b30 1621DEFAULT: none
934b03fc 1622DOC_START
1623 The DNS tests exit as soon as the first site is successfully looked up
1624
1625 If you want to disable DNS tests, do not comment out or delete this
1626 list. Instead use the -D command line option
1627
cf5cc17e 1628dns_testnames netscape.com internic.net nlanr.net microsoft.com
934b03fc 1629DOC_END
1630
1631
1632NAME: logfile_rotate
1633TYPE: int
1634DEFAULT: 10
1635LOC: Config.Log.rotateNumber
1636DOC_START
cf5cc17e 1637 Specifies the number of logfile rotations to make upon
1638 receiving a USR1 signal. The default is 10, which will rotate
1639 with extensions 0 through 9. Setting logfile_rotate to 0 will
934b03fc 1640 disable the rotation, but the logfiles are still closed and
cf5cc17e 1641 re-opened. This will enable you to rename the logfiles
1642 yourself just before sending a USR1 signal to the Squid
1643 process.
934b03fc 1644
1645logfile_rotate 10
1646DOC_END
1647
1648
1649NAME: append_domain
f1dc9b30 1650TYPE: string
1651LOC: Config.appendDomain
1652DEFAULT: none
934b03fc 1653DOC_START
cf5cc17e 1654 Appends local domain name to hostnames without any dots in
1655 them. append_domain must begin with a period.
934b03fc 1656
1657append_domain .yourdomain.com
1658DOC_END
1659
1660
1661NAME: tcp_recv_bufsize
89de058c 1662COMMENT: (bytes)
1b635117 1663TYPE: b_size_t
89de058c 1664DEFAULT: 0 bytes
934b03fc 1665LOC: Config.tcpRcvBufsz
1666DOC_START
1667 Size of receive buffer to set for TCP sockets. Probably just
1668 as easy to change your kernel's default. Set to zero to use
1669 the default buffer size.
1670
89de058c 1671tcp_recv_bufsize 0 bytes
934b03fc 1672DOC_END
1673
934b03fc 1674NAME: err_html_text
f1dc9b30 1675TYPE: eol
1676LOC: Config.errHtmlText
1677DEFAULT: none
934b03fc 1678DOC_START
1679 HTML text to include in error messages. Make this a "mailto"
1680 URL to your admin address, or maybe just a link to your
1681 organizations Web page.
1682
1683err_html_text
1684DOC_END
1685
1686
1687NAME: deny_info
1688TYPE: denyinfo
1689LOC: Config.denyInfoList
f1dc9b30 1690DEFAULT: none
934b03fc 1691DOC_START
02922e76 1692 Usage: deny_info err_page_name acl
1693 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
934b03fc 1694
02922e76 1695 This can be used to return a ERR_ page for requests which
934b03fc 1696 do not pass the 'http_access' rules. A single ACL will cause
1697 the http_access check to fail. If a 'deny_info' line exists
02922e76 1698 for that ACL then Squid returns a corresponding error page.
cf5cc17e 1699
02922e76 1700 You may use ERR_ pages that come with Squid or create your own pages
1701 and put them into the configured errors/ directory.
934b03fc 1702DOC_END
1703
934b03fc 1704NAME: memory_pools
1705COMMENT: on|off
1706TYPE: onoff
f1dc9b30 1707DEFAULT: on
3f6c0fb2 1708LOC: Config.onoff.mem_pools
934b03fc 1709DOC_START
1710 If set, Squid will keep pools of allocated (but unused) memory
1711 available for future use. If memory is a premium on your
7021844c 1712 system and you believe your malloc library outperforms Squid
d0d41f07 1713 routines, disable this.
934b03fc 1714
1715memory_pools on
1716DOC_END
1717
7021844c 1718NAME: memory_pools_limit
1719COMMENT: (bytes)
1720TYPE: b_size_t
1721DEFAULT: none
f12c295b 1722LOC: Config.MemPools.limit
7021844c 1723DOC_START
f12c295b 1724 Used only with memory_pools on:
1725 memory_pools_limit 50 MB
7021844c 1726
f12c295b 1727 If set to a non-zero value, Squid will keep at most the specified
1728 limit of allocated (but unused) memory in memory pools. All free()
1729 requests that exceed this limit will be handled by your malloc
1730 library. Squid does not pre-allocate any memory, just safe-keeps
1731 objects that otherwise would be free()d. Thus, it is safe to set
7021844c 1732 memory_pools_limit to a reasonably high value even if your
f12c295b 1733 configuration will use less memory.
1734
1735 If not set (default) or set to zero, Squid will keep all memory it
1736 can. That is, there will be no limit on the total amount of memory
1737 used for safe-keeping.
7021844c 1738
1739 To disable memory allocation optimization, do not set
1740 memory_pools_limit to 0. Set memory_pools to "off" instead.
1741
f12c295b 1742 An overhead for maintaining memory pools is not taken into account
1743 when the limit is checked. This overhead is close to four bytes per
1744 object kept. However, pools may actually _save_ memory because of
1745 reduced memory thrashing in your malloc library.
7021844c 1746DOC_END
1747
934b03fc 1748NAME: forwarded_for
1749COMMENT: on|off
1750TYPE: onoff
f1dc9b30 1751DEFAULT: on
934b03fc 1752LOC: opt_forwarded_for
1753DOC_START
1754 If set, Squid will include your system's IP address or name
1755 in the HTTP requests it forwards. By default it looks like
1756 this:
1757
1758 X-Forwarded-For: 192.1.2.3
1759
1760 If you disable this, it will appear as
1761
1762 X-Forwarded-For: unknown
1763
1764forwarded_for on
1765DOC_END
1766
1767NAME: log_icp_queries
1768COMMENT: on|off
1769TYPE: onoff
f1dc9b30 1770DEFAULT: on
17a0a4ee 1771LOC: Config.onoff.log_udp
934b03fc 1772DOC_START
cf5cc17e 1773 If set, ICP queries are logged to access.log. You may wish
1774 do disable this if your ICP load is VERY high to speed things
1775 up or to simplify log analysis.
934b03fc 1776
1777log_icp_queries on
1778DOC_END
1779
88738790 1780NAME: icp_hit_stale
1781COMMENT: on|off
1782TYPE: onoff
1783DEFAULT: off
17a0a4ee 1784LOC: Config.onoff.icp_hit_stale
88738790 1785DOC_START
1786 If you want to return ICP_HIT for stale cache objects, set this
1787 option to 'on'. If you have sibling relationships with caches
1788 in other administrative domains, this should be 'off'. If you only
1789 have sibling relationships with caches under your control, then
1790 it is probably okay to set this to 'on'.
1791
1792icp_hit_stale off
1793DOC_END
1794
934b03fc 1795
1796NAME: minimum_direct_hops
1797TYPE: int
1798DEFAULT: 4
1799LOC: Config.minDirectHops
1800DOC_START
1801 If using the ICMP pinging stuff, do direct fetches for sites
1802 which are no more than this many hops away.
1803
1804minimum_direct_hops 4
1805DOC_END
1806
1807
1808NAME: cachemgr_passwd
1809TYPE: cachemgrpasswd
86101e40 1810DEFAULT: none
f1dc9b30 1811LOC: Config.passwd_list
934b03fc 1812DOC_START
1813 Specify passwords for cachemgr operations.
1814
1815 Usage: cachemgr_passwd password action action ...
1816
1817 valid actions are:
1818 shutdown *
1819 info
cf5cc17e 1820 objects
1821 vm_objects
1822 utilization
1823 ipcache
1824 fqdncache
1825 dns
1826 redirector
1827 io
1828 reply_headers
1829 filedescriptors
1830 netdb
934b03fc 1831 server_list
1832 client_list
cf5cc17e 1833 config *
934b03fc 1834
1835 * Indicates actions which will not be performed without a
1836 valid password, others can be performed if not listed here.
1837
1838 To disable an action, set the password to "disable".
1839 To allow performing an action without a password, set the
1840 password to "none".
1841
1842 Use the keyword "all" to set the same password for all actions.
1843
1844cachemgr_passwd secret shutdown
1845cachemgr_passwd lesssssssecret info stats/objects
1846cachemgr_passwd disable all
1847DOC_END
1848
934b03fc 1849NAME: store_avg_object_size
86101e40 1850COMMENT: (kbytes)
1851TYPE: kb_size_t
2bf99296 1852DEFAULT: 13 KB
934b03fc 1853LOC: Config.Store.avgObjectSize
1854DOC_START
1855 Average object size, used to estimate number of objects your
1856 cache can hold. See doc/Release-Notes-1.1.txt. The default is
2bf99296 1857 13 KB.
934b03fc 1858
2bf99296 1859store_avg_object_size 13 KB
934b03fc 1860DOC_END
1861
1862NAME: store_objects_per_bucket
1863TYPE: int
1864DEFAULT: 50
1865LOC: Config.Store.objectsPerBucket
1866DOC_START
1867 Target number of objects per bucket in the store hash table.
1868 Lowering this value increases the total number of buckets and
1869 also the storage maintenance rate. The default is 20.
1870
1871store_objects_per_bucket 20
1872DOC_END
1873
1874
1875NAME: http_anonymizer
1876TYPE: httpanonymizer
17a0a4ee 1877LOC: Config.onoff.anonymizer
f1dc9b30 1878DEFAULT: off
934b03fc 1879DOC_START
1880 If you want to filter out certain HTTP request headers for
1881 privacy reasons, enable this option. There are three
1882 appropriate settings:
1883 'off' All HTTP request headers are passed.
1884 'standard' Specific headers are removed
1885 'paranoid' Only specific headers are allowed.
1886 To see which headers are allowed or denied, please see the
1887 http-anon.c source file.
1888
1889http_anonymizer off
1890DOC_END
1891
1892
1893NAME: client_db
1894COMMENT: on|off
1895TYPE: onoff
f1dc9b30 1896DEFAULT: on
17a0a4ee 1897LOC: Config.onoff.client_db
934b03fc 1898DOC_START
1899 If you want to disable collecting per-client statistics, then
1900 turn off client_db here.
1901
1902client_db on
1903DOC_END
1904
1905
1906NAME: netdb_low
1907TYPE: int
1908DEFAULT: 900
1909LOC: Config.Netdb.low
1910DOC_NONE
1911
1912NAME: netdb_high
1913TYPE: int
1914DEFAULT: 1000
1915LOC: Config.Netdb.high
1916DOC_START
1917 The low and high water marks for the ICMP measurement
1918 database. These are counts, not percents. The defaults are
1919 900 and 1000. When the high water mark is reached, database
1920 entries will be deleted until the low mark is reached.
1921
1922netdb_low 900
1923netdb_high 1000
1924DOC_END
1925
1926
1927NAME: netdb_ping_period
f1dc9b30 1928TYPE: time_t
934b03fc 1929LOC: Config.Netdb.period
9e975e4e 1930DEFAULT: 5 minutes
934b03fc 1931DOC_START
1932 The minimum period for measuring a site. There will be at
1933 least this much delay between successive pings to the same
1934 network. The default is five minutes.
1935
1936netdb_ping_period 5 minutes
1937DOC_END
1938
1939
1940NAME: query_icmp
1941COMMENT: on|off
1942TYPE: onoff
f1dc9b30 1943DEFAULT: off
17a0a4ee 1944LOC: Config.onoff.query_icmp
934b03fc 1945DOC_START
1946 If you want to ask your peers to include ICMP data in their ICP
1947 replies, enable this option.
1948
cf5cc17e 1949 If your peer has configured Squid (during compilation) with
1950 '--enable-icmp' then that peer will send ICMP pings to origin server
1951 sites of the URLs it receives. If you enable this option then the
1952 ICP replies from that peer will include the ICMP data (if available).
1953 Then, when choosing a parent cache, Squid will choose the parent with
934b03fc 1954 the minimal RTT to the origin server. When this happens, the
1955 hierarchy field of the access.log will be
1956 "CLOSEST_PARENT_MISS". This option is off by default.
1957
1958query_icmp off
1959DOC_END
1960
88500f96 1961NAME: test_reachability
194dd3b8 1962COMMENT: on|off
1963TYPE: onoff
1964DEFAULT: off
1965LOC: Config.onoff.test_reachability
1966DOC_START
1967 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
1968 instead of ICP_MISS if the target host is NOT in the ICMP
1969 database, or has a zero RTT.
1970
1971test_reachability off
1972DOC_END
1973
78f1250a 1974NAME: buffered_logs
1975COMMENT: on|off
1976TYPE: onoff
1977DEFAULT: off
17a0a4ee 1978LOC: Config.onoff.buffered_logs
78f1250a 1979DOC_START
1980 Some log files (cache.log, useragent.log) are written with
1981 stdio functions, and as such they can be buffered or
cf5cc17e 1982 unbuffered. By default they will be unbuffered. Buffering them
1983 can speed up the writing slightly (though you are unlikely to
1984 need to worry).
78f1250a 1985buffered_logs off
1986DOC_END
1987
465dc415 1988NAME: reload_into_ims
1989COMMENT: on|off
1990TYPE: onoff
1991DEFAULT: off
1992LOC: Config.onoff.reload_into_ims
1993DOC_START
1994 When you enable this option, client no-cache or ``reload''
1995 requests will be changed to If-Modified-Since requests.
1996 Doing this VIOLATES the HTTP standard. Enabling this
1997 feature could make you liable for problems which it
1998 causes.
1999reload_into_ims off
2000DOC_END
2001
934b03fc 2002NAME: always_direct
2003TYPE: acl_access
2004LOC: Config.accessList.AlwaysDirect
f1dc9b30 2005DEFAULT: none
934b03fc 2006DOC_START
2a78fa67 2007 Usage: always_direct allow|deny [!]aclname ...
2008
2009 Here you can use ACL elements to specify requests which should
2010 ALWAYS be forwarded directly to origin servers. This option
2011 replaces some v1.1 options such as inside_firewall,
2012 firewall_ip, local_domain, and local_ip. For example, to
2013 always directly forward requests for local servers use
2014 something like:
2015
2016 acl local-servers dstdomain my.domain.net
2017 always_direct allow local-servers
2018
2019 To always forward FTP requests directly, use
2020
2021 acl FTP proto FTP
2022 always_direct allow FTP
2023
2024 NOTE: There is a similar, but opposite option named
2025 'never_direct'. You need to be aware that "always_direct deny
2026 foo" is NOT the same thing as "never_direct allow foo". You
2027 may need to use a deny rule to exclude a more-specific case of
2028 some other rule. Example:
2029
2030 acl local-external dstdomain external.foo.net
2031 acl local-servers dstdomain foo.net
2032 always_direct deny local-external
2033 always_direct allow local-servers
934b03fc 2034DOC_END
2035
2036NAME: never_direct
2037TYPE: acl_access
2038LOC: Config.accessList.NeverDirect
f1dc9b30 2039DEFAULT: none
934b03fc 2040DOC_START
d0d41f07 2041 Usage: never_direct allow|deny [!]aclname ...
2a78fa67 2042
2043 never_direct is the opposite of always_direct. Please read
2044 the description for always_direct if you have not already.
934b03fc 2045
2a78fa67 2046 With 'never_direct' you can use ACL elements to specify
2047 requests which should NEVER be forwarded directly to origin
2048 servers. This option replaces some v1.1 options such as
2049 inside_firewall, firewall_ip, local_domain, and local_ip. For
2050 example, to force the use of a proxy for all requests, except
2051 those in your local domain, use something like:
2052
d0d41f07 2053 acl local-servers dstdomain my.domain.net
2a78fa67 2054 acl all src 0.0.0.0/0.0.0.0
d0d41f07 2055 never_direct deny local-servers
2056 never_direct allow all
2a78fa67 2057DOC_END
934b03fc 2058
88738790 2059NAME: fake_user_agent
2060TYPE: eol
2061LOC: Config.fake_ua
2062DEFAULT: none
2063DOC_START
d0d41f07 2064 If you use the paranoid http_anonymizer setting, Squid will strip
2065 your User-agent string from the request. Some Web servers will
2066 refuse your request without a User-agent string. Use this to
2067 fake one up. For example:
88738790 2068
d0d41f07 2069 fake_user_agent Nutscrape/1.0 (CP/M; 8-bit)
2070 (credit to Paul Southworth pauls@etext.org for this one!)
88738790 2071
2072fake_user_agent none
2073DOC_END
2074
365cb147 2075NAME: icon_directory
f0b19334 2076TYPE: string
365cb147 2077LOC: Config.icons.directory
2078DEFAULT: @DEFAULT_ICON_DIR@
2079DOC_START
cf5cc17e 2080 Where the icons are stored. These are normally kept in
2081 @DEFAULT_ICON_DIR@
365cb147 2082DOC_END
2083
cf5cc17e 2084NAME: error_directory
365cb147 2085TYPE: string
cf5cc17e 2086LOC: Config.errorDirectory
2087DEFAULT: @DEFAULT_ERROR_DIR@
365cb147 2088DOC_START
cf5cc17e 2089 If you wish to create your own versions of the default
2090 (English) error files, either to customise them to suit your
2091 language or company copy the template english files to anther
2092 directory and point this tag at them.
365cb147 2093DOC_END
88738790 2094
22c653cd 2095NAME: minimum_retry_timeout
2096COMMENT: (seconds)
2097TYPE: time_t
2098LOC: Config.retry.timeout
2099DEFAULT: 5 seconds
2100DOC_START
2101 This specifies the minimum connect timeout, for when the
2102 connect timeout is reduced to compensate for the availability
2103 of multiple IP addresses.
2104
cf5cc17e 2105 When a connection to a host is initiated, and that host has
2106 several IP addresses, the default connection timeout is reduced
2107 by dividing it by the number of addresses. So, a site with 15
2108 addresses would then have a timeout of 8 seconds for each
2109 address attempted. To avoid having the timeout reduced to the
2110 point where even a working host would not have a chance to
2111 respond, this setting is provided. The default, and the
2112 minimum value, is five seconds, and the maximum value is sixty
2113 seconds, or half of connect_timeout, whichever is greater and
2114 less than connect_timeout.
22c653cd 2115
cf5cc17e 2116minimum_retry_timeout 5 seconds
22c653cd 2117DOC_END
2118
2119NAME: maximum_single_addr_tries
2120TYPE: int
2121LOC: Config.retry.maxtries
2122DEFAULT: 3
2123DOC_START
2124 This sets the maximum number of connection attempts for a
2125 host that only has one address (for multiple-address hosts,
2126 each address is tried once).
2127
2128 The default value is three tries, the (not recommended)
2129 maximum is 255 tries. A warning message will be generated
2130 if it is set to a value greater than ten.
2131
2132maximum_single_addr_tries 3
2133DOC_END
6d1c0d53 2134
a97cfa48 2135NAME: snmp_port
2136TYPE: ushort
2137LOC: Config.Port.snmp
2138DEFAULT: 3401
1df370e3 2139IFDEF: SQUID_SNMP
a97cfa48 2140DOC_START
cf5cc17e 2141 Squid can now serve statistics and status information via SNMP.
2142 By default it listens to port 3401 on the machine. If you don't
2143 wish to use SNMP, set this to '-1'.
2144
2145 NOTE: SNMP support requires use the --enable-snmp configure
2146 command line option.
794a4fea 2147snmp_port 3401
a97cfa48 2148DOC_END
2149
a97cfa48 2150NAME: snmp_do_queueing
2151TYPE: onoff
2152LOC: Config.Snmp.do_queueing
2153DEFAULT: on
1df370e3 2154IFDEF: SQUID_SNMP
a97cfa48 2155DOC_START
cf5cc17e 2156 If disabled, snmp packets will not be queued but delivered
2157 immediately. This could be useful when you want to monitor a
2158 cache in trouble, but this could also make Squid block, slowing
2159 connections and possibly worsening the cache status.
794a4fea 2160snmp_do_queueing on
a97cfa48 2161DOC_END
2162
2163NAME: forward_snmpd_port
2164TYPE: ushort
2165LOC: Config.Snmp.localPort
2166DEFAULT: 0
1df370e3 2167IFDEF: SQUID_SNMP
a97cfa48 2168DOC_START
2169 This configures whether we should be forwarding SNMP requests
cf5cc17e 2170 to another snmpd. The reason for putting this piece of
2171 functionality into Squid was to enable access to the system's
2172 installed snmpd with minimal changes. This option is turned
2173 off by default, check with your /etc/services for your system's
2174 snmp port (usually 161). We do not use getservbyname() to
2175 allow you to set Squid into port 161 and your system's snmpd to
2176 another port by changing /etc/services.
2177
d0d41f07 2178 WARNING: Because of Squid acting as a proxy snmpd for system
2179 you have to do security checks on THIS snmpd for all objects.
2180 Check your snmp_config_file.
794a4fea 2181forward_snmpd_port 0
a97cfa48 2182DOC_END
2183
2184NAME: snmp_mib_path
2185TYPE: string
2186LOC: Config.Snmp.mibPath
2187DEFAULT: @DEFAULT_MIB_PATH@
1df370e3 2188IFDEF: SQUID_SNMP
a97cfa48 2189DOC_START
cf5cc17e 2190 The location of Squid's mib.
794a4fea 2191snmp_mib_path @DEFAULT_MIB_PATH@
a97cfa48 2192DOC_END
2193
a97cfa48 2194NAME: trap_sink
4feb7b2e 2195TYPE: string
a97cfa48 2196LOC: Config.Snmp.trap_sink
2197DEFAULT: 127.0.0.1
1df370e3 2198IFDEF: SQUID_SNMP
4feb7b2e 2199DOC_START
a97cfa48 2200 Hostname or ip address of trap sink for snmp
794a4fea 2201trap_sink 127.0.0.1
4feb7b2e 2202DOC_END
2203
a97cfa48 2204NAME: snmp_trap_community
2205TYPE: string
2206LOC: Config.Snmp.trap_community
2207DEFAULT: public
1df370e3 2208IFDEF: SQUID_SNMP
a97cfa48 2209DOC_START
cf5cc17e 2210 Community name for traps.
794a4fea 2211snmp_trap_community public
a97cfa48 2212DOC_END
2213
2214NAME: snmp_enable_authen_traps
2215TYPE: onoff
2216LOC: Config.Snmp.conf_authtraps
2217DEFAULT: off
1df370e3 2218IFDEF: SQUID_SNMP
a97cfa48 2219DOC_START
cf5cc17e 2220 Enable SNMP authenticated traps. Set to 'off' or 'on'.
794a4fea 2221snmp_enable_authen_traps off
a97cfa48 2222DOC_END
2223
2224NAME: snmp_agent_conf
5e14bf6d 2225TYPE: stringlist
a97cfa48 2226LOC: Config.Snmp.snmpconf
2227DEFAULT: none
1df370e3 2228IFDEF: SQUID_SNMP
a97cfa48 2229DOC_START
2230 Define snmp views, users and communities
2231 Example:
2232 snmp_agent_conf view all .1.3.6 included
2233 snmp_agent_conf view squid .1.3.6 included
2234 snmp_agent_conf user squid - all all public
2235 snmp_agent_conf user all all all all squid
2236 snmp_agent_conf community public squid squid
2237 snmp_agent_conf community readwrite all all
2238DOC_END
4feb7b2e 2239
bdf18524 2240NAME: snmp_acl
2241TYPE: snmp_access
2242LOC: Config.Snmp.communities
2243DEFAULT: none
2244IFDEF: SQUID_SNMP
2245DOC_START
2246 Define access controls per community:
2247 snmp_access communityname allow|deny [!]aclname ...
2248 Example:
2249 snmp_acl public allow adminsubnet
2250 snmp_acl public deny all
2251DOC_END
2252
15dcc168 2253NAME: snmp_incoming_address
2254TYPE: address
2255LOC: Config.Addrs.snmp_outgoing
2256DEFAULT: 0.0.0.0
2257IFDEF: SQUID_SNMP
2258DOC_NONE
2259NAME: snmp_outgoing_address
2260TYPE: address
2261LOC: Config.Addrs.snmp_outgoing
2262DEFAULT: 255.255.255.255
2263IFDEF: SQUID_SNMP
2264DOC_START
2265 Just like 'udp_incoming_address' above, but for the SNMP port.
2266
2267 snmp_incoming_address is used for the SNMP socket receiving
2268 messages from SNMP agents.
2269 snmp_outgoing_address is used for SNMP packets returned to SNMP
2270 agents.
2271
2272 The default behaviour is to not bind to any specific address.
2273
2274 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
2275 the same value since they both use port 3130.
2276
2277snmp_incoming_address 0.0.0.0
2278snmp_outgoing_address 0.0.0.0
2279DOC_END
bdf18524 2280
53ad48e6 2281NAME: as_whois_server
2282TYPE: string
2283LOC: Config.as_whois_server
2284DEFAULT: whois.ra.net
2285DEFAULT_IF_NONE: whois.ra.net
2286DOC_START
cf5cc17e 2287 WHOIS server to query for AS numbers. NOTE: AS numbers are
2288 queried only when Squid starts up, not for every request.
53ad48e6 2289DOC_END
95e36d02 2290
2291COMMENT_START
2292 DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
2293 -----------------------------------------------------------------------------
2294
2295 A general note on delay pools - the first matched delay pool is used,
2296 that is, if a request falls into class1 then it isn't checked for class2
2297 or class3 (and similarly a class2 request isn't checked for class3).
2298COMMENT_END
2299
2300NAME: delay_class1_access
2301TYPE: acl_access
2302DEFAULT: none
2303IFDEF: DELAY_POOLS
2304LOC: Config.Delay.class1.access
2305DOC_START
2306 This is used to select what client requests are processed via
2307 the first ("class 1") delay pool. In this delay pool only the
2308 aggregate traffic allowance is configurable.
2309DOC_END
2310
2311NAME: delay_class2_access
2312TYPE: acl_access
2313DEFAULT: none
2314IFDEF: DELAY_POOLS
2315LOC: Config.Delay.class2.access
2316DOC_START
2317 This is used to select what client requests are processed via
2318 the first ("class 2") delay pool. In this delay pool both the
2319 aggregate and per-host traffic allowance are configurable.
2320 There are 254 individual delay pools based on the last 8 bits
2321 of the client IP address (addresses ending in 0 and 255 are not
2322 permitted).
2323DOC_END
2324
2325NAME: delay_class3_access
2326TYPE: acl_access
2327DEFAULT: none
2328IFDEF: DELAY_POOLS
2329LOC: Config.Delay.class3.access
2330DOC_START
2331 This is used to select what client requests are processed via
2332 the first ("class 3") delay pool. In this delay pool, the
2333 aggregate, network and per-host traffic allowance are
2334 configurable. There are 255 network delay pools based on the
2335 17th to 24th bit of the client IP address (network 255 is not
2336 permitted), and individual delay pools based on the last 16
2337 bits of the client IP address (network 255 and hosts ending in
2338 0 and 255 are not permitted).
2339DOC_END
2340
2341NAME: delay_class1_aggregate_restore
2342TYPE: int
2343DEFAULT: -1
2344IFDEF: DELAY_POOLS
2345COMMENT: (bps)
2346LOC: Config.Delay.class1.aggregate.restore_bps
2347DOC_START
2348 The number of bytes per second added to the class 1 aggregate
2349 delay pool traffic allowance (-1 to disable the delay pool).
2350DOC_END
2351
2352NAME: delay_class1_aggregate_max
2353TYPE: int
2354DEFAULT: -1
2355IFDEF: DELAY_POOLS
2356COMMENT: (bytes)
2357LOC: Config.Delay.class1.aggregate.max_bytes
2358DOC_START
2359 The maximum number of bytes which can be in the class 1
2360 aggregate delay pool traffic allowance.
2361DOC_END
2362
2363NAME: delay_class2_aggregate_restore
2364TYPE: int
2365DEFAULT: -1
2366IFDEF: DELAY_POOLS
2367COMMENT: (bps)
2368LOC: Config.Delay.class2.aggregate.restore_bps
2369DOC_START
2370 The number of bytes per second added to the class 2 aggregate
2371 delay pool traffic allowance (-1 to disable the delay pool).
2372DOC_END
2373
2374NAME: delay_class2_aggregate_max
2375TYPE: int
2376DEFAULT: -1
2377IFDEF: DELAY_POOLS
2378COMMENT: (bytes)
2379LOC: Config.Delay.class2.aggregate.max_bytes
2380DOC_START
2381 The maximum number of bytes which can be in the class 2
2382 aggregate delay pool traffic allowance.
2383DOC_END
2384
2385NAME: delay_class2_individual_restore
2386TYPE: int
2387DEFAULT: -1
2388IFDEF: DELAY_POOLS
2389COMMENT: (bps)
2390LOC: Config.Delay.class2.individual.restore_bps
2391DOC_START
2392 The number of bytes per second added to the class 2 individual
2393 host delay pool traffic allowances (-1 to disable these delay
2394 pools).
2395DOC_END
2396
2397NAME: delay_class2_individual_max
2398TYPE: int
2399DEFAULT: -1
2400IFDEF: DELAY_POOLS
2401COMMENT: (bytes)
2402LOC: Config.Delay.class2.individual.max_bytes
2403DOC_START
2404 The maximum number of bytes which can be in the class 2
2405 individual host delay pool traffic allowances.
2406DOC_END
2407
2408NAME: delay_class3_aggregate_restore
2409TYPE: int
2410DEFAULT: -1
2411IFDEF: DELAY_POOLS
2412COMMENT: (bps)
2413LOC: Config.Delay.class3.aggregate.restore_bps
2414DOC_START
2415 The number of bytes per second added to the class 3 aggregate
2416 delay pool traffic allowance (-1 to disable the delay pool).
2417DOC_END
2418
2419NAME: delay_class3_aggregate_max
2420TYPE: int
2421DEFAULT: -1
2422IFDEF: DELAY_POOLS
2423COMMENT: (bytes)
2424LOC: Config.Delay.class3.aggregate.max_bytes
2425DOC_START
2426 The maximum number of bytes which can be in the class 3
2427 aggregate delay pool traffic allowance.
2428DOC_END
2429
2430NAME: delay_class3_network_restore
2431TYPE: int
2432DEFAULT: -1
2433IFDEF: DELAY_POOLS
2434COMMENT: (bps)
2435LOC: Config.Delay.class3.network.restore_bps
2436DOC_START
2437 The number of bytes per second added to the class 3 8-bit
2438 network delay pool traffic allowances (-1 to disable these
2439 delay pools).
2440DOC_END
2441
2442NAME: delay_class3_network_max
2443TYPE: int
2444DEFAULT: -1
2445IFDEF: DELAY_POOLS
2446COMMENT: (bytes)
2447LOC: Config.Delay.class3.network.max_bytes
2448DOC_START
2449 The maximum number of bytes which can be in the class 3 8-bit
2450 network delay pool traffic allowances.
2451DOC_END
2452
2453NAME: delay_class3_individual_restore
2454TYPE: int
2455DEFAULT: -1
2456IFDEF: DELAY_POOLS
2457COMMENT: (bps)
2458LOC: Config.Delay.class3.individual.restore_bps
2459DOC_START
2460 The number of bytes per second added to the class 3 individual
2461 host delay pool traffic allowances (-1 to disable these delay
2462 pools).
2463DOC_END
2464
2465NAME: delay_class3_individual_max
2466TYPE: int
2467DEFAULT: -1
2468IFDEF: DELAY_POOLS
2469COMMENT: (bytes)
2470LOC: Config.Delay.class3.individual.max_bytes
2471DOC_START
2472 The maximum number of bytes which can be in the class 3
2473 individual host delay pool traffic allowances.
2474DOC_END
6d1c0d53 2475EOF