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