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