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