]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
remove debugging in parse_peer()
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
934b03fc 1NAME: http_port ascii_port
2TYPE: ushortlist
3DEFAULT: 3128
4LOC: Config.Port.http
5DOC_START
6 The port number where squid will listen for HTTP client
7 requests. Default is 3128, for httpd-accel mode use port 80.
8 May be overridden with -a on the command line.
9
10 You may specify multiple ports here, but they MUST all be on
11 a single line.
12
13http_port 3128
14DOC_END
15
16
17NAME: icp_port udp_port
18TYPE: ushort
19DEFAULT: 3130
20LOC: Config.Port.icp
21DOC_START
22 The port number where squid send and receive ICP requests to
23 and from neighbor caches. Default is 3130. To disable use
24 "0". May be overridden with -u on the command line.
25
26icp_port 3130
27DOC_END
28
29
30NAME: mcast_groups
31TYPE: wordlist
32LOC: Config.mcast_group_list
1273d501 33DEFAULT: none
934b03fc 34DOC_START
35 This tag specifies a list of multicast groups which your
36 server should join to receive multicasted ICP requests.
37
38 NOTE! Be very careful what you put here! Be sure you
39 understand the difference between an ICP _query_ and an ICP
40 _reply_. This option is to be set only if you want to RECEIVE
41 multicast queries. Do NOT set this option to SEND multicast
42 ICP (use cache_host for that). ICP replies are always sent via
43 unicast, so this option does not affect whether or not you will
44 receive replies from multicast group members.
45
46 You must be very careful to NOT use a multicast address which
47 is already in use by another group of caches. NLANR has been
48 assigned a block of multicast address space for use in Web
49 Caching. Plese write to us at nlanr-cache@nlanr.net to receive
50 an address for your own use.
51
52 Usage: mcast_groups 239.128.16.128 224.0.1.20
53
54 By default, squid doesn't listen on any multicast groups.
55
56mcast_groups 239.128.16.128
57DOC_END
58
59
60NAME: tcp_incoming_address bind_address
61TYPE: address
62LOC: Config.Addrs.tcp_incoming
270b86af 63DEFAULT: 0.0.0.0
934b03fc 64DOC_NONE
65
66NAME: tcp_outgoing_address outbound_address
67TYPE: address
68LOC: Config.Addrs.tcp_outgoing
270b86af 69DEFAULT: 255.255.255.255
934b03fc 70DOC_NONE
71
72NAME: udp_incoming_address
73TYPE: address
74LOC:Config.Addrs.udp_incoming
270b86af 75DEFAULT: 0.0.0.0
934b03fc 76DOC_NONE
77
78NAME: udp_outgoing_address
79TYPE: address
80LOC: Config.Addrs.udp_outgoing
270b86af 81DEFAULT: 255.255.255.255
934b03fc 82DOC_START
83 Usage: tcp_incoming_address 10.20.30.40
84 udp_outgoing_address fully.qualified.domain.name
85
934b03fc 86 tcp_incoming_address is used for the HTTP socket which accepts
87 connections from clients and other caches.
88 tcp_outgoing_address is used for connections made to remote
89 servers and other caches.
90 udp_incoming_address is used for the ICP socket receiving packets
91 from other caches.
92 udp_outgoing_address is used for ICP packets sent out to other
93 caches.
94
95 The defaults behaviour is to not bind to any specific address.
96
97 NOTE, udp_incoming_address and udp_outgoing_address can not have
98 the same value since they both use port 3130.
99
100tcp_incoming_address 0.0.0.0
101tcp_outgoing_address 0.0.0.0
102udp_incoming_address 0.0.0.0
103udp_outgoing_address 0.0.0.0
104DOC_END
105
106
107# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
108#-----------------------------------------------------------------------------
109
40a1495e 110NAME: cache_peer
111TYPE: peer
1273d501 112DEFAULT: none
0153d498 113LOC: Config.peers
934b03fc 114DOC_START
115 To specify other caches in a hierarchy, use the format:
116
117 hostname type http_port icp_port
118
119 For example,
120
121 # proxy icp
122 # hostname type port port options
123 # -------------------- -------- ----- ----- -----------
124 cache_host bigserver.usc.edu parent 3128 3130 [proxy-only]
125 cache_host littleguy1.usc.edu sibling 3128 3130 [proxy-only]
126 cache_host littleguy1.usc.edu sibling 3128 3130 [proxy-only]
127
128 type: either 'parent', 'sibling', or 'multicast'.
129
130 proxy_port: The port number where the cache listens for proxy
131 requests.
132
133 icp_port: Used for querying neighbor caches about
134 objects. To have a non-ICP neighbor
135 specify '7' for the ICP port and make sure the
136 neighbor machine has the UDP echo port
137 enabled in its /etc/inetd.conf file.
138
139 options: proxy-only
140 weight=n
141 ttl=n
142 no-query
143 default
144 round-robin
145 multicast-responder
146
147 use 'proxy-only' to specify that objects fetched
148 from this cache should not be saved locally.
149
150 use 'weight=n' to specify a weighted parent.
151 The weight must be an integer. The default weight
152 is 1, larger weights are favored more.
153
154 use 'ttl=n' to specify a IP multicast TTL to use
155 when sending an ICP request to this address.
156 Only useful when sending to a multicast group.
157 Because we don't accept ICP replies from random
158 hosts, you must configure other group members as
159 peers with the 'multicast-responder' option below.
160
161 use 'no-query' to NOT send ICP queries to this
162 neighbor.
163
164 use 'default' if this is a parent cache which can
165 be used as a "last-resort." You should probably
166 only use 'default' in situations where you cannot
167 use ICP with your parent cache(s).
168
169 use 'round-robin' to define a set of parents which
170 should be used in a round-robin fashion in the
171 absence of any ICP queries.
172
173 'multicast-responder' indicates that the named peer
174 is a member of a multicast group. ICP queries will
175 not be sent directly to the peer, but ICP replies
176 will be accepted from it.
177
178 NOTE: non-ICP neighbors must be specified as 'parent'.
179
180cache_host hostname type 3128 3130
181DOC_END
182
183
184NAME: cache_host_domain
185TYPE: hostdomain
f1dc9b30 186DEFAULT: none
187LOC: none
934b03fc 188DOC_START
189 Use to limit the domains for which a neighbor cache will be queried.
190 Usage:
191
192 cache_host_domain cache-host domain [domain ...]
193 cache_host_domain cache-host !domain
194
195 For example, specifying
196
197 cache_host_domain bigserver.usc.edu .edu
198
199 has the effect such that UDP query packets are sent to
200 'bigserver' only when the requested object exists on a
201 server in the .edu domain. Prefixing the domainname
202 with '!' means that the cache will be queried for objects
203 NOT in that domain.
204
205 NOTE: * Any number of domains may be given for a cache-host,
206 either on the same or separate lines.
207 * When multiple domains are given for a particular
208 cache-host, the first matched domain is applied.
209 * Cache hosts with no domain restrictions are queried
210 for all requests.
211 * There are no defaults.
212 * There is also a 'cache_host_acl' tag in the ACL
213 section.
214DOC_END
215
216
217NAME: neighbor_type_domain
218TYPE: hostdomaintype
f1dc9b30 219DEFAULT: none
220LOC: none
934b03fc 221DOC_START
222 usage: neighbor_type_domain parent|sibling domain domain ...
223
224 Modifying the neighbor type for specific domains is now
225 possible. You can treat some domains differently than the the
226 default neighbor type specified on the 'cache_host' line.
227 Normally it should only be necessary to list domains which
228 should be treated differently because the default neighbor type
229 applies for hostnames which do not match domains listed here.
230
231EXAMPLE:
232 cache_host parent cache.foo.org 3128 3130
233 neighbor_type_domain cache.foo.org sibling .com .net
234 neighbor_type_domain cache.foo.org sibling .au .de
235DOC_END
236
237NAME: single_parent_bypass
238COMMENT: on|off
239TYPE: onoff
f1dc9b30 240DEFAULT: off
934b03fc 241LOC: Config.singleParentBypass
242DOC_START
243 This tag specifies that it is okay to bypass the hierarchy
244 "Pinging" when there is only a single parent for a given URL.
245
246 Usage: single_parent_bypass on|off
247
248 Before actually sending ICP "ping" packets to parents and
249 neighbors, we figure out which hosts would be pinged based
250 on the cache_host_domain rules, etc. Often it may be the
251 case that only a single parent cache would be pinged.
252
253 Since there is only a single parent, there is a very good
254 chance that we will end up fetching the object from that
255 parent. For this reason, it may be beneficial to avoid
256 the ping and just fetch the object anyway.
257
258 However, if we avoid the ping, we will be assuming that the
259 parent host is reachable and that the cache process is running.
260 By using the ping, we can be reasonably sure that the parent
261 host will be able to handle our request. If the ping fails then
262 it may be possible to fetch the object directly from the source.
263
264 To favor the resiliency provided by the ping algorithm,
265 single_parent_bypass is 'off' by default.
266
267single_parent_bypass off
268DOC_END
269
270
271NAME: source_ping
272COMMENT: on|off
273TYPE: onoff
f1dc9b30 274DEFAULT: off
934b03fc 275LOC: Config.sourcePing
276DOC_START
277 If source_ping is enabled, then squid will include the source
278 provider site in its selection algorithm. This is accomplished
279 by sending ICP "HIT" packets to the UDP echo port of the source
280 host. Note that using source_ping may send a fair amount of UDP
281 traffic out on the Internet and may irritate paranoid network
282 administrators.
283
284 Note that source_ping is incompatible with inside_firewall.
285 For hosts beyond the firewall, source_ping packets will never
286 be sent.
287
288 By default, source_ping is off.
289
290source_ping off
291DOC_END
292
293
294NAME: neighbor_timeout neighbour_timeout
295COMMENT: (seconds)
9e975e4e 296DEFAULT: 2 seconds
f1dc9b30 297TYPE: time_t
934b03fc 298LOC: Config.neighborTimeout
299DOC_START
300 This controls how long to wait for replies from neighbor caches.
301 If none of the parent or neighbor caches reply before this many
302 seconds (due to dropped packets or slow links), then the object
303 request will be satisfied from the default source. The default
304 timeout is two seconds.
305
306neighbor_timeout 2 seconds
307DOC_END
308
309
310NAME: hierarchy_stoplist
311TYPE: wordlist
1273d501 312DEFAULT: none
934b03fc 313LOC: Config.hierarchy_stoplist
314DOC_START
315 A list of words which, if found in a URL, cause the object to
316 be handled directly by this cache. In other words, use this
317 to not query neighbor caches for certain objects. You may
318 list this option multiple times.
319
320 The default is to directly fetch URLs containing 'cgi-bin' or '?'.
321
322hierarchy_stoplist cgi-bin ?
323DOC_END
324
325
326NAME: cache_stoplist
327TYPE: wordlist
1273d501 328DEFAULT: none
934b03fc 329LOC: Config.cache_stoplist
330DOC_START
331 A list of words which, if found in a URL, cause the object to
332 immediately removed from the cache. In other words, use this
333 to force certain objects to never be cached. You may list this
334 option multiple times.
335
336 The default is to not cache URLs containing 'cgi-bin' or '?'.
337
338cache_stoplist cgi-bin ?
339DOC_END
340
341
342NAME: cache_stoplist_pattern
934b03fc 343TYPE: regexlist
344LOC: Config.cache_stop_relist
1273d501 345DEFAULT: none
934b03fc 346DOC_START
347 Just like 'cache_stoplist' but you can use regular expressions
348 instead of simple string matching. There is no default.
0153d498 349 Insert -i to get case-insensitive regular expressions.
934b03fc 350
351cache_stoplist_pattern
352DOC_END
353
354
355# OPTIONS WHICH AFFECT THE CACHE SIZE
356#-----------------------------------------------------------------------------
357
358
359NAME: cache_mem
9906e724 360COMMENT: (bytes)
361TYPE: size_t
362DEFAULT: 8 MB
934b03fc 363LOC: Config.Mem.maxSize
364DOC_START
365 Maximum amout of VM used to store objects in memory.
366 This includes:
367 in-transit objects,
368 negative-cached objects,
369 "hot" objects
370 The value of cache_mem is an upper limit on the size of the
371 "in-memory object data" pool. This is a pool of 4k pages used
372 to hold object data.
373
374 In-transit objects have priority over the others. When
375 additional space is needed for incoming data, negative-cached
376 and hot objects will be released. In other words, the
377 negative-cached and hot objects will fill up any unused space
378 not needed for in-transit objects.
379
380 The values of cache_mem_low and cache_mem_high (below) can be
381 used to tune the use of the memory pool. When the high mark is
382 reached, in-transit and hot objects will be released to clear
383 space. When an object transfer is completed, it will remain in
384 memory only if the current memory usage is below the low water
385 mark.
386
387 The default is 8 Megabytes.
388
9906e724 389cache_mem 8 MB
934b03fc 390DOC_END
391
392
393NAME: cache_swap_low
394COMMENT: (percent, 0-100)
395TYPE: int
396DEFAULT: 90
397LOC: Config.Swap.lowWaterMark
398DOC_NONE
399
400NAME: cache_swap_high
401COMMENT: (percent, 0-100)
402TYPE: int
403DEFAULT: 95
404LOC: Config.Swap.highWaterMark
405DOC_START
406 The low- and high-water marks for cache LRU replacement.
407 LRU replacement begins when the high-water mark is reached
408 and ends when enough objects have been removed and the low-water
409 mark is reached. Defaults are 90% and 95%.
410
411cache_swap_low 90
412cache_swap_high 95
413DOC_END
414
415
416NAME: cache_mem_low
417COMMENT: (in percent, 0-100)
418TYPE: int
419DEFAULT: 75
420LOC: Config.Mem.lowWaterMark
421DOC_NONE
422
423NAME: cache_mem_high
424COMMENT: (in percent, 0-100)
425TYPE: int
426DEFAULT: 95
427LOC: Config.Mem.highWaterMark
428DOC_START
429 The low- and high-water mark for cache memory storage. When
430 the amount of RAM used by the hot-object RAM cache reaches this
431 point, the cache starts throwing objects out of the RAM cache
432 (but they remain on disk). Defaults are 75% and 90%.
433
434cache_mem_low 75
435cache_mem_high 90
436DOC_END
437
438
439NAME: maximum_object_size
9e975e4e 440COMMENT: (bytes)
441TYPE: size_t
9906e724 442DEFAULT: 4096 KB
934b03fc 443LOC: Config.Store.maxObjectSize
444DOC_START
445 Objects larger than this size will NOT be saved on disk. The
446 value is specified in kilobytes, and the default is 4MB.
447
9906e724 448maximum_object_size 4096 KB
934b03fc 449DOC_END
450
451
452NAME: ipcache_size
453COMMENT: (number of entries)
454TYPE: int
455DEFAULT: 1024
456LOC: Config.ipcache.size
457DOC_NONE
458
459NAME: ipcache_low
460COMMENT: (percent)
461TYPE: int
462DEFAULT: 90
463LOC: Config.ipcache.low
464DOC_NONE
465
466NAME: ipcache_high
467COMMENT: (percent)
468TYPE: int
469DEFAULT: 95
470LOC: Config.ipcache.high
471DOC_START
472 The size, low-, and high-water marks for the IP cache.
473
474ipcache_size 1024
475ipcache_low 90
476ipcache_high 95
477DOC_END
478
479
480# LOGFILE PATHNAMES AND CACHE DIRECTORIES
481#-----------------------------------------------------------------------------
482
483NAME: cache_dir
484TYPE: cachedir
f1dc9b30 485DEFAULT: none
486LOC: Config.cacheSwap
934b03fc 487DOC_START
488 Directory for on-disk cache storage. The cache will change into
489 this directory when running. The default is
490 /usr/local/squid/cache.
491
492 You can specify multiple cache_dir lines to spread the
493 cache among different disk partitions.
494
0153d498 495cache_dir /usr/local/squid/cache 1000 256 16
934b03fc 496DOC_END
497
498
499NAME: cache_access_log
500TYPE: string
d0b98f84 501DEFAULT: @DEFAULT_ACCESS_LOG@
934b03fc 502LOC: Config.Log.access
503DOC_START
504 Logs the client request activity. Contains an entry for
505 every HTTP and ICP request received.
506
507cache_access_log /usr/local/squid/logs/access.log
508DOC_END
509
510
511NAME: cache_log
512TYPE: string
0153d498 513DEFAULT: @DEFAULT_CACHE_LOG@
934b03fc 514LOC: Config.Log.log
515DOC_START
516 Cache logging file. Set logging levels with "debug_options" below.
517
0153d498 518cache_log @DEFAULT_CACHE_LOG@
934b03fc 519DOC_END
520
521
522NAME: cache_store_log
523TYPE: string
0153d498 524DEFAULT: @DEFAULT_STORE_LOG@
934b03fc 525LOC: Config.Log.store
526DOC_START
527 Logs the activities of the storage manager. Shows which
528 objects are ejected from the cache, and which objects are
529 saved and for how long. To disable, enter "none".
530
0153d498 531cache_store_log @DEFAULT_STORE_LOG@
934b03fc 532DOC_END
533
534
535NAME: cache_swap_log
536TYPE: string
537LOC: Config.Log.swap
1273d501 538DEFAULT: none
934b03fc 539DOC_START
540 Location for the cache "swap log." This log file holds the
541 metadata of objects saved on disk. It is used to rebuild the
542 cache during startup. Normally this file resides in the first
543 'cache_dir' directory, but you may specify an alternate
544 pathname here. Note you must give a full filename, not just
545 a directory.
546
547cache_swap_log
548DOC_END
549
550
551NAME: emulate_httpd_log
552COMMENT: on|off
553TYPE: onoff
f1dc9b30 554DEFAULT: off
934b03fc 555LOC: Config.commonLogFormat
556DOC_START
557 The Cache can emulate the log file format which many 'httpd'
558 programs use. To disable/enable this emulation, set
559 emulate_httpd_log to 'off' or 'on'. The default
560 is to use the native log format.
561
562emulate_httpd_log off
563DOC_END
564
565
566NAME: mime_table
0153d498 567TYPE: pathname_stat
568DEFAULT: @DEFAULT_MIME_TABLE@
934b03fc 569LOC: Config.mimeTablePathname
570DOC_START
571 Pathname to Squid's MIME table which has the format
572
573 regex content-type icon content-encoding transfer-mode
574
0153d498 575mime_table @DEFAULT_MIME_TABLE@
934b03fc 576DOC_END
577
578
579NAME: log_mime_hdrs
580COMMENT: on|off
581TYPE: onoff
582LOC: Config.logMimeHdrs
f1dc9b30 583DEFAULT: off
934b03fc 584DOC_START
585 The Cache can record both the request and the response
586 MIME headers for each HTTP transaction. The headers are
587 encoded safely and will appear as two bracketed fields
588 at the end of the access log (for either the native
589 or httpd-emulated log formats). To enable this logging
590 set log_mime_hdrs to 'on'.
591
592 NOTE: support for this may require you to define
593 LOG_FULL_HEADERS before compiling.
594
595log_mime_hdrs off
596DOC_END
597
598
599NAME: useragent_log
600TYPE: string
601LOC: Config.Log.useragent
f1dc9b30 602DEFAULT: none
934b03fc 603DOC_START
604 If compiled with "-DUSE_USERAGENT_LOG=1" Squid will write
605 the User-Agent field from HTTP requests to the filename
606 specified here. By default useragent_log is disabled.
607
608useragent_log none
609DOC_END
610
611
612NAME: pid_filename
613TYPE: string
0153d498 614DEFAULT: @DEFAULT_PID_FILE@
934b03fc 615LOC: Config.pidFilename
616DOC_START
617 A pathname to write the process-id to. To disable, enter "none".
618
0153d498 619pid_filename @DEFAULT_PID_FILE@
934b03fc 620DOC_END
621
622
623NAME: debug_options
f1dc9b30 624TYPE: eol
934b03fc 625DEFAULT: ALL,1
626LOC: Config.debugOptions
627DOC_START
628 Logging options are set as section,level where each source file
629 is assigned a unique section. Lower levels result in less
630 output, Full debugging (level 9) can result in a very large
631 log file, so be careful. The magic word "ALL" sets debugging
632 levels for all sections. We recommend normally running with
633 "ALL,1".
634
635debug_options ALL,1
636DOC_END
637
638
639NAME: ident_lookup
640COMMENT: on|off
641TYPE: onoff
f1dc9b30 642DEFAULT: off
934b03fc 643LOC: Config.identLookup
644DOC_START
645 If you wish to make an RFC931/ident lookup of the client username
646 for each connection, enable this. It is off by default.
647
648ident_lookup off
649DOC_END
650
651
652NAME: log_fqdn
653COMMENT: on|off
654TYPE: onoff
f1dc9b30 655DEFAULT: off
934b03fc 656LOC: Config.Log.log_fqdn
657DOC_START
658 Turn this on if you wish to log fully qualified domain names
659 in the access.log.
660
661log_fqdn off
662DOC_END
663
664
665NAME: client_netmask
666TYPE: address
667LOC: Config.Addrs.client_netmask
f1dc9b30 668DEFAULT: 255.255.255.255
934b03fc 669DOC_START
670 A netmask for client addresses in logfiles and cachemgr output.
671 Change this to protect the privacy of your cache clients.
672
673client_netmask 255.255.255.255
674DOC_END
675
676
677# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
678#-----------------------------------------------------------------------------
679
680# TAG: ftpget_program
681# Where to find the 'ftpget' program that retrieves FTP data (HTTP
682# and Gopher protocol support are built into the cache).
683#
684# To disable ftpget and the ability to retrieve FTP objects, set
685# this to "none". Note that ftpget is automatically disabled for
686# http_accel mode.
687#
688#ftpget_program @DEFAULT_FTPGET@
689
690# TAG: ftpget_options
691# Options for the 'ftpget' program. Please run 'ftpget' without
692# any arguments to see a list of options. The default is
693# no options. An example is
694#
695# ftpget_options -n 60 -R -W
696#
697#ftpget_options
698
699NAME: ftp_user
700TYPE: string
701DEFAULT: squid@
702LOC: Config.Ftp.anon_user
703DOC_START
704 If you want the anonymous login password to be more informative
705 (and enable the use of picky ftp servers), set this to something
706 resonable for your domain, like wwwuser@somewhere.net
707
708 The reason why this is domainless by default is that the
709 request can be made on the behalf of a user in any domain,
710 depending on how the cache is used.
711 Some ftp server also validate that the email address is valid
712 (for example perl.com).
713
714ftp_user squid@
715DOC_END
716
717
718NAME: cache_dns_program
0153d498 719TYPE: pathname_stat
720DEFAULT: @DEFAULT_DNSSERVER@
934b03fc 721LOC: Config.Program.dnsserver
722DOC_START
723 Specify the location of the executable for dnslookup process.
724
0153d498 725cache_dns_program @DEFAULT_DNSSERVER@
934b03fc 726DOC_END
727
728
729NAME: dns_children
730TYPE: int
731DEFAULT: 5
732LOC: Config.dnsChildren
733DOC_START
734 The number of processes spawn to service DNS name lookups.
735 For heavily loaded caches on large servers, you should
736 probably increase this value to at least 10. The maximum
737 is 32. The default is 5.
738
739 To disable dnsservers, set this to 0. NOTE, this is very
740 strongly discouraged. If you disable dnsservers your Squid
741 process will BLOCK on DNS lookups!
742
743dns_children 5
744DOC_END
745
746
747NAME: dns_defnames
748COMMENT: on|off
749TYPE: onoff
f1dc9b30 750DEFAULT: off
934b03fc 751LOC: Config.Options.res_defnames
752DOC_START
753 Normally the 'dnsserver' disables the RES_DEFNAMES resolver
754 option (see res_init(3)). This prevents caches in a hierarchy
755 from interpreting single-component hostnames locally. To allow
756 dnsserver to handle single-component names, enable this
757 option.
758
759dns_defnames off
760DOC_END
761
762
763NAME: unlinkd_program
0153d498 764TYPE: pathname_stat
765DEFAULT: @DEFAULT_UNLINKD@
934b03fc 766LOC: Config.Program.unlinkd
767DOC_START
768 Specify the location of the executable for file deletion process.
769
0153d498 770unlinkd_program @DEFAULT_UNLINKD@
934b03fc 771DOC_END
772
773
774NAME: pinger_program
0153d498 775TYPE: pathname_stat
776DEFAULT: @DEFAULT_PINGER@
934b03fc 777LOC: Config.Program.pinger
778DOC_START
779 Specify the location of the executable for the pinger process.
780
0153d498 781pinger_program @DEFAULT_PINGER@
934b03fc 782DOC_END
783
784
785NAME: redirect_program
0153d498 786TYPE: pathname_stat
934b03fc 787LOC: Config.Program.redirect
62607543 788DEFAULT: none
934b03fc 789DOC_START
790 Specify the location of the executable for the URL redirector.
791 Currently, you must provide your own redirector program.
792 See the Release-Notes for how to write one.
793 By default, the redirector is not used.
794
795redirect_program /bin/false
796DOC_END
797
798
799NAME: redirect_children
800TYPE: int
801DEFAULT: 5
802LOC: Config.redirectChildren
803DOC_START
804 The number of redirector processes to spawn.
805
806redirect_children 5
807DOC_END
808
809
810# OPTIONS FOR TUNING THE CACHE
811#-----------------------------------------------------------------------------
0153d498 812NAME: wais_relay_host
813TYPE: string
1273d501 814DEFAULT: none
0153d498 815LOC: Config.Wais.relayHost
816DOC_NONE
934b03fc 817
0153d498 818NAME: wais_relay_port
819TYPE: ushort
820DEFAULT: 0
821LOC: Config.Wais.relayPort
934b03fc 822DOC_START
823 Relay WAIS request to host (1st arg) at port (2 arg).
824
0153d498 825wais_relay_host localhost
826wais_relay_port 8000
934b03fc 827DOC_END
828
829
830NAME: request_size
9906e724 831COMMENT: (KB)
832TYPE: kb_size_t
833DEFAULT: 100 KB
934b03fc 834LOC: Config.maxRequestSize
835DOC_START
836 Maximum allowed request size in kilobytes. If people are using
837 POST to upload files, then set this to the largest acceptable
838 filesize plus a few extra kbytes.
839
9906e724 840request_size 100 KB
934b03fc 841DOC_END
842
843
844NAME: refresh_pattern
934b03fc 845TYPE: refreshpattern
f1dc9b30 846LOC: Config.Refresh
1273d501 847DEFAULT: none
934b03fc 848DOC_START
849 usage: refresh_pattern regex min percent max
850
851 min and max are specified in MINUTES.
852 percent is an integer number.
853
854 Please see the file doc/Release-Notes-1.1.txt for a full
855 description of Squid's refresh algorithm. Basically a
856 cached object is:
857
858 FRESH if age < min
859 STALE if expires < now
860 STALE if age > max
861 FRESH if lm-factor < percent
862
863 The refresh_pattern lines are checked in the order listed here.
864 The first entry which matches is used. If none of the entries
865 match, then the default will be used.
866
867Default:
868refresh_pattern . 0 20% 4320
869DOC_END
870
871
872NAME: reference_age
f1dc9b30 873TYPE: time_t
934b03fc 874LOC: Config.referenceAge
f1dc9b30 875DEFAULT: 1 year
934b03fc 876DOC_START
877 As a part of normal operation, Squid performs Least Recently
878 Used removal of cached objects. The LRU age for removal is
879 computed dynamically, based on the amount of disk space in
880 use. The 'reference_age' value defines the maximum LRU age.
881 For example, setting reference_age to '1 week' will cause
882 objects to be removed if they have not been accessed for a week
883 or more. If set to zero, LRU removal is disabled, and objects
884 will be removed only when disk usage is over the high water
885 mark. The default value is one year.
886
887 Specify a number here, followed by units of time. For example:
888 1 week
889 3.5 days
890 4 months
891 2.2 hours
892
f1dc9b30 893reference_age 1 month
934b03fc 894DOC_END
895
896
0153d498 897NAME: quick_abort_min
9906e724 898COMMENT: (KB)
899TYPE: kb_size_t
9e975e4e 900DEFAULT: -1 kb
0153d498 901LOC: Config.quickAbort.min
902DOC_NONE
903
904NAME: quick_abort_pct
905COMMENT: (percent)
906TYPE: int
907DEFAULT: 0
908LOC: Config.quickAbort.pct
909DOC_NONE
910
911NAME: quick_abort_max
9906e724 912COMMENT: (KB)
913TYPE: kb_size_t
9e975e4e 914DEFAULT: 0 kb
0153d498 915LOC: Config.quickAbort.max
934b03fc 916DOC_START
917 By default the cache continues to retrieve objects from
918 aborted requests. This may be undesirable on slow (e.g. SLIP)
919 links and/or very busy caches. Impatient users may tie up
920 file descriptors by repeatedly aborting and re-requesting
921 non-cachable objects.
922
923 Usage: quick_abort min-kbytes percent max-kbytes
924
925 When the user aborts a request, Squid will check the
926 quick_abort values to the amount of data transfered until
927 then.
928
929 If the transfer has less than 'min-kbytes' remaining, it
930 will finish the retrieval. Setting minlength to -1 will
931 disable the quick_abort feature.
932
933 If the transfer has more than 'max-kbytes' remaining, it
934 will abort the retrieval.
935
936 If more than 'percent' of the transfer has completed, it will
937 finish the retrieval.
938
0153d498 939quick_abort_min -1
940quick_abort_pct 0
941quick_abort_max 0
934b03fc 942DOC_END
943
944
945NAME: negative_ttl
946COMMENT: (in minutes)
f1dc9b30 947TYPE: time_t
934b03fc 948LOC: Config.negativeTtl
9e975e4e 949DEFAULT: 5 minutes
934b03fc 950DOC_START
951 Time-to-Live (TTL) for failed requests. Certain types of
952 failures (such as "connection refused" and "404 Not Found") are
953 negatively-cached for a small amount of time. The default is 5
954 minutes. Note that this is different from negative caching of
955 DNS lookups.
956
957negative_ttl 5 minutes
958DOC_END
959
960
961NAME: positive_dns_ttl
962COMMENT: (in minutes)
f1dc9b30 963TYPE: time_t
934b03fc 964LOC: Config.positiveDnsTtl
9e975e4e 965DEFAULT: 6 hours
934b03fc 966DOC_START
967 Time-to-Live (TTL) for positive caching of successful DNS lookups.
968 Default is 6 hours (360 minutes). If you want to minimize the
969 use of Squid's ipcache, set this to 1, not 0.
970
9e975e4e 971positive_dns_ttl 6 hours
934b03fc 972DOC_END
973
974
975NAME: negative_dns_ttl
976COMMENT: (in minutes)
f1dc9b30 977TYPE: time_t
934b03fc 978LOC: Config.negativeDnsTtl
9e975e4e 979DEFAULT: 5 minutes
934b03fc 980DOC_START
981 Time-to-Live (TTL) for negative caching of failed DNS lookups.
982
983negative_dns_ttl 5 minutes
984DOC_END
985
986
987# TIMEOUTS
988#-----------------------------------------------------------------------------
989
990NAME: connect_timeout
991COMMENT: (in seconds)
f1dc9b30 992TYPE: time_t
934b03fc 993LOC: Config.Timeout.connect
9e975e4e 994DEFAULT: 2 minutes
934b03fc 995DOC_START
996 Some systems (notably Linux) can not be relied upon to properly
997 time out connect(2) requests. Therefore the squid process
998 enforces its own timeout on server connections. This parameter
999 specifies how long to wait for the connect to complete. The
1000 default is two minutes (120 seconds).
1001
1002connect_timeout 120 seconds
1003DOC_END
1004
1005
1006NAME: read_timeout
1007COMMENT: (in minutes)
f1dc9b30 1008TYPE: time_t
934b03fc 1009LOC: Config.Timeout.read
9e975e4e 1010DEFAULT: 15 minutes
934b03fc 1011DOC_START
1012 The read_timeout is applied on server-side connections. After
1013 each successful read(), the timeout will be extended by this
1014 amount. If no data is read again after this amount of time,
1015 the request is aborted and logged with ERR_READ_TIMEOUT. The
1016 default is 15 minutes.
1017
1018read_timeout 15 minutes
1019DOC_END
1020
1021
1022NAME: defer_timeout
1023COMMENT: (in minutes)
f1dc9b30 1024TYPE: time_t
934b03fc 1025LOC: Config.Timeout.defer
9e975e4e 1026DEFAULT: 1 hour
934b03fc 1027DOC_START
1028 If your clients are behind slow (e.g. PPP/SLIP) connections,
1029 then data may come in from the server-side faster than it can
1030 be written to the client-side. When the server side gets too
1031 far ahead of the client-side, subsequent reads will be deferred
1032 until the client catches up. This timeout determines how long
1033 to wait while in "deferred read mode." The default is one
1034 hour.
1035
9e975e4e 1036defer_timeout 1 hour
934b03fc 1037DOC_END
1038
1039
1040NAME: request_timeout
f1dc9b30 1041TYPE: time_t
934b03fc 1042LOC: Config.Timeout.request
9e975e4e 1043DEFAULT: 30 seconds
934b03fc 1044DOC_START
1045 How long to wait for an HTTP request after connection
1046 establishment. For persistent connections, wait this long
1047 after the previous request completes.
1048
1049defer_timeout 30 seconds
1050DOC_END
1051
1052
1053NAME: client_lifetime
1054COMMENT: (in minutes)
f1dc9b30 1055TYPE: time_t
934b03fc 1056LOC: Config.Timeout.lifetime
9e975e4e 1057DEFAULT: 1 day
934b03fc 1058DOC_START
1059 The maximum amount of time that a client (browser) is allowed to
1060 remain connected to the cache process. This protects the Cache
1061 from having alot of sockets (and hence file descriptors) tied up
1062 in a CLOSE_WAIT state from remote clients that go away without
1063 properly shutting down (either because of a network failure or
1064 because of a poor client implementation). The default is one
1065 day, 1440 minutes.
1066
1067 NOTE: The default value is intended to be much larger than any
1068 client would ever need to be connected to your cache. You
1069 should probably change client_lifetime only as a last resort.
1070 If you seem to have many client connections tying up
1071 filedescriptors, we recommend first tuning the read_timeout,
1072 defer_timeout, and quick_abort values.
1073
1074client_lifetime 1 day
1075DOC_END
1076
1077
1078NAME: shutdown_lifetime
1079COMMENT: (in seconds)
f1dc9b30 1080TYPE: time_t
934b03fc 1081LOC: Config.shutdownLifetime
9e975e4e 1082DEFAULT: 30 seconds
934b03fc 1083DOC_START
1084 When SIGTERM or SIGHUP is received, the cache is put into
1085 "shutdown pending" mode until all active sockets are closed.
1086 This value is the lifetime to set for all open descriptors
1087 during shutdown mode. Any active clients after this many
1088 seconds will receive a 'timeout' message.
1089
1090shutdown_lifetime 30 seconds
1091DOC_END
1092
1093
1094# ACCESS CONTROLS
1095#-----------------------------------------------------------------------------
1096
1097NAME: acl
1098TYPE: acl
f1dc9b30 1099LOC: Config.aclList
1100DEFAULT: none
934b03fc 1101DOC_START
1102 Defining an Access List
1103
1104 acl aclname acltype string1 ...
1105 acl aclname acltype "file" ...
1106
1107 when using "file", the file should contain one item per line
1108
1109 acltype is one of src dst srcdomain dstdomain url_pattern
1110 urlpath_pattern time port proto method browser user
1111
1112 acl aclname src ip-address/netmask ... (clients IP address)
1113 acl aclname src addr1-addr2/netmask ... (range of addresses)
1114 acl aclname dst ip-address/netmask ... (URL host's IP address)
1115 acl aclname srcdomain foo.com ... (taken from reverse DNS lookup)
1116 acl aclname dstdomain foo.com ... (taken from the URL)
1117 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
1118 day-abbrevs:
1119 S - Sunday
1120 M - Monday
1121 T - Tuesday
1122 W - Wednesday
1123 H - Thursday
1124 F - Friday
1125 A - Saturday
1126 h1:m1 must be less than h2:m2
1127 acl aclname url_regex ^http:// ... # regex matching on whole URL
1128 acl aclname urlpath_regex \.gif$ ... # regex matching on URL path only
1129 acl aclname port 80 70 21 ...
1130 acl aclname proto HTTP FTP ...
1131 acl aclname method GET POST ...
1132 acl aclname browser regexp
1133 acl aclname user username ... # string match on ident output.
1134 # use REQUIRED to accept any
1135 # non-null ident.
1136
1137acl manager proto cache_object
1138acl localhost src 127.0.0.1/255.255.255.255
1139acl all src 0.0.0.0/0.0.0.0
1140
1141acl SSL_ports port 443 563
1142acl Dangerous_ports port 7 9 19
1143acl CONNECT method CONNECT
1144DOC_END
1145
1146NAME: http_access
1147TYPE: acl_access
f1dc9b30 1148LOC: Config.accessList.http
1149DEFAULT: none
934b03fc 1150DOC_START
1151 Allowing or Denying access based on defined access lists
1152
1153 Access to the HTTP port:
1154 http_access allow|deny [!]aclname ...
1155
1156 Access to the ICP port:
1157 icp_access allow|deny [!]aclname ...
1158
1159 NOTE on default values:
1160
1161 If there are no "access" lines present, the default is to allow
1162 the request.
1163
1164 If none of the "access" lines cause a match, the default is the
1165 opposite of the last line in the list. If the last line was
1166 deny, then the default is allow. Conversely, if the last line
1167 is allow, the default will be deny. For these reasons, it is a
1168 good idea to have an "deny all" or "allow all" entry at the end
1169 of your access lists to avoid potential confusion.
1170
1171
1172 Only allow access to the cache manager functions from the local host.
1173http_access deny manager !localhost
1174http_access deny CONNECT !SSL_ports
1175http_access deny Dangerous_ports
1176
1177 Allow everything else
1178http_access allow all
1179DOC_END
1180
1181
1182NAME: icp_access
1183TYPE: acl_access
f1dc9b30 1184LOC: Config.accessList.icp
1185DEFAULT: none
934b03fc 1186DOC_START
1187 Reply to all ICP queries we receive
1188
1189icp_access allow all
1190DOC_END
1191
1192
1193NAME: miss_access
1194TYPE: acl_access
f1dc9b30 1195LOC: Config.accessList.miss
1196DEFAULT: none
934b03fc 1197DOC_START
1198 Use to force your neighbors to use you as a sibling instead of
1199 a parent. For example:
1200
1201 acl localclients src 172.16.0.0/16
1202 miss_access allow localclients
1203 miss_access deny !localclients
1204
1205 This means that only your local clients are allowed to fetch
1206 MISSES and all other clients can only fetch HITS.
1207
1208 By default, allow all clients who passed the http_access rules
1209 to fetch MISSES from us.
1210
1211miss_access allow all
1212DOC_END
1213
1214
1215NAME: cache_host_acl
f1dc9b30 1216TYPE: peeracl
1217DEFAULT: none
1218LOC: none
934b03fc 1219DOC_START
1220 Just like 'cache_host_domain' but provides more flexibility by
1221 using ACL's.
1222
1223 cache_host_acl cache-host [!]aclname ...
1224
1225 NOTE: * Any number of ACL's may be given for a cache-host,
1226 either on the same or separate lines.
1227 * When multiple ACL's are given for a particular
1228 cache-host, the first matched ACL is applied.
1229 * Cache hosts with no domain or ACL restrictions are
1230 queried for all requests.
1231 * There are no defaults.
1232DOC_END
1233
1234
1235# ADMINISTRATIVE PARAMETERS
1236#-----------------------------------------------------------------------------
1237
1238NAME: cache_mgr
1239TYPE: string
1240DEFAULT: webmaster
1241LOC: Config.adminEmail
1242DOC_START
1243 Email-address of local cache manager who will receive
1244 mail if the cache dies. The default is "webmaster."
1245
1246cache_mgr webmaster
1247DOC_END
1248
1249
1250NAME: cache_effective_user
0153d498 1251TYPE: string
1273d501 1252DEFAULT: none
0153d498 1253LOC: Config.effectiveUser
1254DOC_NONE
1255
1256NAME: cache_effective_group
1257TYPE: string
1273d501 1258DEFAULT: none
0153d498 1259LOC: Config.effectiveGroup
934b03fc 1260DOC_START
1261 If the cache is run as root, it will change its effective/real
1262 UID/GID to the UID/GID specified below. The default is not to
1263 change UID/GID.
1264
0153d498 1265cache_effective_user nobody
1266cache_effective_group nogroup
934b03fc 1267DOC_END
1268
1269
1270NAME: visible_hostname
1271TYPE: string
1272LOC: Config.visibleHostname
f1dc9b30 1273DEFAULT: none
934b03fc 1274DOC_START
1275 If you want to present a special hostname in error messages, etc,
1276 then define this. Otherwise, the return value of gethostname()
1277 will be used.
1278
1279visible_hostname www-cache.foo.org
1280DOC_END
1281
1282
1283# OPTIONS FOR THE CACHE REGISTRATION SERVICE
1284#-----------------------------------------------------------------------------
1285
1286# This section contains parameters for the (optional) cache
1287# announcement service. This service is provided to help
1288# cache administrators locate one another in order to join or
1289# create cache hierarchies.
1290#
1291# An 'announcement' message is sent (via UDP) to the registration
1292# service by Squid. By default, the annoucement message is NOT
1293# SENT unless you enable it with 'cache_announce' below.
1294#
1295# The announcement message includes your hostname, plus the
1296# following information from this configuration file:
1297#
1298# http_port
1299# icp_port
1300# cache_mgr
1301#
1302# All current information is processed regularly and made
1303# available on the Web at http://www.nlanr.net/Cache/Tracker/.
1304
1305
f1dc9b30 1306NAME: announce_period
1307TYPE: time_t
1308LOC: Config.Announce.period
9e975e4e 1309DEFAULT: 1 day
934b03fc 1310DOC_START
1311 This is how frequently to send cache announcements. The default
1312 is `0' which disables sending the announcement messages.
1313
1314 To enable announcing your cache, just uncomment the line below.
1315
9e975e4e 1316announce_period 1 day
934b03fc 1317DOC_END
1318
1319
f1dc9b30 1320NAME: announce_host
1321TYPE: string
1322DEFAULT: sd.cache.nlanr.net
1323LOC: Config.Announce.host
1324DOC_NONE
1325
1326NAME: announce_port
1327TYPE: ushort
1328DEFAULT: 3131
1329LOC: Config.Announce.port
934b03fc 1330DOC_START
1331 This is the hostname and portnumber where the registration message
1332 will be sent.
1333
1334 Format: announce_to host[:port] [filename]
1335
1336 Hostname will default to 'sd.cache.nlanr.net' and port will default
1337 to 3131. If the 'filename' argument is given, the contents of that
1338 file will be included in the announce message.
1339
f1dc9b30 1340announce_host sd.cache.nlanr.net
1341announce_port 3131
934b03fc 1342DOC_END
1343
f1dc9b30 1344NAME: announce_file
1345TYPE: pathname_stat
1346DEFAULT: /dev/null
1347LOC: Config.Announce.file
1348DOC_NONE
1349
934b03fc 1350
1351# HTTPD-ACCELERATOR OPTIONS
1352#-----------------------------------------------------------------------------
1353
f1dc9b30 1354NAME: httpd_accel_host
1355TYPE: string
1356LOC: Config.Accel.host
1357DEFAULT: none
1358DOC_NONE
1359
1360NAME: httpd_accel_port
1361TYPE: ushort
1362LOC: Config.Accel.port
1363DEFAULT: 0
934b03fc 1364DOC_START
1365 If you want to run squid as an httpd accelerator, define the
1366 host name and port number where the real HTTP server is.
1367
1368 If you want virtual host support then specify the hostname
1369 as "virtual".
1370
f1dc9b30 1371httpd_accel_host hostname
1372httpd_accel_port port
934b03fc 1373DOC_END
1374
1375
1376NAME: httpd_accel_with_proxy
1377COMMENT: on|off
1378TYPE: onoff
f1dc9b30 1379DEFAULT: off
934b03fc 1380LOC: Config.Accel.withProxy
1381DOC_START
1382 If you want to use squid as both a local httpd accelerator
1383 and as a proxy, change this to 'on'.
1384
1385httpd_accel_with_proxy off
1386DOC_END
1387
1388
1389NAME: httpd_accel_uses_host_header
1390COMMENT: on|off
1391TYPE: onoff
f1dc9b30 1392DEFAULT: off
934b03fc 1393LOC: opt_accel_uses_host
1394DOC_START
1395 HTTP/1.1 requests include a Host: header which is basically the
1396 hostname from the URL. Squid can be an accelerator for
1397 different HTTP servers by looking at this header. However,
1398 Squid does NOT check the value of the Host header, so it opens
1399 a big security hole. We recommend that this option remain
1400 disabled unless you are sure of what you are doing.
1401
1402httpd_accel_uses_host_header off
1403DOC_END
1404
1405
1406# MISCELLANEOUS
1407#-----------------------------------------------------------------------------
1408
1409NAME: dns_testnames
1410TYPE: wordlist
1411LOC: Config.dns_testname_list
f1dc9b30 1412DEFAULT: none
934b03fc 1413DOC_START
1414 The DNS tests exit as soon as the first site is successfully looked up
1415
1416 If you want to disable DNS tests, do not comment out or delete this
1417 list. Instead use the -D command line option
1418
1419dns_testnames internic.net usc.edu cs.colorado.edu mit.edu yale.edu
1420DOC_END
1421
1422
1423NAME: logfile_rotate
1424TYPE: int
1425DEFAULT: 10
1426LOC: Config.Log.rotateNumber
1427DOC_START
1428 Specifies the number of logfile rotations to make upon receiving
1429 a USR1 signal. The default is 10, which will rotate with
1430 extensions 0 through 9. Setting logfile_rotate to 0 will
1431 disable the rotation, but the logfiles are still closed and
1432 re-opened. This will enable you to rename the logfiles yourself
1433 just before sending a USR1 signal to the squid process.
1434
1435logfile_rotate 10
1436DOC_END
1437
1438
1439NAME: append_domain
f1dc9b30 1440TYPE: string
1441LOC: Config.appendDomain
1442DEFAULT: none
934b03fc 1443DOC_START
1444 Appends local domain name to hostnames without any dots in them.
1445 append_domain must begin with a period.
1446
1447append_domain .yourdomain.com
1448DOC_END
1449
1450
1451NAME: tcp_recv_bufsize
89de058c 1452COMMENT: (bytes)
1453TYPE: size_t
1454DEFAULT: 0 bytes
934b03fc 1455LOC: Config.tcpRcvBufsz
1456DOC_START
1457 Size of receive buffer to set for TCP sockets. Probably just
1458 as easy to change your kernel's default. Set to zero to use
1459 the default buffer size.
1460
89de058c 1461tcp_recv_bufsize 0 bytes
934b03fc 1462DOC_END
1463
0153d498 1464NAME: proxy_auth_passwd
1465TYPE: string
1466LOC: Config.proxyAuth.File
1273d501 1467DEFAULT: none
0153d498 1468DOC_NONE
934b03fc 1469
0153d498 1470NAME: proxy_auth_ignore
1471TYPE: regexlist
1472LOC: Config.proxyAuth.IgnoreDomains
1273d501 1473DEFAULT: none
0153d498 1474DOC_START
934b03fc 1475 'passwd_file' is an apache-style file of passwords for
1476 authenticated proxy access Looks like user:password, with the
1477 password being standard crypt() format. Proxy authentication
1478 is disabled by default.
1479
0153d498 1480 'proxy_auth_ignore' is a regular-expression list of domain names
1481 (source or destination??)
1482 for which authorization will *not* be required.
934b03fc 1483
1484 NOTE, proxy_auth support is not compiled into Squid by default.
1485 To use this feature you must enable the USE_PROXY_AUTH option
1486 near the top of src/Makefile.
1487
0153d498 1488 Insert -i to get case-insensitive regular expressions.
1489
1490proxy_auth_passwd /dev/null
1491proxy_auth_ignore
934b03fc 1492DOC_END
1493
1494
1495NAME: err_html_text
f1dc9b30 1496TYPE: eol
1497LOC: Config.errHtmlText
1498DEFAULT: none
934b03fc 1499DOC_START
1500 HTML text to include in error messages. Make this a "mailto"
1501 URL to your admin address, or maybe just a link to your
1502 organizations Web page.
1503
1504err_html_text
1505DOC_END
1506
1507
1508NAME: deny_info
1509TYPE: denyinfo
1510LOC: Config.denyInfoList
f1dc9b30 1511DEFAULT: none
934b03fc 1512DOC_START
1513 Usage: deny_info URL acl
1514
1515 This can be used to return a HTTP redirect for requests which
1516 do not pass the 'http_access' rules. A single ACL will cause
1517 the http_access check to fail. If a 'deny_info' line exists
1518 for that ACL then Squid returns a redirect to the given URL.
1519DOC_END
1520
1521
1522NAME: udp_hit_obj
1523COMMENT: on|off
1524TYPE: onoff
f1dc9b30 1525DEFAULT: off
934b03fc 1526LOC: opt_udp_hit_obj
1527DOC_START
1528 If set, Squid will request UDP_HIT_OBJ replies from its
1529 neighbors. UDP_HIT_OBJ is nice because it saves bandwidth, but
1530 it can cause some other problems. For one it complicates
1531 calculating hit rates. Also, problems arise because the ICP
1532 query does not contain any HTTP request headers which may
1533 affect the reply.
1534
1535udp_hit_obj off
1536DOC_END
1537
1538
1539NAME: udp_hit_obj_size
89de058c 1540COMMENT: (bytes)
1541TYPE: size_t
934b03fc 1542LOC: Config.udpMaxHitObjsz
89de058c 1543DEFAULT: 0 bytes
934b03fc 1544DOC_START
1545 If set, Squid will limit UDP_HIT_OBJ size to be less than
1546 this value. Setting this value to more than SQUID_UDP_SO_SNDBUF
1547 will not work as expected. Set to zero to select the size
1548 permited by the socket.
89de058c 1549udp_hit_obj_size 0 bytes
934b03fc 1550DOC_END
1551
1552
1553NAME: memory_pools
1554COMMENT: on|off
1555TYPE: onoff
f1dc9b30 1556DEFAULT: on
934b03fc 1557LOC: opt_mem_pools
1558DOC_START
1559 If set, Squid will keep pools of allocated (but unused) memory
1560 available for future use. If memory is a premium on your
1561 system, disable this.
1562
1563memory_pools on
1564DOC_END
1565
1566NAME: forwarded_for
1567COMMENT: on|off
1568TYPE: onoff
f1dc9b30 1569DEFAULT: on
934b03fc 1570LOC: opt_forwarded_for
1571DOC_START
1572 If set, Squid will include your system's IP address or name
1573 in the HTTP requests it forwards. By default it looks like
1574 this:
1575
1576 X-Forwarded-For: 192.1.2.3
1577
1578 If you disable this, it will appear as
1579
1580 X-Forwarded-For: unknown
1581
1582forwarded_for on
1583DOC_END
1584
1585NAME: log_icp_queries
1586COMMENT: on|off
1587TYPE: onoff
f1dc9b30 1588DEFAULT: on
934b03fc 1589LOC: Config.Options.log_udp
1590DOC_START
1591 If set, ICP queries are logged to access.log. ICP logging
1592 is enabled by default, so uncomment and change the line
1593 below to disable it.
1594
1595log_icp_queries on
1596DOC_END
1597
88738790 1598NAME: icp_hit_stale
1599COMMENT: on|off
1600TYPE: onoff
1601DEFAULT: off
1602LOC: Config.Options.icp_hit_stale
1603DOC_START
1604 If you want to return ICP_HIT for stale cache objects, set this
1605 option to 'on'. If you have sibling relationships with caches
1606 in other administrative domains, this should be 'off'. If you only
1607 have sibling relationships with caches under your control, then
1608 it is probably okay to set this to 'on'.
1609
1610icp_hit_stale off
1611DOC_END
1612
934b03fc 1613
1614NAME: minimum_direct_hops
1615TYPE: int
1616DEFAULT: 4
1617LOC: Config.minDirectHops
1618DOC_START
1619 If using the ICMP pinging stuff, do direct fetches for sites
1620 which are no more than this many hops away.
1621
1622minimum_direct_hops 4
1623DOC_END
1624
1625
1626NAME: cachemgr_passwd
1627TYPE: cachemgrpasswd
86101e40 1628DEFAULT: none
f1dc9b30 1629LOC: Config.passwd_list
934b03fc 1630DOC_START
1631 Specify passwords for cachemgr operations.
1632
1633 Usage: cachemgr_passwd password action action ...
1634
1635 valid actions are:
1636 shutdown *
1637 info
1638 stats/objects
1639 stats/vm_objects
1640 stats/utilization
1641 stats/ipcache
1642 stats/fqdncache
1643 stats/dns
1644 stats/redirector
1645 stats/io
1646 stats/reply_headers
1647 stats/filedescriptors
1648 stats/netdb
1649 log/status *
1650 log/enable *
1651 log/disable *
1652 log/clear *
1653 log *
1654 parameter
1655 server_list
1656 client_list
1657 squid.conf *
1658
1659 * Indicates actions which will not be performed without a
1660 valid password, others can be performed if not listed here.
1661
1662 To disable an action, set the password to "disable".
1663 To allow performing an action without a password, set the
1664 password to "none".
1665
1666 Use the keyword "all" to set the same password for all actions.
1667
1668cachemgr_passwd secret shutdown
1669cachemgr_passwd lesssssssecret info stats/objects
1670cachemgr_passwd disable all
1671DOC_END
1672
1673
1674# TAG: swap_level1_dirs
1675# Number of first-level directories to create for storing cached
1676# objects. Minimum 1, maximum 256, default 16.
1677#
1678#swap_level1_dirs 16
1679
1680# TAG: swap_level2_dirs
1681# Number of sub-directories to create under each first-level
1682# directory. Minimum 1, maximum 256, default 256.
1683#
1684#swap_level2_dirs 256
1685
1686NAME: store_avg_object_size
86101e40 1687COMMENT: (kbytes)
1688TYPE: kb_size_t
89de058c 1689DEFAULT: 20 KB
934b03fc 1690LOC: Config.Store.avgObjectSize
1691DOC_START
1692 Average object size, used to estimate number of objects your
1693 cache can hold. See doc/Release-Notes-1.1.txt. The default is
1694 20K.
1695
89de058c 1696store_avg_object_size 20 KB
934b03fc 1697DOC_END
1698
1699NAME: store_objects_per_bucket
1700TYPE: int
1701DEFAULT: 50
1702LOC: Config.Store.objectsPerBucket
1703DOC_START
1704 Target number of objects per bucket in the store hash table.
1705 Lowering this value increases the total number of buckets and
1706 also the storage maintenance rate. The default is 20.
1707
1708store_objects_per_bucket 20
1709DOC_END
1710
1711
1712NAME: http_anonymizer
1713TYPE: httpanonymizer
1714LOC: Config.Options.anonymizer
f1dc9b30 1715DEFAULT: off
934b03fc 1716DOC_START
1717 If you want to filter out certain HTTP request headers for
1718 privacy reasons, enable this option. There are three
1719 appropriate settings:
1720 'off' All HTTP request headers are passed.
1721 'standard' Specific headers are removed
1722 'paranoid' Only specific headers are allowed.
1723 To see which headers are allowed or denied, please see the
1724 http-anon.c source file.
1725
1726http_anonymizer off
1727DOC_END
1728
1729
1730NAME: client_db
1731COMMENT: on|off
1732TYPE: onoff
f1dc9b30 1733DEFAULT: on
934b03fc 1734LOC: Config.Options.client_db
1735DOC_START
1736 If you want to disable collecting per-client statistics, then
1737 turn off client_db here.
1738
1739client_db on
1740DOC_END
1741
1742
1743NAME: netdb_low
1744TYPE: int
1745DEFAULT: 900
1746LOC: Config.Netdb.low
1747DOC_NONE
1748
1749NAME: netdb_high
1750TYPE: int
1751DEFAULT: 1000
1752LOC: Config.Netdb.high
1753DOC_START
1754 The low and high water marks for the ICMP measurement
1755 database. These are counts, not percents. The defaults are
1756 900 and 1000. When the high water mark is reached, database
1757 entries will be deleted until the low mark is reached.
1758
1759netdb_low 900
1760netdb_high 1000
1761DOC_END
1762
1763
1764NAME: netdb_ping_period
f1dc9b30 1765TYPE: time_t
934b03fc 1766LOC: Config.Netdb.period
9e975e4e 1767DEFAULT: 5 minutes
934b03fc 1768DOC_START
1769 The minimum period for measuring a site. There will be at
1770 least this much delay between successive pings to the same
1771 network. The default is five minutes.
1772
1773netdb_ping_period 5 minutes
1774DOC_END
1775
1776
1777NAME: query_icmp
1778COMMENT: on|off
1779TYPE: onoff
f1dc9b30 1780DEFAULT: off
934b03fc 1781LOC: Config.Options.query_icmp
1782DOC_START
1783 If you want to ask your peers to include ICMP data in their ICP
1784 replies, enable this option.
1785
1786 If your peer has built squid with '-DUSE_ICMP=1' then that peer
1787 will send ICMP pings to origin server sites of the URLs it
1788 receives. If you enable this option then the ICP replies from
1789 that peer will include the ICMP data (if available). Then,
1790 when choosing a parent cache, Squid will choose the parent with
1791 the minimal RTT to the origin server. When this happens, the
1792 hierarchy field of the access.log will be
1793 "CLOSEST_PARENT_MISS". This option is off by default.
1794
1795query_icmp off
1796DOC_END
1797
934b03fc 1798NAME: always_direct
1799TYPE: acl_access
1800LOC: Config.accessList.AlwaysDirect
f1dc9b30 1801DEFAULT: none
934b03fc 1802DOC_START
1803 XXX need docs
1804DOC_END
1805
1806NAME: never_direct
1807TYPE: acl_access
1808LOC: Config.accessList.NeverDirect
f1dc9b30 1809DEFAULT: none
934b03fc 1810DOC_START
1811 XXX need docs
1812DOC_END
1813
1814#NAME: proxy_auth_ignore
1815#TYPE: regexplist_icase
1816#LOC: Config.proxyAuth.IgnoreDomains
1817#DOC_START
1818# XXX need docs
1819#DOC_END
1820
88738790 1821NAME: fake_user_agent
1822TYPE: eol
1823LOC: Config.fake_ua
1824DEFAULT: none
1825DOC_START
1826 If you use the paranoid http_anonymizer setting, Squid will strip
1827 your User-agent string from the request. Some Web servers will
1828 refuse your request without a User-agent string. Use this to
1829 fake one up. For example:
1830
1831 fake_user_agent Nutscrape/1.0 (CP/M; 8-bit)
1832 (credit to Paul Southworth pauls@etext.org for this one!)
1833
1834fake_user_agent none
1835DOC_END
1836
1837
934b03fc 1838EOF