]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | # | |
3 | # $Id: cf.data.pre,v 1.350 2004/04/30 20:38:47 wessels Exp $ | |
4 | # | |
5 | # | |
6 | # SQUID Web Proxy Cache http://www.squid-cache.org/ | |
7 | # ---------------------------------------------------------- | |
8 | # | |
9 | # Squid is the result of efforts by numerous individuals from | |
10 | # the Internet community; see the CONTRIBUTORS file for full | |
11 | # details. Many organizations have provided support for Squid's | |
12 | # development; see the SPONSORS file for full details. Squid is | |
13 | # Copyrighted (C) 2000 by the Regents of the University of | |
14 | # California; see the COPYRIGHT file for full details. Squid | |
15 | # incorporates software developed and/or copyrighted by other | |
16 | # sources; see the CREDITS file for full details. | |
17 | # | |
18 | # This program is free software; you can redistribute it and/or modify | |
19 | # it under the terms of the GNU General Public License as published by | |
20 | # the Free Software Foundation; either version 2 of the License, or | |
21 | # (at your option) any later version. | |
22 | # | |
23 | # This program is distributed in the hope that it will be useful, | |
24 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | # GNU General Public License for more details. | |
27 | # | |
28 | # You should have received a copy of the GNU General Public License | |
29 | # along with this program; if not, write to the Free Software | |
30 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. | |
31 | # | |
32 | ||
33 | COMMENT_START | |
34 | WELCOME TO SQUID @VERSION@ | |
35 | ---------------------------- | |
36 | ||
37 | This is the default Squid configuration file. You may wish | |
38 | to look at the Squid home page (http://www.squid-cache.org/) | |
39 | for the FAQ and other documentation. | |
40 | ||
41 | The default Squid config file shows what the defaults for | |
42 | various options happen to be. If you don't need to change the | |
43 | default, you shouldn't uncomment the line. Doing so may cause | |
44 | run-time problems. In some cases "none" refers to no default | |
45 | setting at all, while in other cases it refers to a valid | |
46 | option - the comments for that keyword indicate if this is the | |
47 | case. | |
48 | ||
49 | COMMENT_END | |
50 | ||
51 | COMMENT_START | |
52 | NETWORK OPTIONS | |
53 | ----------------------------------------------------------------------------- | |
54 | COMMENT_END | |
55 | ||
56 | NAME: http_port ascii_port | |
57 | TYPE: http_port_list | |
58 | DEFAULT: none | |
59 | LOC: Config.Sockaddr.http | |
60 | DOC_START | |
61 | Usage: port [options] | |
62 | hostname:port [options] | |
63 | 1.2.3.4:port [options] | |
64 | ||
65 | The socket addresses where Squid will listen for HTTP client | |
66 | requests. You may specify multiple socket addresses. | |
67 | There are three forms: port alone, hostname with port, and | |
68 | IP address with port. If you specify a hostname or IP | |
69 | address, then Squid binds the socket to that specific | |
70 | address. This replaces the old 'tcp_incoming_address' | |
71 | option. Most likely, you do not need to bind to a specific | |
72 | address, so you can use the port number alone. | |
73 | ||
74 | If you are running Squid in accelerator mode, then you | |
75 | probably want to listen on port 80 also, or instead. | |
76 | ||
77 | The -a command line option will override the *first* port | |
78 | number listed here. That option will NOT override an IP | |
79 | address, however. | |
80 | ||
81 | You may specify multiple socket addresses on multiple lines. | |
82 | ||
83 | Options: | |
84 | ||
85 | transparent Support for transparent proxies | |
86 | ||
87 | accel Accelerator mode. Also set implicit by the other | |
88 | accelerator directives | |
89 | ||
90 | vhost Accelerator mode using Host header for virtual | |
91 | domain support | |
92 | ||
93 | vport Accelerator with IP based virtual host support | |
94 | ||
95 | vport=NN As above, but uses specified port number rather | |
96 | than the http_port number | |
97 | ||
98 | defaultsite= Main web site name for accelerators | |
99 | ||
100 | protocol= Protocol to reconstruct accelerated requests with. | |
101 | Defaults to http | |
102 | ||
103 | If you run Squid on a dual-homed machine with an internal | |
104 | and an external interface then we recommend you to specify the | |
105 | internal address:port in http_port. This way Squid will only be | |
106 | visible on the internal address. | |
107 | NOCOMMENT_START | |
108 | # Squid normally listens to port 3128 | |
109 | http_port 3128 | |
110 | NOCOMMENT_END | |
111 | DOC_END | |
112 | ||
113 | NAME: https_port | |
114 | IFDEF: USE_SSL | |
115 | TYPE: https_port_list | |
116 | DEFAULT: none | |
117 | LOC: Config.Sockaddr.https | |
118 | DOC_START | |
119 | Usage: [ip:]port cert=certificate.pem [key=key.pem] [options...] | |
120 | ||
121 | The socket address where Squid will listen for HTTPS client | |
122 | requests. | |
123 | ||
124 | This is really only useful for situations where you are running | |
125 | squid in accelerator mode and you want to do the SSL work at the | |
126 | accelerator level. | |
127 | ||
128 | You may specify multiple socket addresses on multiple lines, | |
129 | each with their own SSL certificate and/or options. | |
130 | ||
131 | Options: | |
132 | ||
133 | defaultsite= The name of the https site presented on | |
134 | this port | |
135 | ||
136 | protocol= Protocol to reconstruct accelerated requests | |
137 | with. Defaults to https | |
138 | ||
139 | cert= Path to SSL certificate (PEM format) | |
140 | ||
141 | key= Path to SSL private key file (PEM format) | |
142 | if not specified, the certificate file is | |
143 | assumed to be a combined certificate and | |
144 | key file | |
145 | ||
146 | version= The version of SSL/TLS supported | |
147 | 1 automatic (default) | |
148 | 2 SSLv2 only | |
149 | 3 SSLv3 only | |
150 | 4 TLSv1 only | |
151 | ||
152 | cipher= Colon separated list of supported ciphers | |
153 | ||
154 | options= Varions SSL engine options. The most important | |
155 | being: | |
156 | NO_SSLv2 Disallow the use of SSLv2 | |
157 | NO_SSLv3 Disallow the use of SSLv3 | |
158 | NO_TLSv1 Disallow the use of TLSv1 | |
159 | SINGLE_DH_USE Always create a new key when using | |
160 | temporary/ephemeral DH key exchanges | |
161 | See src/ssl_support.c or OpenSSL SSL_CTX_set_options | |
162 | documentation for a complete list of options | |
163 | ||
164 | clientca= File containing the list of CAs to use when | |
165 | requesting a client certificate | |
166 | ||
167 | cafile= File containing additional CA certificates to | |
168 | use when verifying client certificates. If unset | |
169 | clientca will be used | |
170 | ||
171 | capath= Directory containing additional CA certificates | |
172 | to use when verifying client certificates | |
173 | ||
174 | dhparams= File containing DH parameters for temporary/ephemeral | |
175 | DH key exchanges | |
176 | ||
177 | sslflags= Various flags modifying the use of SSL: | |
178 | DELAYED_AUTH | |
179 | Don't request client certificates | |
180 | immediately, but wait until acl processing | |
181 | requires a certificate | |
182 | NO_DEFAULT_CA | |
183 | Don't use the default CA list built in | |
184 | to OpenSSL | |
185 | ||
186 | accel Accelerator mode. Also set implicit by the other | |
187 | accelerator directives | |
188 | ||
189 | vhost Accelerator mode using Host header for virtual | |
190 | domain support | |
191 | ||
192 | vport Accelerator with IP based virtual host support | |
193 | ||
194 | vport=NN As above, but uses specified port number rather | |
195 | than the https_port number | |
196 | ||
197 | DOC_END | |
198 | ||
199 | NAME: ssl_unclean_shutdown | |
200 | IFDEF: USE_SSL | |
201 | TYPE: onoff | |
202 | DEFAULT: off | |
203 | LOC: Config.SSL.unclean_shutdown | |
204 | DOC_START | |
205 | Some browsers (especially MSIE) bugs out on SSL shutdown | |
206 | messages. | |
207 | DOC_END | |
208 | ||
209 | NAME: ssl_engine | |
210 | IFDEF: USE_SSL | |
211 | TYPE: string | |
212 | LOC: Config.SSL.ssl_engine | |
213 | DEFAULT: none | |
214 | DOC_START | |
215 | The openssl engine to use. You will need to set this if you | |
216 | would like to use hardware SSL acceleration for example. | |
217 | DOC_END | |
218 | ||
219 | NAME: sslproxy_client_certificate | |
220 | IFDEF: USE_SSL | |
221 | DEFAULT: none | |
222 | LOC: Config.ssl_client.cert | |
223 | TYPE: string | |
224 | DOC_START | |
225 | Client SSL Certificate to use when proxying https:// URLs | |
226 | DOC_END | |
227 | ||
228 | NAME: sslproxy_client_key | |
229 | IFDEF: USE_SSL | |
230 | DEFAULT: none | |
231 | LOC: Config.ssl_client.key | |
232 | TYPE: string | |
233 | DOC_START | |
234 | Client SSL Key to use when proxying https:// URLs | |
235 | DOC_END | |
236 | ||
237 | NAME: sslproxy_version | |
238 | IFDEF: USE_SSL | |
239 | DEFAULT: 1 | |
240 | LOC: Config.ssl_client.version | |
241 | TYPE: int | |
242 | DOC_START | |
243 | SSL version level to use when proxying https:// URLs | |
244 | DOC_END | |
245 | ||
246 | NAME: sslproxy_options | |
247 | IFDEF: USE_SSL | |
248 | DEFAULT: none | |
249 | LOC: Config.ssl_client.options | |
250 | TYPE: string | |
251 | DOC_START | |
252 | SSL engine options to use when proxying https:// URLs | |
253 | DOC_END | |
254 | ||
255 | NAME: sslproxy_cipher | |
256 | IFDEF: USE_SSL | |
257 | DEFAULT: none | |
258 | LOC: Config.ssl_client.cipher | |
259 | TYPE: string | |
260 | DOC_START | |
261 | SSL cipher list to use when proxying https:// URLs | |
262 | DOC_END | |
263 | ||
264 | NAME: sslproxy_cafile | |
265 | IFDEF: USE_SSL | |
266 | DEFAULT: none | |
267 | LOC: Config.ssl_client.cafile | |
268 | TYPE: string | |
269 | DOC_START | |
270 | file containing CA certificates to use when verifying server | |
271 | certificates while proxying https:// URLs | |
272 | DOC_END | |
273 | ||
274 | NAME: sslproxy_capath | |
275 | IFDEF: USE_SSL | |
276 | DEFAULT: none | |
277 | LOC: Config.ssl_client.capath | |
278 | TYPE: string | |
279 | DOC_START | |
280 | directory containing CA certificates to use when verifying | |
281 | server certificates while proxying https:// URLs | |
282 | DOC_END | |
283 | ||
284 | NAME: sslproxy_flags | |
285 | IFDEF: USE_SSL | |
286 | DEFAULT: none | |
287 | LOC: Config.ssl_client.flags | |
288 | TYPE: string | |
289 | DOC_START | |
290 | Various flags modifying the use of SSL while proxying https:// URLs: | |
291 | DONT_VERIFY_PEER Accept certificates even if they fail to | |
292 | verify. | |
293 | NO_DEFAULT_CA Don't use the default CA list built in | |
294 | to OpenSSL. | |
295 | DOC_END | |
296 | ||
297 | NAME: icp_port udp_port | |
298 | TYPE: ushort | |
299 | DEFAULT: 0 | |
300 | LOC: Config.Port.icp | |
301 | DOC_START | |
302 | The port number where Squid sends and receives ICP queries to | |
303 | and from neighbor caches. The standard UDP port for ICP is 3130. | |
304 | Default is disabled (0). | |
305 | NOCOMMENT_START | |
306 | icp_port 3130 | |
307 | NOCOMMENT_END | |
308 | DOC_END | |
309 | ||
310 | NAME: htcp_port | |
311 | IFDEF: USE_HTCP | |
312 | TYPE: ushort | |
313 | DEFAULT: 4827 | |
314 | LOC: Config.Port.htcp | |
315 | DOC_START | |
316 | The port number where Squid sends and receives HTCP queries to | |
317 | and from neighbor caches. Default is 4827. To disable use | |
318 | "0". | |
319 | DOC_END | |
320 | ||
321 | ||
322 | NAME: mcast_groups | |
323 | TYPE: wordlist | |
324 | LOC: Config.mcast_group_list | |
325 | DEFAULT: none | |
326 | DOC_START | |
327 | This tag specifies a list of multicast groups which your server | |
328 | should join to receive multicasted ICP queries. | |
329 | ||
330 | NOTE! Be very careful what you put here! Be sure you | |
331 | understand the difference between an ICP _query_ and an ICP | |
332 | _reply_. This option is to be set only if you want to RECEIVE | |
333 | multicast queries. Do NOT set this option to SEND multicast | |
334 | ICP (use cache_peer for that). ICP replies are always sent via | |
335 | unicast, so this option does not affect whether or not you will | |
336 | receive replies from multicast group members. | |
337 | ||
338 | You must be very careful to NOT use a multicast address which | |
339 | is already in use by another group of caches. | |
340 | ||
341 | If you are unsure about multicast, please read the Multicast | |
342 | chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/). | |
343 | ||
344 | Usage: mcast_groups 239.128.16.128 224.0.1.20 | |
345 | ||
346 | By default, Squid doesn't listen on any multicast groups. | |
347 | DOC_END | |
348 | ||
349 | ||
350 | NAME: udp_incoming_address | |
351 | TYPE: address | |
352 | LOC:Config.Addrs.udp_incoming | |
353 | DEFAULT: 0.0.0.0 | |
354 | DOC_NONE | |
355 | ||
356 | NAME: udp_outgoing_address | |
357 | TYPE: address | |
358 | LOC: Config.Addrs.udp_outgoing | |
359 | DEFAULT: 255.255.255.255 | |
360 | DOC_START | |
361 | udp_incoming_address is used for the ICP socket receiving packets | |
362 | from other caches. | |
363 | udp_outgoing_address is used for ICP packets sent out to other | |
364 | caches. | |
365 | ||
366 | The default behavior is to not bind to any specific address. | |
367 | ||
368 | A udp_incoming_address value of 0.0.0.0 indicates that Squid should | |
369 | listen for UDP messages on all available interfaces. | |
370 | ||
371 | If udp_outgoing_address is set to 255.255.255.255 (the default) | |
372 | then it will use the same socket as udp_incoming_address. Only | |
373 | change this if you want to have ICP queries sent using another | |
374 | address than where this Squid listens for ICP queries from other | |
375 | caches. | |
376 | ||
377 | NOTE, udp_incoming_address and udp_outgoing_address can not | |
378 | have the same value since they both use port 3130. | |
379 | DOC_END | |
380 | ||
381 | COMMENT_START | |
382 | OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM | |
383 | ----------------------------------------------------------------------------- | |
384 | COMMENT_END | |
385 | ||
386 | NAME: cache_peer | |
387 | TYPE: peer | |
388 | DEFAULT: none | |
389 | LOC: Config.peers | |
390 | DOC_START | |
391 | To specify other caches in a hierarchy, use the format: | |
392 | ||
393 | cache_peer hostname type http_port icp_port [options] | |
394 | ||
395 | For example, | |
396 | ||
397 | # proxy icp | |
398 | # hostname type port port options | |
399 | # -------------------- -------- ----- ----- ----------- | |
400 | cache_peer parent.foo.net parent 3128 3130 [proxy-only] | |
401 | cache_peer sib1.foo.net sibling 3128 3130 [proxy-only] | |
402 | cache_peer sib2.foo.net sibling 3128 3130 [proxy-only] | |
403 | ||
404 | type: either 'parent', 'sibling', or 'multicast'. | |
405 | ||
406 | proxy_port: The port number where the cache listens for proxy | |
407 | requests. | |
408 | ||
409 | icp_port: Used for querying neighbor caches about | |
410 | objects. To have a non-ICP neighbor | |
411 | specify '7' for the ICP port and make sure the | |
412 | neighbor machine has the UDP echo port | |
413 | enabled in its /etc/inetd.conf file. | |
414 | ||
415 | options: proxy-only | |
416 | weight=n | |
417 | basetime=n | |
418 | ttl=n | |
419 | no-query | |
420 | background-ping | |
421 | default | |
422 | round-robin | |
423 | weighted-round-robin | |
424 | carp | |
425 | multicast-responder | |
426 | closest-only | |
427 | no-digest | |
428 | no-netdb-exchange | |
429 | no-delay | |
430 | login=user:password | PASS | *:password | |
431 | connect-timeout=nn | |
432 | digest-url=url | |
433 | allow-miss | |
434 | max-conn | |
435 | htcp | |
436 | originserver | |
437 | name=xxx | |
438 | forceddomain=name | |
439 | ssl | |
440 | sslcert=/path/to/ssl/certificate | |
441 | sslkey=/path/to/ssl/key | |
442 | sslversion=1|2|3|4 | |
443 | sslcipher=... | |
444 | ssloptions=... | |
445 | front-end-https[=on|auto] | |
446 | ||
447 | use 'proxy-only' to specify that objects fetched | |
448 | from this cache should not be saved locally. | |
449 | ||
450 | use 'weight=n' to specify a weighted parent. | |
451 | The weight must be an integer. The default weight | |
452 | is 1, larger weights are favored more. | |
453 | ||
454 | use 'basetime=n' to specify a base amount to | |
455 | be subtracted from round trip times of parents. | |
456 | It is subtracted before division by weight in calculating | |
457 | which parent to fectch from. If the rtt is less than the | |
458 | base time then the rtt is set to a minimal value. | |
459 | ||
460 | use 'ttl=n' to specify a IP multicast TTL to use | |
461 | when sending an ICP queries to this address. | |
462 | Only useful when sending to a multicast group. | |
463 | Because we don't accept ICP replies from random | |
464 | hosts, you must configure other group members as | |
465 | peers with the 'multicast-responder' option below. | |
466 | ||
467 | use 'no-query' to NOT send ICP queries to this | |
468 | neighbor. | |
469 | ||
470 | use 'background-ping' to only send ICP queries to this | |
471 | neighbor infrequently. This is used to keep the neighbor | |
472 | round trip time updated and is usually used in | |
473 | conjunction with weighted-round-robin. | |
474 | ||
475 | use 'default' if this is a parent cache which can | |
476 | be used as a "last-resort." You should probably | |
477 | only use 'default' in situations where you cannot | |
478 | use ICP with your parent cache(s). | |
479 | ||
480 | use 'round-robin' to define a set of parents which | |
481 | should be used in a round-robin fashion in the | |
482 | absence of any ICP queries. | |
483 | ||
484 | use 'weighted-round-robin' to define a set of parents | |
485 | which should be used in a round-robin fashion with the | |
486 | frequency of each parent being based on the round trip | |
487 | time. Closer parents are used more often. | |
488 | Usually used for background-ping parents. | |
489 | ||
490 | use 'carp' to define a set of parents which should | |
491 | be used as a CARP array. The requests will then be | |
492 | distributed among the parents based on the CARP load | |
493 | balancing hash function based on their weigth. | |
494 | ||
495 | 'multicast-responder' indicates that the named peer | |
496 | is a member of a multicast group. ICP queries will | |
497 | not be sent directly to the peer, but ICP replies | |
498 | will be accepted from it. | |
499 | ||
500 | 'closest-only' indicates that, for ICP_OP_MISS | |
501 | replies, we'll only forward CLOSEST_PARENT_MISSes | |
502 | and never FIRST_PARENT_MISSes. | |
503 | ||
504 | use 'no-digest' to NOT request cache digests from | |
505 | this neighbor. | |
506 | ||
507 | 'no-netdb-exchange' disables requesting ICMP | |
508 | RTT database (NetDB) from the neighbor. | |
509 | ||
510 | use 'no-delay' to prevent access to this neighbor | |
511 | from influencing the delay pools. | |
512 | ||
513 | use 'login=user:password' if this is a personal/workgroup | |
514 | proxy and your parent requires proxy authentication. | |
515 | Note: The string can include URL escapes (i.e. %20 for | |
516 | spaces). This also means that % must be written as %%. | |
517 | ||
518 | use 'login=PASS' if users must authenticate against | |
519 | the upstream proxy. This will pass the users credentials | |
520 | as they are to the peer proxy. This only works for the | |
521 | Basic HTTP authentication sheme. Note: To combine this | |
522 | with proxy_auth both proxies must share the same user | |
523 | database as HTTP only allows for one proxy login. | |
524 | Also be warned that this will expose your users proxy | |
525 | password to the peer. USE WITH CAUTION | |
526 | ||
527 | use 'login=*:password' to pass the username to the | |
528 | upstream cache, but with a fixed password. This is meant | |
529 | to be used when the peer is in another administrative | |
530 | domain, but it is still needed to identify each user. | |
531 | The star can optionally be followed by some extra | |
532 | information which is added to the username. This can | |
533 | be used to identify this proxy to the peer, similar to | |
534 | the login=username:password option above. | |
535 | ||
536 | use 'connect-timeout=nn' to specify a peer | |
537 | specific connect timeout (also see the | |
538 | peer_connect_timeout directive) | |
539 | ||
540 | use 'digest-url=url' to tell Squid to fetch the cache | |
541 | digest (if digests are enabled) for this host from | |
542 | the specified URL rather than the Squid default | |
543 | location. | |
544 | ||
545 | use 'allow-miss' to disable Squid's use of only-if-cached | |
546 | when forwarding requests to siblings. This is primarily | |
547 | useful when icp_hit_stale is used by the sibling. To | |
548 | extensive use of this option may result in forwarding | |
549 | loops, and you should avoid having two-way peerings | |
550 | with this option. (for example to deny peer usage on | |
551 | requests from peer by denying cache_peer_access if the | |
552 | source is a peer) | |
553 | ||
554 | use 'max-conn' to limit the amount of connections Squid | |
555 | may open to this peer. | |
556 | ||
557 | use 'htcp' to send HTCP, instead of ICP, queries | |
558 | to the neighbor. You probably also want to | |
559 | set the "icp port" to 4827 instead of 3130. | |
560 | ||
561 | 'originserver' causes this parent peer to be contacted as | |
562 | a origin server. Meant to be used in accelerator setups. | |
563 | ||
564 | use 'name=xxx' if you have multiple peers on the same | |
565 | host but different ports. This name can then be used to | |
566 | differentiate the peers in cache_peer_access and similar | |
567 | directives. | |
568 | ||
569 | use 'forceddomain=name' to forcibly set the Host header | |
570 | of requests forwarded to this peer. Useful in accelerator | |
571 | setups where the server (peer) expects a certain domain | |
572 | name and using redirectors to feed this domainname | |
573 | is not feasible. | |
574 | ||
575 | use 'ssl' to indicate that connections to this peer should | |
576 | bs SSL/TLS encrypted. | |
577 | ||
578 | use 'sslcert=/path/to/ssl/certificate' to specify a client | |
579 | SSL certificate to use when connecting to this peer. | |
580 | ||
581 | use 'sslkey=/path/to/ssl/key' to specify the private SSL | |
582 | key corresponding to sslcert above. If 'sslkey' is not | |
583 | specified then 'sslcert' is assumed to reference a | |
584 | combined file containing both the certificate and the key. | |
585 | ||
586 | use sslversion=1|2|3|4 to specify the SSL version to use | |
587 | when connecting to this peer | |
588 | 1 = automatic (default) | |
589 | 2 = SSL v2 only | |
590 | 3 = SSL v3 only | |
591 | 4 = TLS v1 only | |
592 | ||
593 | use sslcipher=... to specify the list of valid SSL chipers | |
594 | to use when connecting to this peer | |
595 | ||
596 | use ssloptions=... to specify various SSL engine options: | |
597 | NO_SSLv2 Disallow the use of SSLv2 | |
598 | NO_SSLv3 Disallow the use of SSLv3 | |
599 | NO_TLSv1 Disallow the use of TLSv1 | |
600 | See src/ssl_support.c or the OpenSSL documentation for | |
601 | a more complete list. | |
602 | ||
603 | use cafile=... to specify a file containing additional | |
604 | CA certificates to use when verifying the peer certificate | |
605 | ||
606 | use capath=... to specify a directory containing additional | |
607 | CA certificates to use when verifying the peer certificate | |
608 | ||
609 | use sslflags=... to specify various flags modifying the | |
610 | SSL implementation: | |
611 | DONT_VERIFY_PEER | |
612 | Accept certificates even if they fail to | |
613 | verify. | |
614 | NO_DEFAULT_CA | |
615 | Don't use the default CA list built in | |
616 | to OpenSSL. | |
617 | DONT_VERIFY_DOMAIN | |
618 | Don't verify that the peer certificate | |
619 | matches the server name | |
620 | ||
621 | use sslname= to specify the peer name as advertised | |
622 | in it's certificate. Used for verifying the correctness | |
623 | of the received peer certificate. If not specified the | |
624 | peer hostname will be used. | |
625 | ||
626 | use front-end-https to enable the "Front-End-Https: On" | |
627 | header needed when using Squid as a SSL frontend infront | |
628 | of Microsoft OWA. See MS KB document Q307347 for details | |
629 | on this header. If set to auto then the header will | |
630 | only be added if the request is forwarded as a https:// | |
631 | URL. | |
632 | ||
633 | NOTE: non-ICP neighbors must be specified as 'parent'. | |
634 | DOC_END | |
635 | ||
636 | NAME: cache_peer_domain cache_host_domain | |
637 | TYPE: hostdomain | |
638 | DEFAULT: none | |
639 | LOC: none | |
640 | DOC_START | |
641 | Use to limit the domains for which a neighbor cache will be | |
642 | queried. Usage: | |
643 | ||
644 | cache_peer_domain cache-host domain [domain ...] | |
645 | cache_peer_domain cache-host !domain | |
646 | ||
647 | For example, specifying | |
648 | ||
649 | cache_peer_domain parent.foo.net .edu | |
650 | ||
651 | has the effect such that UDP query packets are sent to | |
652 | 'bigserver' only when the requested object exists on a | |
653 | server in the .edu domain. Prefixing the domainname | |
654 | with '!' means that the cache will be queried for objects | |
655 | NOT in that domain. | |
656 | ||
657 | NOTE: * Any number of domains may be given for a cache-host, | |
658 | either on the same or separate lines. | |
659 | * When multiple domains are given for a particular | |
660 | cache-host, the first matched domain is applied. | |
661 | * Cache hosts with no domain restrictions are queried | |
662 | for all requests. | |
663 | * There are no defaults. | |
664 | * There is also a 'cache_peer_access' tag in the ACL | |
665 | section. | |
666 | DOC_END | |
667 | ||
668 | ||
669 | NAME: neighbor_type_domain | |
670 | TYPE: hostdomaintype | |
671 | DEFAULT: none | |
672 | LOC: none | |
673 | DOC_START | |
674 | usage: neighbor_type_domain neighbor parent|sibling domain domain ... | |
675 | ||
676 | Modifying the neighbor type for specific domains is now | |
677 | possible. You can treat some domains differently than the the | |
678 | default neighbor type specified on the 'cache_peer' line. | |
679 | Normally it should only be necessary to list domains which | |
680 | should be treated differently because the default neighbor type | |
681 | applies for hostnames which do not match domains listed here. | |
682 | ||
683 | EXAMPLE: | |
684 | cache_peer parent cache.foo.org 3128 3130 | |
685 | neighbor_type_domain cache.foo.org sibling .com .net | |
686 | neighbor_type_domain cache.foo.org sibling .au .de | |
687 | DOC_END | |
688 | ||
689 | NAME: icp_query_timeout | |
690 | COMMENT: (msec) | |
691 | DEFAULT: 0 | |
692 | TYPE: int | |
693 | LOC: Config.Timeout.icp_query | |
694 | DOC_START | |
695 | Normally Squid will automatically determine an optimal ICP | |
696 | query timeout value based on the round-trip-time of recent ICP | |
697 | queries. If you want to override the value determined by | |
698 | Squid, set this 'icp_query_timeout' to a non-zero value. This | |
699 | value is specified in MILLISECONDS, so, to use a 2-second | |
700 | timeout (the old default), you would write: | |
701 | ||
702 | icp_query_timeout 2000 | |
703 | DOC_END | |
704 | ||
705 | NAME: maximum_icp_query_timeout | |
706 | COMMENT: (msec) | |
707 | DEFAULT: 2000 | |
708 | TYPE: int | |
709 | LOC: Config.Timeout.icp_query_max | |
710 | DOC_START | |
711 | Normally the ICP query timeout is determined dynamically. But | |
712 | sometimes it can lead to very large values (say 5 seconds). | |
713 | Use this option to put an upper limit on the dynamic timeout | |
714 | value. Do NOT use this option to always use a fixed (instead | |
715 | of a dynamic) timeout value. To set a fixed timeout see the | |
716 | 'icp_query_timeout' directive. | |
717 | DOC_END | |
718 | ||
719 | NAME: minimum_icp_query_timeout | |
720 | COMMENT: (msec) | |
721 | DEFAULT: 5 | |
722 | TYPE: int | |
723 | LOC: Config.Timeout.icp_query_min | |
724 | DOC_START | |
725 | Normally the ICP query timeout is determined dynamically. But | |
726 | sometimes it can lead to very small timeouts, even lower than | |
727 | the normal latency variance on your link due to traffic. | |
728 | Use this option to put an lower limit on the dynamic timeout | |
729 | value. Do NOT use this option to always use a fixed (instead | |
730 | of a dynamic) timeout value. To set a fixed timeout see the | |
731 | 'icp_query_timeout' directive. | |
732 | DOC_END | |
733 | ||
734 | NAME: mcast_icp_query_timeout | |
735 | COMMENT: (msec) | |
736 | DEFAULT: 2000 | |
737 | TYPE: int | |
738 | LOC: Config.Timeout.mcast_icp_query | |
739 | DOC_START | |
740 | For Multicast peers, Squid regularly sends out ICP "probes" to | |
741 | count how many other peers are listening on the given multicast | |
742 | address. This value specifies how long Squid should wait to | |
743 | count all the replies. The default is 2000 msec, or 2 | |
744 | seconds. | |
745 | DOC_END | |
746 | ||
747 | NAME: dead_peer_timeout | |
748 | COMMENT: (seconds) | |
749 | DEFAULT: 10 seconds | |
750 | TYPE: time_t | |
751 | LOC: Config.Timeout.deadPeer | |
752 | DOC_START | |
753 | This controls how long Squid waits to declare a peer cache | |
754 | as "dead." If there are no ICP replies received in this | |
755 | amount of time, Squid will declare the peer dead and not | |
756 | expect to receive any further ICP replies. However, it | |
757 | continues to send ICP queries, and will mark the peer as | |
758 | alive upon receipt of the first subsequent ICP reply. | |
759 | ||
760 | This timeout also affects when Squid expects to receive ICP | |
761 | replies from peers. If more than 'dead_peer' seconds have | |
762 | passed since the last ICP reply was received, Squid will not | |
763 | expect to receive an ICP reply on the next query. Thus, if | |
764 | your time between requests is greater than this timeout, you | |
765 | will see a lot of requests sent DIRECT to origin servers | |
766 | instead of to your parents. | |
767 | DOC_END | |
768 | ||
769 | ||
770 | NAME: hierarchy_stoplist | |
771 | TYPE: wordlist | |
772 | DEFAULT: none | |
773 | LOC: Config.hierarchy_stoplist | |
774 | DOC_START | |
775 | A list of words which, if found in a URL, cause the object to | |
776 | be handled directly by this cache. In other words, use this | |
777 | to not query neighbor caches for certain objects. You may | |
778 | list this option multiple times. | |
779 | NOCOMMENT_START | |
780 | #We recommend you to use at least the following line. | |
781 | hierarchy_stoplist cgi-bin ? | |
782 | NOCOMMENT_END | |
783 | DOC_END | |
784 | ||
785 | ||
786 | NAME: no_cache | |
787 | TYPE: acl_access | |
788 | DEFAULT: none | |
789 | LOC: Config.accessList.noCache | |
790 | DOC_START | |
791 | A list of ACL elements which, if matched, cause the request to | |
792 | not be satisfied from the cache and the reply to not be cached. | |
793 | In other words, use this to force certain objects to never be cached. | |
794 | ||
795 | You must use the word 'DENY' to indicate the ACL names which should | |
796 | NOT be cached. | |
797 | ||
798 | NOCOMMENT_START | |
799 | #We recommend you to use the following two lines. | |
800 | acl QUERY urlpath_regex cgi-bin \? | |
801 | no_cache deny QUERY | |
802 | NOCOMMENT_END | |
803 | DOC_END | |
804 | ||
805 | NAME: background_ping_rate | |
806 | COMMENT: time-units | |
807 | TYPE: time_t | |
808 | DEFAULT: 10 seconds | |
809 | LOC: Config.backgroundPingRate | |
810 | DOC_START | |
811 | Controls how often the ICP pings are sent to siblings that | |
812 | have background-ping set. | |
813 | DOC_END | |
814 | ||
815 | ||
816 | COMMENT_START | |
817 | OPTIONS WHICH AFFECT THE CACHE SIZE | |
818 | ----------------------------------------------------------------------------- | |
819 | COMMENT_END | |
820 | ||
821 | NAME: cache_mem | |
822 | COMMENT: (bytes) | |
823 | TYPE: b_size_t | |
824 | DEFAULT: 8 MB | |
825 | LOC: Config.memMaxSize | |
826 | DOC_START | |
827 | NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE. | |
828 | IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL | |
829 | USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER | |
830 | THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS. | |
831 | ||
832 | 'cache_mem' specifies the ideal amount of memory to be used | |
833 | for: | |
834 | * In-Transit objects | |
835 | * Hot Objects | |
836 | * Negative-Cached objects | |
837 | ||
838 | Data for these objects are stored in 4 KB blocks. This | |
839 | parameter specifies the ideal upper limit on the total size of | |
840 | 4 KB blocks allocated. In-Transit objects take the highest | |
841 | priority. | |
842 | ||
843 | In-transit objects have priority over the others. When | |
844 | additional space is needed for incoming data, negative-cached | |
845 | and hot objects will be released. In other words, the | |
846 | negative-cached and hot objects will fill up any unused space | |
847 | not needed for in-transit objects. | |
848 | ||
849 | If circumstances require, this limit will be exceeded. | |
850 | Specifically, if your incoming request rate requires more than | |
851 | 'cache_mem' of memory to hold in-transit objects, Squid will | |
852 | exceed this limit to satisfy the new requests. When the load | |
853 | decreases, blocks will be freed until the high-water mark is | |
854 | reached. Thereafter, blocks will be used to store hot | |
855 | objects. | |
856 | DOC_END | |
857 | ||
858 | ||
859 | NAME: cache_swap_low | |
860 | COMMENT: (percent, 0-100) | |
861 | TYPE: int | |
862 | DEFAULT: 90 | |
863 | LOC: Config.Swap.lowWaterMark | |
864 | DOC_NONE | |
865 | ||
866 | NAME: cache_swap_high | |
867 | COMMENT: (percent, 0-100) | |
868 | TYPE: int | |
869 | DEFAULT: 95 | |
870 | LOC: Config.Swap.highWaterMark | |
871 | DOC_START | |
872 | ||
873 | The low- and high-water marks for cache object replacement. | |
874 | Replacement begins when the swap (disk) usage is above the | |
875 | low-water mark and attempts to maintain utilization near the | |
876 | low-water mark. As swap utilization gets close to high-water | |
877 | mark object eviction becomes more aggressive. If utilization is | |
878 | close to the low-water mark less replacement is done each time. | |
879 | ||
880 | Defaults are 90% and 95%. If you have a large cache, 5% could be | |
881 | hundreds of MB. If this is the case you may wish to set these | |
882 | numbers closer together. | |
883 | DOC_END | |
884 | ||
885 | NAME: maximum_object_size | |
886 | COMMENT: (bytes) | |
887 | TYPE: b_size_t | |
888 | DEFAULT: 4096 KB | |
889 | LOC: Config.Store.maxObjectSize | |
890 | DOC_START | |
891 | Objects larger than this size will NOT be saved on disk. The | |
892 | value is specified in kilobytes, and the default is 4MB. If | |
893 | you wish to get a high BYTES hit ratio, you should probably | |
894 | increase this (one 32 MB object hit counts for 3200 10KB | |
895 | hits). If you wish to increase speed more than your want to | |
896 | save bandwidth you should leave this low. | |
897 | ||
898 | NOTE: if using the LFUDA replacement policy you should increase | |
899 | this value to maximize the byte hit rate improvement of LFUDA! | |
900 | See replacement_policy below for a discussion of this policy. | |
901 | DOC_END | |
902 | ||
903 | NAME: minimum_object_size | |
904 | COMMENT: (bytes) | |
905 | TYPE: b_size_t | |
906 | DEFAULT: 0 KB | |
907 | LOC: Config.Store.minObjectSize | |
908 | DOC_START | |
909 | Objects smaller than this size will NOT be saved on disk. The | |
910 | value is specified in kilobytes, and the default is 0 KB, which | |
911 | means there is no minimum. | |
912 | DOC_END | |
913 | ||
914 | NAME: maximum_object_size_in_memory | |
915 | COMMENT: (bytes) | |
916 | TYPE: b_size_t | |
917 | DEFAULT: 8 KB | |
918 | LOC: Config.Store.maxInMemObjSize | |
919 | DOC_START | |
920 | Objects greater than this size will not be attempted to kept in | |
921 | the memory cache. This should be set high enough to keep objects | |
922 | accessed frequently in memory to improve performance whilst low | |
923 | enough to keep larger objects from hoarding cache_mem . | |
924 | DOC_END | |
925 | ||
926 | NAME: ipcache_size | |
927 | COMMENT: (number of entries) | |
928 | TYPE: int | |
929 | DEFAULT: 1024 | |
930 | LOC: Config.ipcache.size | |
931 | DOC_NONE | |
932 | ||
933 | NAME: ipcache_low | |
934 | COMMENT: (percent) | |
935 | TYPE: int | |
936 | DEFAULT: 90 | |
937 | LOC: Config.ipcache.low | |
938 | DOC_NONE | |
939 | ||
940 | NAME: ipcache_high | |
941 | COMMENT: (percent) | |
942 | TYPE: int | |
943 | DEFAULT: 95 | |
944 | LOC: Config.ipcache.high | |
945 | DOC_START | |
946 | The size, low-, and high-water marks for the IP cache. | |
947 | DOC_END | |
948 | ||
949 | NAME: fqdncache_size | |
950 | COMMENT: (number of entries) | |
951 | TYPE: int | |
952 | DEFAULT: 1024 | |
953 | LOC: Config.fqdncache.size | |
954 | DOC_START | |
955 | Maximum number of FQDN cache entries. | |
956 | DOC_END | |
957 | ||
958 | NAME: cache_replacement_policy | |
959 | TYPE: removalpolicy | |
960 | LOC: Config.replPolicy | |
961 | DEFAULT: lru | |
962 | DOC_START | |
963 | The cache replacement policy parameter determines which | |
964 | objects are evicted (replaced) when disk space is needed. | |
965 | ||
966 | lru : Squid's original list based LRU policy | |
967 | heap GDSF : Greedy-Dual Size Frequency | |
968 | heap LFUDA: Least Frequently Used with Dynamic Aging | |
969 | heap LRU : LRU policy implemented using a heap | |
970 | ||
971 | Applies to any cache_dir lines listed below this. | |
972 | ||
973 | The LRU policies keeps recently referenced objects. | |
974 | ||
975 | The heap GDSF policy optimizes object hit rate by keeping smaller | |
976 | popular objects in cache so it has a better chance of getting a | |
977 | hit. It achieves a lower byte hit rate than LFUDA though since | |
978 | it evicts larger (possibly popular) objects. | |
979 | ||
980 | The heap LFUDA policy keeps popular objects in cache regardless of | |
981 | their size and thus optimizes byte hit rate at the expense of | |
982 | hit rate since one large, popular object will prevent many | |
983 | smaller, slightly less popular objects from being cached. | |
984 | ||
985 | Both policies utilize a dynamic aging mechanism that prevents | |
986 | cache pollution that can otherwise occur with frequency-based | |
987 | replacement policies. | |
988 | ||
989 | NOTE: if using the LFUDA replacement policy you should increase | |
990 | the value of maximum_object_size above its default of 4096 KB to | |
991 | to maximize the potential byte hit rate improvement of LFUDA. | |
992 | ||
993 | For more information about the GDSF and LFUDA cache replacement | |
994 | policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html | |
995 | and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html. | |
996 | DOC_END | |
997 | ||
998 | NAME: memory_replacement_policy | |
999 | TYPE: removalpolicy | |
1000 | LOC: Config.memPolicy | |
1001 | DEFAULT: lru | |
1002 | DOC_START | |
1003 | The memory replacement policy parameter determines which | |
1004 | objects are purged from memory when memory space is needed. | |
1005 | ||
1006 | See cache_replacement_policy for details. | |
1007 | DOC_END | |
1008 | ||
1009 | ||
1010 | COMMENT_START | |
1011 | LOGFILE PATHNAMES AND CACHE DIRECTORIES | |
1012 | ----------------------------------------------------------------------------- | |
1013 | COMMENT_END | |
1014 | ||
1015 | NAME: cache_dir | |
1016 | TYPE: cachedir | |
1017 | DEFAULT: none | |
1018 | DEFAULT_IF_NONE: ufs @DEFAULT_SWAP_DIR@ 100 16 256 | |
1019 | LOC: Config.cacheSwap | |
1020 | DOC_START | |
1021 | Usage: | |
1022 | ||
1023 | cache_dir Type Directory-Name Fs-specific-data [options] | |
1024 | ||
1025 | You can specify multiple cache_dir lines to spread the | |
1026 | cache among different disk partitions. | |
1027 | ||
1028 | Type specifies the kind of storage system to use. Only "ufs" | |
1029 | is built by default. To eanble any of the other storage systems | |
1030 | see the --enable-storeio configure option. | |
1031 | ||
1032 | 'Directory' is a top-level directory where cache swap | |
1033 | files will be stored. If you want to use an entire disk | |
1034 | for caching, then this can be the mount-point directory. | |
1035 | The directory must exist and be writable by the Squid | |
1036 | process. Squid will NOT create this directory for you. | |
1037 | ||
1038 | The ufs store type: | |
1039 | ||
1040 | "ufs" is the old well-known Squid storage format that has always | |
1041 | been there. | |
1042 | ||
1043 | cache_dir ufs Directory-Name Mbytes L1 L2 [options] | |
1044 | ||
1045 | 'Mbytes' is the amount of disk space (MB) to use under this | |
1046 | directory. The default is 100 MB. Change this to suit your | |
1047 | configuration. Do NOT put the size of your disk drive here. | |
1048 | Instead, if you want Squid to use the entire disk drive, | |
1049 | subtract 20% and use that value. | |
1050 | ||
1051 | 'Level-1' is the number of first-level subdirectories which | |
1052 | will be created under the 'Directory'. The default is 16. | |
1053 | ||
1054 | 'Level-2' is the number of second-level subdirectories which | |
1055 | will be created under each first-level directory. The default | |
1056 | is 256. | |
1057 | ||
1058 | The aufs store type: | |
1059 | ||
1060 | "aufs" uses the same storage format as "ufs", utilizing | |
1061 | POSIX-threads to avoid blocking the main Squid process on | |
1062 | disk-I/O. This was formerly known in Squid as async-io. | |
1063 | ||
1064 | cache_dir aufs Directory-Name Mbytes L1 L2 [options] | |
1065 | ||
1066 | see argument descriptions under ufs above | |
1067 | ||
1068 | The diskd store type: | |
1069 | ||
1070 | "diskd" uses the same storage format as "ufs", utilizing a | |
1071 | separate process to avoid blocking the main Squid process on | |
1072 | disk-I/O. | |
1073 | ||
1074 | cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n] | |
1075 | ||
1076 | see argument descriptions under ufs above | |
1077 | ||
1078 | Q1 specifies the number of unacknowledged I/O requests when Squid | |
1079 | stops opening new files. If this many messages are in the queues, | |
1080 | Squid won't open new files. Default is 64 | |
1081 | ||
1082 | Q2 specifies the number of unacknowledged messages when Squid | |
1083 | starts blocking. If this many messages are in the queues, | |
1084 | Squid blocks until it recevies some replies. Default is 72 | |
1085 | ||
1086 | When Q1 < Q2 (the default), the cache directory is optimized | |
1087 | for lower response time at the expense of a decrease in hit | |
1088 | ratio. If Q1 > Q2, the cache directory is optimized for | |
1089 | higher hit ratio at the expense of an increase in response | |
1090 | time. | |
1091 | ||
1092 | The coss store type: | |
1093 | ||
1094 | block-size=n defines the "block size" for COSS cache_dir's. | |
1095 | Squid uses file numbers as block numbers. Since file numbers | |
1096 | are limited to 24 bits, the block size determines the maximum | |
1097 | size of the COSS partition. The default is 512 bytes, which | |
1098 | leads to a maximum cache_dir size of 512<<24, or 8 GB. Note | |
1099 | that you should not change the coss block size after Squid | |
1100 | has written some objects to the cache_dir. | |
1101 | ||
1102 | Common options: | |
1103 | ||
1104 | read-only, this cache_dir is read only. | |
1105 | ||
1106 | max-size=n, refers to the max object size this storedir supports. | |
1107 | It is used to initially choose the storedir to dump the object. | |
1108 | Note: To make optimal use of the max-size limits you should order | |
1109 | the cache_dir lines with the smallest max-size value first and the | |
1110 | ones with no max-size specification last. | |
1111 | ||
1112 | Note that for coss, max-size must be less than COSS_MEMBUF_SZ, | |
1113 | which can be changed with the --with-coss-membuf-size=N configure | |
1114 | option. | |
1115 | DOC_END | |
1116 | ||
1117 | ||
1118 | NAME: logformat | |
1119 | TYPE: logformat | |
1120 | LOC: Config.Log.logformats | |
1121 | DEFAULT: none | |
1122 | DOC_START | |
1123 | Usage: | |
1124 | ||
1125 | logformat <name> <format specification> | |
1126 | ||
1127 | Defines an access log format. | |
1128 | ||
1129 | The <format specification> is a string with embedded % format codes | |
1130 | ||
1131 | % format codes all follow the same basic structure where all but | |
1132 | the formatcode is optional. Output strings are automatically quoted | |
1133 | as required according to their context and the output format | |
1134 | modifiers are usually unneeded but can be specified if an explicit | |
1135 | quoting format is desired. | |
1136 | ||
1137 | % ["|[|'|#] [-] [[0]width] [{argument}] formatcode | |
1138 | ||
1139 | " quoted string output format | |
1140 | [ squid log quoted format as used by log_mime_hdrs | |
1141 | # URL quoted output format | |
1142 | ' No automatic quoting | |
1143 | - left aligned | |
1144 | width field width. If starting with 0 then the | |
1145 | output is zero padded | |
1146 | {arg} argument such as header name etc | |
1147 | ||
1148 | Format codes: | |
1149 | ||
1150 | >a Client source IP address | |
1151 | >A Client FQDN | |
1152 | <A Server IP address or peer name | |
1153 | la Local IP address (http_port) | |
1154 | lp Local port number (http_port) | |
1155 | ts Seconds since epoch | |
1156 | tu subsecond time (milliseconds) | |
1157 | tl Local time. Optional strftime format argument | |
1158 | default %d/%b/%Y:%H:%M:S %z | |
1159 | tg GMT time. Optional strftime format argument | |
1160 | default %d/%b/%Y:%H:%M:S %z | |
1161 | tr Response time (milliseconds) | |
1162 | >h Request header. Optional header name argument | |
1163 | on the format header[:[separator]element] | |
1164 | <h Reply header. Optional header name argument | |
1165 | as for >h | |
1166 | un User name | |
1167 | ul User login | |
1168 | ui User ident | |
1169 | ue User from external acl | |
1170 | Hs HTTP status code | |
1171 | Ss Squid request status (TCP_MISS etc) | |
1172 | Sh Squid hierarchy status (DEFAULT_PARENT etc) | |
1173 | mt MIME content type | |
1174 | rm Request method (GET/POST etc) | |
1175 | ru Request URL | |
1176 | rv Request protocol version | |
1177 | et Tag returned by external acl | |
1178 | ea Log string returned by external acl | |
1179 | <st Reply size including HTTP headers | |
1180 | <sH Reply high offset sent | |
1181 | <sS Upstream object size | |
1182 | % a literal % character | |
1183 | ||
1184 | logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt | |
1185 | logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h] | |
1186 | logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh | |
1187 | logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh | |
1188 | DOC_END | |
1189 | ||
1190 | NAME: access_log cache_access_log | |
1191 | TYPE: access_log | |
1192 | LOC: Config.Log.accesslogs | |
1193 | DEFAULT: none | |
1194 | DEFAULT_IF_NONE: @DEFAULT_ACCESS_LOG@ | |
1195 | DOC_START | |
1196 | These files log client request activities. Has a line every HTTP or | |
1197 | ICP request. The format is: | |
1198 | access_log <filepath> [<logformat name> [acl acl ...]] | |
1199 | access_log none [acl acl ...]] | |
1200 | ||
1201 | Will log to the specified file using the specified format (which | |
1202 | must be defined in a logformat directive) those entries which match | |
1203 | ALL the acl's specified (which must be defined in acl clauses). | |
1204 | If no acl is specified, all requests will be logged to this file. | |
1205 | ||
1206 | To disable logging of a request specify "none". | |
1207 | DOC_END | |
1208 | ||
1209 | ||
1210 | NAME: cache_log | |
1211 | TYPE: string | |
1212 | DEFAULT: @DEFAULT_CACHE_LOG@ | |
1213 | LOC: Config.Log.log | |
1214 | DOC_START | |
1215 | Cache logging file. This is where general information about | |
1216 | your cache's behavior goes. You can increase the amount of data | |
1217 | logged to this file with the "debug_options" tag below. | |
1218 | DOC_END | |
1219 | ||
1220 | ||
1221 | NAME: cache_store_log | |
1222 | TYPE: string | |
1223 | DEFAULT: @DEFAULT_STORE_LOG@ | |
1224 | LOC: Config.Log.store | |
1225 | DOC_START | |
1226 | Logs the activities of the storage manager. Shows which | |
1227 | objects are ejected from the cache, and which objects are | |
1228 | saved and for how long. To disable, enter "none". There are | |
1229 | not really utilities to analyze this data, so you can safely | |
1230 | disable it. | |
1231 | DOC_END | |
1232 | ||
1233 | ||
1234 | NAME: cache_swap_state cache_swap_log | |
1235 | TYPE: string | |
1236 | LOC: Config.Log.swap | |
1237 | DEFAULT: none | |
1238 | DOC_START | |
1239 | Location for the cache "swap.state" file. This index file holds | |
1240 | the metadata of objects saved on disk. It is used to rebuild | |
1241 | the cache during startup. Normally this file resides in each | |
1242 | 'cache_dir' directory, but you may specify an alternate | |
1243 | pathname here. Note you must give a full filename, not just | |
1244 | a directory. Since this is the index for the whole object | |
1245 | list you CANNOT periodically rotate it! | |
1246 | ||
1247 | If %s can be used in the file name then it will be replaced with a | |
1248 | a representation of the cache_dir name where each / is replaced | |
1249 | with '.'. This is needed to allow adding/removing cache_dir | |
1250 | lines when cache_swap_log is being used. | |
1251 | ||
1252 | If have more than one 'cache_dir', and %s is not used in the name | |
1253 | then these swap logs will have names such as: | |
1254 | ||
1255 | cache_swap_log.00 | |
1256 | cache_swap_log.01 | |
1257 | cache_swap_log.02 | |
1258 | ||
1259 | The numbered extension (which is added automatically) | |
1260 | corresponds to the order of the 'cache_dir' lines in this | |
1261 | configuration file. If you change the order of the 'cache_dir' | |
1262 | lines in this file, then these log files will NOT correspond to | |
1263 | the correct 'cache_dir' entry (unless you manually rename | |
1264 | them). We recommend that you do NOT use this option. It is | |
1265 | better to keep these log files in each 'cache_dir' directory. | |
1266 | DOC_END | |
1267 | ||
1268 | ||
1269 | NAME: emulate_httpd_log | |
1270 | COMMENT: on|off | |
1271 | TYPE: onoff | |
1272 | DEFAULT: off | |
1273 | LOC: Config.onoff.common_log | |
1274 | DOC_START | |
1275 | The Cache can emulate the log file format which many 'httpd' | |
1276 | programs use. To disable/enable this emulation, set | |
1277 | emulate_httpd_log to 'off' or 'on'. The default | |
1278 | is to use the native log format since it includes useful | |
1279 | information that Squid-specific log analyzers use. | |
1280 | DOC_END | |
1281 | ||
1282 | NAME: log_ip_on_direct | |
1283 | COMMENT: on|off | |
1284 | TYPE: onoff | |
1285 | DEFAULT: on | |
1286 | LOC: Config.onoff.log_ip_on_direct | |
1287 | DOC_START | |
1288 | Log the destination IP address in the hierarchy log tag when going | |
1289 | direct. Earlier Squid versions logged the hostname here. If you | |
1290 | prefer the old way set this to off. | |
1291 | DOC_END | |
1292 | ||
1293 | NAME: mime_table | |
1294 | TYPE: string | |
1295 | DEFAULT: @DEFAULT_MIME_TABLE@ | |
1296 | LOC: Config.mimeTablePathname | |
1297 | DOC_START | |
1298 | Pathname to Squid's MIME table. You shouldn't need to change | |
1299 | this, but the default file contains examples and formatting | |
1300 | information if you do. | |
1301 | DOC_END | |
1302 | ||
1303 | ||
1304 | NAME: log_mime_hdrs | |
1305 | COMMENT: on|off | |
1306 | TYPE: onoff | |
1307 | LOC: Config.onoff.log_mime_hdrs | |
1308 | DEFAULT: off | |
1309 | DOC_START | |
1310 | The Cache can record both the request and the response MIME | |
1311 | headers for each HTTP transaction. The headers are encoded | |
1312 | safely and will appear as two bracketed fields at the end of | |
1313 | the access log (for either the native or httpd-emulated log | |
1314 | formats). To enable this logging set log_mime_hdrs to 'on'. | |
1315 | DOC_END | |
1316 | ||
1317 | ||
1318 | NAME: useragent_log | |
1319 | TYPE: string | |
1320 | LOC: Config.Log.useragent | |
1321 | DEFAULT: none | |
1322 | IFDEF: USE_USERAGENT_LOG | |
1323 | DOC_START | |
1324 | Squid will write the User-Agent field from HTTP requests | |
1325 | to the filename specified here. By default useragent_log | |
1326 | is disabled. | |
1327 | DOC_END | |
1328 | ||
1329 | ||
1330 | NAME: referer_log | |
1331 | TYPE: string | |
1332 | LOC: Config.Log.referer | |
1333 | DEFAULT: none | |
1334 | IFDEF: USE_REFERER_LOG | |
1335 | DOC_START | |
1336 | Squid will write the Referer field from HTTP requests to the | |
1337 | filename specified here. By default referer_log is disabled. | |
1338 | DOC_END | |
1339 | ||
1340 | ||
1341 | NAME: pid_filename | |
1342 | TYPE: string | |
1343 | DEFAULT: @DEFAULT_PID_FILE@ | |
1344 | LOC: Config.pidFilename | |
1345 | DOC_START | |
1346 | A filename to write the process-id to. To disable, enter "none". | |
1347 | DOC_END | |
1348 | ||
1349 | ||
1350 | NAME: debug_options | |
1351 | TYPE: debug | |
1352 | DEFAULT: ALL,1 | |
1353 | LOC: Config.debugOptions | |
1354 | DOC_START | |
1355 | Logging options are set as section,level where each source file | |
1356 | is assigned a unique section. Lower levels result in less | |
1357 | output, Full debugging (level 9) can result in a very large | |
1358 | log file, so be careful. The magic word "ALL" sets debugging | |
1359 | levels for all sections. We recommend normally running with | |
1360 | "ALL,1". | |
1361 | DOC_END | |
1362 | ||
1363 | ||
1364 | NAME: log_fqdn | |
1365 | COMMENT: on|off | |
1366 | TYPE: onoff | |
1367 | DEFAULT: off | |
1368 | LOC: Config.onoff.log_fqdn | |
1369 | DOC_START | |
1370 | Turn this on if you wish to log fully qualified domain names | |
1371 | in the access.log. To do this Squid does a DNS lookup of all | |
1372 | IP's connecting to it. This can (in some situations) increase | |
1373 | latency, which makes your cache seem slower for interactive | |
1374 | browsing. | |
1375 | DOC_END | |
1376 | ||
1377 | ||
1378 | NAME: client_netmask | |
1379 | TYPE: address | |
1380 | LOC: Config.Addrs.client_netmask | |
1381 | DEFAULT: 255.255.255.255 | |
1382 | DOC_START | |
1383 | A netmask for client addresses in logfiles and cachemgr output. | |
1384 | Change this to protect the privacy of your cache clients. | |
1385 | A netmask of 255.255.255.0 will log all IP's in that range with | |
1386 | the last digit set to '0'. | |
1387 | DOC_END | |
1388 | ||
1389 | ||
1390 | COMMENT_START | |
1391 | OPTIONS FOR EXTERNAL SUPPORT PROGRAMS | |
1392 | ----------------------------------------------------------------------------- | |
1393 | COMMENT_END | |
1394 | ||
1395 | NAME: ftp_user | |
1396 | TYPE: string | |
1397 | DEFAULT: Squid@ | |
1398 | LOC: Config.Ftp.anon_user | |
1399 | DOC_START | |
1400 | If you want the anonymous login password to be more informative | |
1401 | (and enable the use of picky ftp servers), set this to something | |
1402 | reasonable for your domain, like wwwuser@somewhere.net | |
1403 | ||
1404 | The reason why this is domainless by default is that the | |
1405 | request can be made on the behalf of a user in any domain, | |
1406 | depending on how the cache is used. | |
1407 | Some ftp server also validate that the email address is valid | |
1408 | (for example perl.com). | |
1409 | DOC_END | |
1410 | ||
1411 | NAME: ftp_list_width | |
1412 | TYPE: size_t | |
1413 | DEFAULT: 32 | |
1414 | LOC: Config.Ftp.list_width | |
1415 | DOC_START | |
1416 | Sets the width of ftp listings. This should be set to fit in | |
1417 | the width of a standard browser. Setting this too small | |
1418 | can cut off long filenames when browsing ftp sites. | |
1419 | DOC_END | |
1420 | ||
1421 | NAME: ftp_passive | |
1422 | TYPE: onoff | |
1423 | DEFAULT: on | |
1424 | LOC: Config.Ftp.passive | |
1425 | DOC_START | |
1426 | If your firewall does not allow Squid to use passive | |
1427 | connections, then turn off this option. | |
1428 | DOC_END | |
1429 | ||
1430 | NAME: ftp_sanitycheck | |
1431 | TYPE: onoff | |
1432 | DEFAULT: on | |
1433 | LOC: Config.Ftp.sanitycheck | |
1434 | DOC_START | |
1435 | For security and data integrity reasons Squid by default performs | |
1436 | sanity checks of the addresses of FTP data connections ensure the | |
1437 | data connection is to the requested server. If you need to allow | |
1438 | FTP connections to servers using another IP address for the data | |
1439 | connection then turn this off. | |
1440 | DOC_END | |
1441 | ||
1442 | NAME: check_hostnames | |
1443 | TYPE: onoff | |
1444 | DEFAULT: on | |
1445 | LOC: Config.onoff.check_hostnames | |
1446 | DOC_START | |
1447 | For security and stability reasons Squid by default checks | |
1448 | hostnames for Internet standard RFC compliance. If you do not want | |
1449 | Squid to perform these checks then turn this directive off. | |
1450 | DOC_END | |
1451 | ||
1452 | NAME: ftp_telnet_protocol | |
1453 | TYPE: onoff | |
1454 | DEFAULT: on | |
1455 | LOC: Config.Ftp.telnet | |
1456 | DOC_START | |
1457 | The FTP protocol is officially defined to use the telnet protocol | |
1458 | as transport channel for the control connection. However, many | |
1459 | implemenations are broken and does not respect this aspect of | |
1460 | the FTP protocol. | |
1461 | ||
1462 | If you have trouble accessing files with ASCII code 255 in the | |
1463 | path or similar problems involving this ASCII code then you can | |
1464 | try setting this directive to off. If that helps report to the | |
1465 | operator of the FTP server in question that their FTP server | |
1466 | is broken and does not follow the FTP standard. | |
1467 | DOC_END | |
1468 | ||
1469 | NAME: cache_dns_program | |
1470 | TYPE: string | |
1471 | IFDEF: USE_DNSSERVERS | |
1472 | DEFAULT: @DEFAULT_DNSSERVER@ | |
1473 | LOC: Config.Program.dnsserver | |
1474 | DOC_START | |
1475 | Specify the location of the executable for dnslookup process. | |
1476 | DOC_END | |
1477 | ||
1478 | NAME: dns_children | |
1479 | TYPE: int | |
1480 | IFDEF: USE_DNSSERVERS | |
1481 | DEFAULT: 5 | |
1482 | LOC: Config.dnsChildren | |
1483 | DOC_START | |
1484 | The number of processes spawn to service DNS name lookups. | |
1485 | For heavily loaded caches on large servers, you should | |
1486 | probably increase this value to at least 10. The maximum | |
1487 | is 32. The default is 5. | |
1488 | ||
1489 | You must have at least one dnsserver process. | |
1490 | DOC_END | |
1491 | ||
1492 | NAME: dns_retransmit_interval | |
1493 | TYPE: time_t | |
1494 | DEFAULT: 5 seconds | |
1495 | LOC: Config.Timeout.idns_retransmit | |
1496 | IFDEF: !USE_DNSSERVERS | |
1497 | DOC_START | |
1498 | Initial retransmit interval for DNS queries. The interval is | |
1499 | doubled each time all configured DNS servers have been tried. | |
1500 | ||
1501 | DOC_END | |
1502 | ||
1503 | NAME: dns_timeout | |
1504 | TYPE: time_t | |
1505 | DEFAULT: 5 minutes | |
1506 | LOC: Config.Timeout.idns_query | |
1507 | IFDEF: !USE_DNSSERVERS | |
1508 | DOC_START | |
1509 | DNS Query timeout. If no response is received to a DNS query | |
1510 | within this time then all DNS servers for the queried domain | |
1511 | is assumed to be unavailable. | |
1512 | DOC_END | |
1513 | ||
1514 | NAME: dns_defnames | |
1515 | COMMENT: on|off | |
1516 | IFDEF: USE_DNSSERVERS | |
1517 | TYPE: onoff | |
1518 | DEFAULT: off | |
1519 | LOC: Config.onoff.res_defnames | |
1520 | IFDEF: USE_DNSSERVERS | |
1521 | DOC_START | |
1522 | Normally the 'dnsserver' disables the RES_DEFNAMES resolver | |
1523 | option (see res_init(3)). This prevents caches in a hierarchy | |
1524 | from interpreting single-component hostnames locally. To allow | |
1525 | dnsserver to handle single-component names, enable this | |
1526 | option. | |
1527 | DOC_END | |
1528 | ||
1529 | NAME: dns_nameservers | |
1530 | TYPE: wordlist | |
1531 | DEFAULT: none | |
1532 | LOC: Config.dns_nameservers | |
1533 | DOC_START | |
1534 | Use this if you want to specify a list of DNS name servers | |
1535 | (IP addresses) to use instead of those given in your | |
1536 | /etc/resolv.conf file. | |
1537 | On Windows platforms, if no value is specified here or in | |
1538 | the /etc/resolv.conf file, the list of DNS name servers are | |
1539 | taken from the Windows registry, both static and dynamic DHCP | |
1540 | configurations are supported. | |
1541 | ||
1542 | Example: dns_nameservers 10.0.0.1 192.172.0.4 | |
1543 | DOC_END | |
1544 | ||
1545 | NAME: hosts_file | |
1546 | TYPE: string | |
1547 | DEFAULT: @DEFAULT_HOSTS@ | |
1548 | LOC: Config.etcHostsPath | |
1549 | DOC_START | |
1550 | Location of the host-local IP name-address associations | |
1551 | database. Most Operating Systems have such a file on different | |
1552 | default locations: | |
1553 | - Un*X & Linux: /etc/hosts | |
1554 | - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts | |
1555 | (%SystemRoot% value install default is c:\winnt) | |
1556 | - Windows XP: %SystemRoot%\system32\drivers\etc\hosts | |
1557 | (%SystemRoot% value install default is c:\windows) | |
1558 | - Windows 9x/Me: %windir%\hosts | |
1559 | (%windir% value is usually c:\windows) | |
1560 | - Cygwin: /etc/hosts | |
1561 | ||
1562 | The file contains newline-separated definitions, in the | |
1563 | form ip_address_in_dotted_form name [name ...] names are | |
1564 | whitespace-separated. Lines beginnng with an hash (#) | |
1565 | character are comments. | |
1566 | ||
1567 | The file is checked at startup and upon configuration. | |
1568 | If set to 'none', it won't be checked. | |
1569 | If append_domain is used, that domain will be added to | |
1570 | domain-local (i.e. not containing any dot character) host | |
1571 | definitions. | |
1572 | DOC_END | |
1573 | ||
1574 | NAME: diskd_program | |
1575 | TYPE: string | |
1576 | DEFAULT: @DEFAULT_DISKD@ | |
1577 | LOC: Config.Program.diskd | |
1578 | DOC_START | |
1579 | Specify the location of the diskd executable. | |
1580 | Note that this is only useful if you have compiled in | |
1581 | diskd as one of the store io modules. | |
1582 | DOC_END | |
1583 | ||
1584 | NAME: unlinkd_program | |
1585 | IFDEF: USE_UNLINKD | |
1586 | TYPE: string | |
1587 | DEFAULT: @DEFAULT_UNLINKD@ | |
1588 | LOC: Config.Program.unlinkd | |
1589 | DOC_START | |
1590 | Specify the location of the executable for file deletion process. | |
1591 | DOC_END | |
1592 | ||
1593 | NAME: pinger_program | |
1594 | TYPE: string | |
1595 | DEFAULT: @DEFAULT_PINGER@ | |
1596 | LOC: Config.Program.pinger | |
1597 | IFDEF: USE_ICMP | |
1598 | DOC_START | |
1599 | Specify the location of the executable for the pinger process. | |
1600 | DOC_END | |
1601 | ||
1602 | ||
1603 | NAME: redirect_program | |
1604 | TYPE: wordlist | |
1605 | LOC: Config.Program.redirect | |
1606 | DEFAULT: none | |
1607 | DOC_START | |
1608 | Specify the location of the executable for the URL redirector. | |
1609 | Since they can perform almost any function there isn't one included. | |
1610 | See the FAQ (section 15) for information on how to write one. | |
1611 | By default, a redirector is not used. | |
1612 | DOC_END | |
1613 | ||
1614 | ||
1615 | NAME: redirect_children | |
1616 | TYPE: int | |
1617 | DEFAULT: 5 | |
1618 | LOC: Config.redirectChildren | |
1619 | DOC_START | |
1620 | The number of redirector processes to spawn. If you start | |
1621 | too few Squid will have to wait for them to process a backlog of | |
1622 | URLs, slowing it down. If you start too many they will use RAM | |
1623 | and other system resources. | |
1624 | DOC_END | |
1625 | ||
1626 | NAME: redirect_concurrency | |
1627 | TYPE: int | |
1628 | DEFAULT: 0 | |
1629 | LOC: Config.redirectConcurrency | |
1630 | DOC_START | |
1631 | The number of requests each redirector helper can handle in | |
1632 | parallell. Defaults to 0 which indicates that the redirector | |
1633 | is a old-style singlethreaded redirector. | |
1634 | DOC_END | |
1635 | ||
1636 | NAME: redirect_rewrites_host_header | |
1637 | TYPE: onoff | |
1638 | DEFAULT: on | |
1639 | LOC: Config.onoff.redir_rewrites_host | |
1640 | DOC_START | |
1641 | By default Squid rewrites any Host: header in redirected | |
1642 | requests. If you are running an accelerator then this may | |
1643 | not be a wanted effect of a redirector. | |
1644 | ||
1645 | WARNING: Entries are cached on the result of the URL rewriting | |
1646 | process, so be careful if you have domain-virtual hosts. | |
1647 | DOC_END | |
1648 | ||
1649 | NAME: redirector_access | |
1650 | TYPE: acl_access | |
1651 | DEFAULT: none | |
1652 | LOC: Config.accessList.redirector | |
1653 | DOC_START | |
1654 | If defined, this access list specifies which requests are | |
1655 | sent to the redirector processes. By default all requests | |
1656 | are sent. | |
1657 | DOC_END | |
1658 | ||
1659 | NAME: auth_param | |
1660 | TYPE: authparam | |
1661 | LOC: Config.authConfiguration | |
1662 | DEFAULT: none | |
1663 | DOC_START | |
1664 | This is used to pass parameters to the various authentication | |
1665 | schemes. | |
1666 | format: auth_param scheme parameter [setting] | |
1667 | ||
1668 | auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd | |
1669 | would tell the basic authentication scheme it's program parameter. | |
1670 | ||
1671 | The order that authentication prompts are presented to the client_agent | |
1672 | is dependant on the order the scheme first appears in config file. | |
1673 | IE has a bug (it's not rfc 2617 compliant) in that it will use the basic | |
1674 | scheme if basic is the first entry presented, even if more secure schemes | |
1675 | are presented. For now use the order in the file below. If other browsers | |
1676 | have difficulties (don't recognise the schemes offered even if you are using | |
1677 | basic) then either put basic first, or disable the other schemes (by commenting | |
1678 | out their program entry). | |
1679 | ||
1680 | Once an authentication scheme is fully configured, it can only be shutdown | |
1681 | by shutting squid down and restarting. Changes can be made on the fly and | |
1682 | activated with a reconfigure. I.E. You can change to a different helper, | |
1683 | but not unconfigure the helper completely. | |
1684 | ||
1685 | === Parameters for the basic scheme follow. === | |
1686 | ||
1687 | "program" cmdline | |
1688 | Specify the command for the external authenticator. Such a | |
1689 | program reads a line containing "username password" and replies | |
1690 | "OK" or "ERR" in an endless loop. If you use an authenticator, | |
1691 | make sure you have 1 acl of type proxy_auth. By default, the | |
1692 | basic authentication sheme is not used unless a program is specified. | |
1693 | ||
1694 | If you want to use the traditional proxy authentication, | |
1695 | jump over to the ../auth_modules/NCSA directory and | |
1696 | type: | |
1697 | % make | |
1698 | % make install | |
1699 | ||
1700 | Then, set this line to something like | |
1701 | ||
1702 | auth_param basic program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd | |
1703 | ||
1704 | "children" numberofchildren | |
1705 | The number of authenticator processes to spawn (no default). | |
1706 | If you start too few Squid will have to wait for them to | |
1707 | process a backlog of usercode/password verifications, slowing | |
1708 | it down. When password verifications are done via a (slow) | |
1709 | network you are likely to need lots of authenticator | |
1710 | processes. | |
1711 | auth_param basic children 5 | |
1712 | ||
1713 | "concurrency" concurrency | |
1714 | The number of concurrent requests the helper can process. | |
1715 | The default of 0 is used for helpers who only supports | |
1716 | one request at a time. | |
1717 | auth_param basic concurrency 0 | |
1718 | ||
1719 | "realm" realmstring | |
1720 | Specifies the realm name which is to be reported to the | |
1721 | client for the basic proxy authentication scheme (part of | |
1722 | the text the user will see when prompted their username and | |
1723 | password). There is no default. | |
1724 | auth_param basic realm Squid proxy-caching web server | |
1725 | ||
1726 | "credentialsttl" timetolive | |
1727 | Specifies how long squid assumes an externally validated | |
1728 | username:password pair is valid for - in other words how | |
1729 | often the helper program is called for that user. Set this | |
1730 | low to force revalidation with short lived passwords. Note | |
1731 | that setting this high does not impact your susceptability | |
1732 | to replay attacks unless you are using an one-time password | |
1733 | system (such as SecureID). If you are using such a system, | |
1734 | you will be vulnerable to replay attacks unless you also | |
1735 | use the max_user_ip ACL in an http_access rule. | |
1736 | ||
1737 | === Parameters for the digest scheme follow === | |
1738 | ||
1739 | "program" cmdline | |
1740 | Specify the command for the external authenticator. Such | |
1741 | a program reads a line containing "username":"realm" and | |
1742 | replies with the appropriate H(A1) value base64 encoded or | |
1743 | ERR if the user (or his H(A1) hash) does not exists. | |
1744 | See rfc 2616 for the definition of H(A1). | |
1745 | ||
1746 | By default, the digest authentication is not used unless a | |
1747 | program is specified. | |
1748 | ||
1749 | If you want to use a digest authenticator, jump over to the | |
1750 | helpers/digest_auth/ directory and choose the authenticator | |
1751 | to use. In it's directory type | |
1752 | % make | |
1753 | % make install | |
1754 | ||
1755 | Then, set this line to something like | |
1756 | ||
1757 | auth_param digest program @DEFAULT_PREFIX@/bin/digest_auth_pw @DEFAULT_PREFIX@/etc/digpass | |
1758 | ||
1759 | ||
1760 | "children" numberofchildren | |
1761 | The number of authenticator processes to spawn (no default). | |
1762 | If you start too few Squid will have to wait for them to | |
1763 | process a backlog of H(A1) calculations, slowing it down. | |
1764 | When the H(A1) calculations are done via a (slow) network | |
1765 | you are likely to need lots of authenticator processes. | |
1766 | auth_param digest children 5 | |
1767 | ||
1768 | "realm" realmstring | |
1769 | Specifies the realm name which is to be reported to the | |
1770 | client for the digest proxy authentication scheme (part of | |
1771 | the text the user will see when prompted their username and | |
1772 | password). There is no default. | |
1773 | auth_param digest realm Squid proxy-caching web server | |
1774 | ||
1775 | "nonce_garbage_interval" timeinterval | |
1776 | Specifies the interval that nonces that have been issued | |
1777 | to client_agent's are checked for validity. | |
1778 | ||
1779 | "nonce_max_duration" timeinterval | |
1780 | Specifies the maximum length of time a given nonce will be | |
1781 | valid for. | |
1782 | ||
1783 | "nonce_max_count" number | |
1784 | Specifies the maximum number of times a given nonce can be | |
1785 | used. | |
1786 | ||
1787 | "nonce_strictness" on|off | |
1788 | Determines if squid requires strict increment-by-1 behaviour | |
1789 | for nonce counts, or just incrementing (off - for use when | |
1790 | useragents generate nonce counts that occasionally miss 1 | |
1791 | (ie, 1,2,4,6)). Default off. | |
1792 | ||
1793 | "check_nonce_count" on|off | |
1794 | This directive if set to off can disable the nonce count check | |
1795 | completely to work around buggy digest qop implementations in | |
1796 | certain mainstream browser versions. Default on to check the | |
1797 | nonce count to protect from authentication replay attacks. | |
1798 | ||
1799 | "post_workaround" on|off | |
1800 | This is a workaround to certain buggy browsers who sends | |
1801 | an incorrect request digest in POST requests when reusing | |
1802 | the same nonce as aquired earlier on a GET request. | |
1803 | ||
1804 | ||
1805 | === NTLM scheme options follow === | |
1806 | ||
1807 | "program" cmdline | |
1808 | Specify the command for the external ntlm authenticator. | |
1809 | Such a program reads exchanged NTLMSSP packets with | |
1810 | the browser via Squid until authentication is completed. | |
1811 | If you use an ntlm authenticator, make sure you have 1 acl | |
1812 | of type proxy_auth. By default, the ntlm authenticator_program | |
1813 | is not used. | |
1814 | ||
1815 | auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth | |
1816 | ||
1817 | "children" numberofchildren | |
1818 | The number of authenticator processes to spawn (no default). | |
1819 | If you start too few Squid will have to wait for them to | |
1820 | process a backlog of credential verifications, slowing it | |
1821 | down. When crendential verifications are done via a (slow) | |
1822 | network you are likely to need lots of authenticator | |
1823 | processes. | |
1824 | auth_param ntlm children 5 | |
1825 | ||
1826 | "max_challenge_reuses" number | |
1827 | The maximum number of times a challenge given by a ntlm | |
1828 | authentication helper can be reused. Increasing this number | |
1829 | increases your exposure to replay attacks on your network. | |
1830 | 0 means use the challenge only once. (disable challenge | |
1831 | caching) See max_ntlm_challenge_lifetime for more information. | |
1832 | auth_param ntlm max_challenge_reuses 0 | |
1833 | ||
1834 | "max_challenge_lifetime" timespan | |
1835 | The maximum time period that a ntlm challenge is reused | |
1836 | over. The actual period will be the minimum of this time | |
1837 | AND the number of reused challenges. | |
1838 | auth_param ntlm max_challenge_lifetime 2 minutes | |
1839 | ||
1840 | NOCOMMENT_START | |
1841 | #Recommended minimum configuration: | |
1842 | #auth_param digest program <uncomment and complete this line> | |
1843 | #auth_param digest children 5 | |
1844 | #auth_param digest realm Squid proxy-caching web server | |
1845 | #auth_param digest nonce_garbage_interval 5 minutes | |
1846 | #auth_param digest nonce_max_duration 30 minutes | |
1847 | #auth_param digest nonce_max_count 50 | |
1848 | #auth_param ntlm program <uncomment and complete this line to activate> | |
1849 | #auth_param ntlm children 5 | |
1850 | #auth_param ntlm max_challenge_reuses 0 | |
1851 | #auth_param ntlm max_challenge_lifetime 2 minutes | |
1852 | #auth_param basic program <uncomment and complete this line> | |
1853 | auth_param basic children 5 | |
1854 | auth_param basic realm Squid proxy-caching web server | |
1855 | auth_param basic credentialsttl 2 hours | |
1856 | NOCOMMENT_END | |
1857 | DOC_END | |
1858 | ||
1859 | NAME: authenticate_cache_garbage_interval | |
1860 | TYPE: time_t | |
1861 | DEFAULT: 1 hour | |
1862 | LOC: Config.authenticateGCInterval | |
1863 | DOC_START | |
1864 | The time period between garbage collection across the | |
1865 | username cache. This is a tradeoff between memory utilisation | |
1866 | (long intervals - say 2 days) and CPU (short intervals - | |
1867 | say 1 minute). Only change if you have good reason to. | |
1868 | DOC_END | |
1869 | ||
1870 | NAME: authenticate_ttl | |
1871 | TYPE: time_t | |
1872 | DEFAULT: 1 hour | |
1873 | LOC: Config.authenticateTTL | |
1874 | DOC_START | |
1875 | The time a user & their credentials stay in the logged in | |
1876 | user cache since their last request. When the garbage | |
1877 | interval passes, all user credentials that have passed their | |
1878 | TTL are removed from memory. | |
1879 | DOC_END | |
1880 | ||
1881 | NAME: authenticate_ip_ttl | |
1882 | TYPE: time_t | |
1883 | LOC: Config.authenticateIpTTL | |
1884 | DEFAULT: 0 seconds | |
1885 | DOC_START | |
1886 | If you use proxy authentication and the 'max_user_ip' ACL, | |
1887 | this directive controls how long Squid remembers the IP | |
1888 | addresses associated with each user. Use a small value | |
1889 | (e.g., 60 seconds) if your users might change addresses | |
1890 | quickly, as is the case with dialups. You might be safe | |
1891 | using a larger value (e.g., 2 hours) in a corporate LAN | |
1892 | environment with relatively static address assignments. | |
1893 | DOC_END | |
1894 | ||
1895 | NAME: external_acl_type | |
1896 | TYPE: externalAclHelper | |
1897 | LOC: Config.externalAclHelperList | |
1898 | DEFAULT: none | |
1899 | DOC_START | |
1900 | This option defines external acl classes using a helper program | |
1901 | to look up the status | |
1902 | ||
1903 | external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..] | |
1904 | ||
1905 | Options: | |
1906 | ||
1907 | ttl=n TTL in seconds for cached results (defaults to 3600 | |
1908 | for 1 hour) | |
1909 | negative_ttl=n | |
1910 | TTL for cached negative lookups (default same | |
1911 | as ttl) | |
1912 | children=n Number of acl helper processes spawn to service | |
1913 | external acl lookups of this type. | |
1914 | concurrency=n concurrency level per process. Use 0 for old style | |
1915 | helpers who can only process a single request at a | |
1916 | time. | |
1917 | cache=n result cache size, 0 is unbounded (default) | |
1918 | grace=n Percentage remaining of TTL where a refresh of a | |
1919 | cached entry should be initiated without needing to | |
1920 | wait for a new reply. (default 0 for no grace period) | |
1921 | ||
1922 | FORMAT specifications | |
1923 | ||
1924 | %LOGIN Authenticated user login name | |
1925 | %IDENT Ident user name | |
1926 | %SRC Client IP | |
1927 | %SRCPORT Client source port | |
1928 | %DST Requested host | |
1929 | %PROTO Requested protocol | |
1930 | %PORT Requested port | |
1931 | %PATH Requested URL path | |
1932 | %METHOD Request method | |
1933 | %MYADDR Squid interface address | |
1934 | %MYPORT Squid http_port number | |
1935 | %USER_CERT_xx SSL User certificate attribute xx | |
1936 | %USER_CA_xx SSL User certificate CA attribute xx | |
1937 | %{Header} HTTP request header | |
1938 | %{Hdr:member} HTTP request header list member | |
1939 | %{Hdr:;member} | |
1940 | HTTP request header list member using ; as | |
1941 | list separator. ; can be any non-alphanumeric | |
1942 | character. | |
1943 | ||
1944 | In addition, any string specified in the referencing acl will | |
1945 | also be included in the helper request line, after the specified | |
1946 | formats (see the "acl external" directive) | |
1947 | ||
1948 | The helper receives lines per the above format specification, | |
1949 | and returns lines starting with OK or ERR indicating the validity | |
1950 | of the request and optionally followed by additional keywords with | |
1951 | more details. | |
1952 | ||
1953 | General result syntax: | |
1954 | ||
1955 | OK/ERR keyword=value ... | |
1956 | ||
1957 | Defined keywords: | |
1958 | ||
1959 | user= The users name (login) | |
1960 | password= The users password (for login= cache_peer option) | |
1961 | message= Message describing the reason. Available as %o | |
1962 | in error pages | |
1963 | tag= Apply a tag to a request (for both ERR and OK results) | |
1964 | Only sets a tag, does not alter existing tags. | |
1965 | log= String to be logged in access.log. Available as | |
1966 | %ea in logformat specifications | |
1967 | ||
1968 | Keyword values need to be enclosed in quotes if they may | |
1969 | contain whitespace, or the whitespace escaped using \. Any | |
1970 | quotes or \ characters within the keyword value must be \ | |
1971 | escaped. | |
1972 | DOC_END | |
1973 | ||
1974 | COMMENT_START | |
1975 | OPTIONS FOR TUNING THE CACHE | |
1976 | ----------------------------------------------------------------------------- | |
1977 | COMMENT_END | |
1978 | ||
1979 | NAME: wais_relay_host | |
1980 | TYPE: string | |
1981 | DEFAULT: none | |
1982 | LOC: Config.Wais.relayHost | |
1983 | DOC_NONE | |
1984 | ||
1985 | NAME: wais_relay_port | |
1986 | TYPE: ushort | |
1987 | DEFAULT: 0 | |
1988 | LOC: Config.Wais.relayPort | |
1989 | DOC_START | |
1990 | Relay WAIS request to host (1st arg) at port (2 arg). | |
1991 | DOC_END | |
1992 | ||
1993 | ||
1994 | NAME: request_header_max_size | |
1995 | COMMENT: (KB) | |
1996 | TYPE: b_size_t | |
1997 | DEFAULT: 10 KB | |
1998 | LOC: Config.maxRequestHeaderSize | |
1999 | DOC_START | |
2000 | This specifies the maximum size for HTTP headers in a request. | |
2001 | Request headers are usually relatively small (about 512 bytes). | |
2002 | Placing a limit on the request header size will catch certain | |
2003 | bugs (for example with persistent connections) and possibly | |
2004 | buffer-overflow or denial-of-service attacks. | |
2005 | DOC_END | |
2006 | ||
2007 | NAME: request_body_max_size | |
2008 | COMMENT: (KB) | |
2009 | TYPE: b_size_t | |
2010 | DEFAULT: 0 KB | |
2011 | LOC: Config.maxRequestBodySize | |
2012 | DOC_START | |
2013 | This specifies the maximum size for an HTTP request body. | |
2014 | In other words, the maximum size of a PUT/POST request. | |
2015 | A user who attempts to send a request with a body larger | |
2016 | than this limit receives an "Invalid Request" error message. | |
2017 | If you set this parameter to a zero (the default), there will | |
2018 | be no limit imposed. | |
2019 | DOC_END | |
2020 | ||
2021 | NAME: refresh_pattern | |
2022 | TYPE: refreshpattern | |
2023 | LOC: Config.Refresh | |
2024 | DEFAULT: none | |
2025 | DOC_START | |
2026 | usage: refresh_pattern [-i] regex min percent max [options] | |
2027 | ||
2028 | By default, regular expressions are CASE-SENSITIVE. To make | |
2029 | them case-insensitive, use the -i option. | |
2030 | ||
2031 | 'Min' is the time (in minutes) an object without an explicit | |
2032 | expiry time should be considered fresh. The recommended | |
2033 | value is 0, any higher values may cause dynamic applications | |
2034 | to be erroneously cached unless the application designer | |
2035 | has taken the appropriate actions. | |
2036 | ||
2037 | 'Percent' is a percentage of the objects age (time since last | |
2038 | modification age) an object without explicit expiry time | |
2039 | will be considered fresh. | |
2040 | ||
2041 | 'Max' is an upper limit on how long objects without an explicit | |
2042 | expiry time will be considered fresh. | |
2043 | ||
2044 | options: override-expire | |
2045 | override-lastmod | |
2046 | reload-into-ims | |
2047 | ignore-reload | |
2048 | ||
2049 | override-expire enforces min age even if the server | |
2050 | sent a Expires: header. Doing this VIOLATES the HTTP | |
2051 | standard. Enabling this feature could make you liable | |
2052 | for problems which it causes. | |
2053 | ||
2054 | override-lastmod enforces min age even on objects | |
2055 | that was modified recently. | |
2056 | ||
2057 | reload-into-ims changes client no-cache or ``reload'' | |
2058 | to If-Modified-Since requests. Doing this VIOLATES the | |
2059 | HTTP standard. Enabling this feature could make you | |
2060 | liable for problems which it causes. | |
2061 | ||
2062 | ignore-reload ignores a client no-cache or ``reload'' | |
2063 | header. Doing this VIOLATES the HTTP standard. Enabling | |
2064 | this feature could make you liable for problems which | |
2065 | it causes. | |
2066 | ||
2067 | Basically a cached object is: | |
2068 | ||
2069 | FRESH if expires < now, else STALE | |
2070 | STALE if age > max | |
2071 | FRESH if lm-factor < percent, else STALE | |
2072 | FRESH if age < min | |
2073 | else STALE | |
2074 | ||
2075 | The refresh_pattern lines are checked in the order listed here. | |
2076 | The first entry which matches is used. If none of the entries | |
2077 | match, then the default will be used. | |
2078 | ||
2079 | Note, you must uncomment all the default lines if you want | |
2080 | to change one. The default setting is only active if none is | |
2081 | used. | |
2082 | ||
2083 | Suggested default: | |
2084 | NOCOMMENT_START | |
2085 | refresh_pattern ^ftp: 1440 20% 10080 | |
2086 | refresh_pattern ^gopher: 1440 0% 1440 | |
2087 | refresh_pattern . 0 20% 4320 | |
2088 | NOCOMMENT_END | |
2089 | DOC_END | |
2090 | ||
2091 | NAME: quick_abort_min | |
2092 | COMMENT: (KB) | |
2093 | TYPE: kb_size_t | |
2094 | DEFAULT: 16 KB | |
2095 | LOC: Config.quickAbort.min | |
2096 | DOC_NONE | |
2097 | ||
2098 | NAME: quick_abort_max | |
2099 | COMMENT: (KB) | |
2100 | TYPE: kb_size_t | |
2101 | DEFAULT: 16 KB | |
2102 | LOC: Config.quickAbort.max | |
2103 | DOC_NONE | |
2104 | ||
2105 | NAME: quick_abort_pct | |
2106 | COMMENT: (percent) | |
2107 | TYPE: int | |
2108 | DEFAULT: 95 | |
2109 | LOC: Config.quickAbort.pct | |
2110 | DOC_START | |
2111 | The cache by default continues downloading aborted requests | |
2112 | which are almost completed (less than 16 KB remaining). This | |
2113 | may be undesirable on slow (e.g. SLIP) links and/or very busy | |
2114 | caches. Impatient users may tie up file descriptors and | |
2115 | bandwidth by repeatedly requesting and immediately aborting | |
2116 | downloads. | |
2117 | ||
2118 | When the user aborts a request, Squid will check the | |
2119 | quick_abort values to the amount of data transfered until | |
2120 | then. | |
2121 | ||
2122 | If the transfer has less than 'quick_abort_min' KB remaining, | |
2123 | it will finish the retrieval. | |
2124 | ||
2125 | If the transfer has more than 'quick_abort_max' KB remaining, | |
2126 | it will abort the retrieval. | |
2127 | ||
2128 | If more than 'quick_abort_pct' of the transfer has completed, | |
2129 | it will finish the retrieval. | |
2130 | ||
2131 | If you do not want any retrieval to continue after the client | |
2132 | has aborted, set both 'quick_abort_min' and 'quick_abort_max' | |
2133 | to '0 KB'. | |
2134 | ||
2135 | If you want retrievals to always continue if they are being | |
2136 | cached then set 'quick_abort_min' to '-1 KB'. | |
2137 | DOC_END | |
2138 | ||
2139 | NAME: read_ahead_gap | |
2140 | COMMENT: buffer-size | |
2141 | TYPE: kb_size_t | |
2142 | LOC: Config.readAheadGap | |
2143 | DEFAULT: 16 KB | |
2144 | DOC_START | |
2145 | The amount of data the cache will buffer ahead of what has been | |
2146 | sent to the client when retrieving an object from another server. | |
2147 | DOC_END | |
2148 | ||
2149 | NAME: negative_ttl | |
2150 | COMMENT: time-units | |
2151 | TYPE: time_t | |
2152 | LOC: Config.negativeTtl | |
2153 | DEFAULT: 5 minutes | |
2154 | DOC_START | |
2155 | Time-to-Live (TTL) for failed requests. Certain types of | |
2156 | failures (such as "connection refused" and "404 Not Found") are | |
2157 | negatively-cached for a configurable amount of time. The | |
2158 | default is 5 minutes. Note that this is different from | |
2159 | negative caching of DNS lookups. | |
2160 | DOC_END | |
2161 | ||
2162 | ||
2163 | NAME: positive_dns_ttl | |
2164 | COMMENT: time-units | |
2165 | TYPE: time_t | |
2166 | LOC: Config.positiveDnsTtl | |
2167 | DEFAULT: 6 hours | |
2168 | DOC_START | |
2169 | Time-to-Live (TTL) for positive caching of successful DNS lookups. | |
2170 | Default is 6 hours (360 minutes). If you want to minimize the | |
2171 | use of Squid's ipcache, set this to 1, not 0. | |
2172 | DOC_END | |
2173 | ||
2174 | ||
2175 | NAME: negative_dns_ttl | |
2176 | COMMENT: time-units | |
2177 | TYPE: time_t | |
2178 | LOC: Config.negativeDnsTtl | |
2179 | DEFAULT: 5 minutes | |
2180 | DOC_START | |
2181 | Time-to-Live (TTL) for negative caching of failed DNS lookups. | |
2182 | DOC_END | |
2183 | ||
2184 | NAME: range_offset_limit | |
2185 | COMMENT: (bytes) | |
2186 | TYPE: b_size_t | |
2187 | LOC: Config.rangeOffsetLimit | |
2188 | DEFAULT: 0 KB | |
2189 | DOC_START | |
2190 | Sets a upper limit on how far into the the file a Range request | |
2191 | may be to cause Squid to prefetch the whole file. If beyond this | |
2192 | limit then Squid forwards the Range request as it is and the result | |
2193 | is NOT cached. | |
2194 | ||
2195 | This is to stop a far ahead range request (lets say start at 17MB) | |
2196 | from making Squid fetch the whole object up to that point before | |
2197 | sending anything to the client. | |
2198 | ||
2199 | A value of -1 causes Squid to always fetch the object from the | |
2200 | beginning so that it may cache the result. (2.0 style) | |
2201 | ||
2202 | A value of 0 causes Squid to never fetch more than the | |
2203 | client requested. (default) | |
2204 | DOC_END | |
2205 | ||
2206 | ||
2207 | COMMENT_START | |
2208 | TIMEOUTS | |
2209 | ----------------------------------------------------------------------------- | |
2210 | COMMENT_END | |
2211 | ||
2212 | NAME: connect_timeout | |
2213 | COMMENT: time-units | |
2214 | TYPE: time_t | |
2215 | LOC: Config.Timeout.connect | |
2216 | DEFAULT: 2 minutes | |
2217 | DOC_START | |
2218 | Some systems (notably Linux) can not be relied upon to properly | |
2219 | time out connect(2) requests. Therefore the Squid process | |
2220 | enforces its own timeout on server connections. This parameter | |
2221 | specifies how long to wait for the connect to complete. The | |
2222 | default is two minutes (120 seconds). | |
2223 | DOC_END | |
2224 | ||
2225 | NAME: peer_connect_timeout | |
2226 | COMMENT: time-units | |
2227 | TYPE: time_t | |
2228 | LOC: Config.Timeout.peer_connect | |
2229 | DEFAULT: 30 seconds | |
2230 | DOC_START | |
2231 | This parameter specifies how long to wait for a pending TCP | |
2232 | connection to a peer cache. The default is 30 seconds. You | |
2233 | may also set different timeout values for individual neighbors | |
2234 | with the 'connect-timeout' option on a 'cache_peer' line. | |
2235 | DOC_END | |
2236 | ||
2237 | NAME: read_timeout | |
2238 | COMMENT: time-units | |
2239 | TYPE: time_t | |
2240 | LOC: Config.Timeout.read | |
2241 | DEFAULT: 15 minutes | |
2242 | DOC_START | |
2243 | The read_timeout is applied on server-side connections. After | |
2244 | each successful read(), the timeout will be extended by this | |
2245 | amount. If no data is read again after this amount of time, | |
2246 | the request is aborted and logged with ERR_READ_TIMEOUT. The | |
2247 | default is 15 minutes. | |
2248 | DOC_END | |
2249 | ||
2250 | ||
2251 | NAME: request_timeout | |
2252 | TYPE: time_t | |
2253 | LOC: Config.Timeout.request | |
2254 | DEFAULT: 5 minutes | |
2255 | DOC_START | |
2256 | How long to wait for an HTTP request after initial | |
2257 | connection establishment. | |
2258 | DOC_END | |
2259 | ||
2260 | ||
2261 | NAME: persistent_request_timeout | |
2262 | TYPE: time_t | |
2263 | LOC: Config.Timeout.persistent_request | |
2264 | DEFAULT: 1 minute | |
2265 | DOC_START | |
2266 | How long to wait for the next HTTP request on a persistent | |
2267 | connection after the previous request completes. | |
2268 | DOC_END | |
2269 | ||
2270 | ||
2271 | NAME: client_lifetime | |
2272 | COMMENT: time-units | |
2273 | TYPE: time_t | |
2274 | LOC: Config.Timeout.lifetime | |
2275 | DEFAULT: 1 day | |
2276 | DOC_START | |
2277 | The maximum amount of time that a client (browser) is allowed to | |
2278 | remain connected to the cache process. This protects the Cache | |
2279 | from having a lot of sockets (and hence file descriptors) tied up | |
2280 | in a CLOSE_WAIT state from remote clients that go away without | |
2281 | properly shutting down (either because of a network failure or | |
2282 | because of a poor client implementation). The default is one | |
2283 | day, 1440 minutes. | |
2284 | ||
2285 | NOTE: The default value is intended to be much larger than any | |
2286 | client would ever need to be connected to your cache. You | |
2287 | should probably change client_lifetime only as a last resort. | |
2288 | If you seem to have many client connections tying up | |
2289 | filedescriptors, we recommend first tuning the read_timeout, | |
2290 | request_timeout, persistent_request_timeout and quick_abort values. | |
2291 | DOC_END | |
2292 | ||
2293 | NAME: half_closed_clients | |
2294 | TYPE: onoff | |
2295 | LOC: Config.onoff.half_closed_clients | |
2296 | DEFAULT: on | |
2297 | DOC_START | |
2298 | Some clients may shutdown the sending side of their TCP | |
2299 | connections, while leaving their receiving sides open. Sometimes, | |
2300 | Squid can not tell the difference between a half-closed and a | |
2301 | fully-closed TCP connection. By default, half-closed client | |
2302 | connections are kept open until a read(2) or write(2) on the | |
2303 | socket returns an error. Change this option to 'off' and Squid | |
2304 | will immediately close client connections when read(2) returns | |
2305 | "no more data to read." | |
2306 | DOC_END | |
2307 | ||
2308 | NAME: pconn_timeout | |
2309 | TYPE: time_t | |
2310 | LOC: Config.Timeout.pconn | |
2311 | DEFAULT: 120 seconds | |
2312 | DOC_START | |
2313 | Timeout for idle persistent connections to servers and other | |
2314 | proxies. | |
2315 | DOC_END | |
2316 | ||
2317 | NAME: ident_timeout | |
2318 | TYPE: time_t | |
2319 | IFDEF: USE_IDENT | |
2320 | LOC: Config.Timeout.ident | |
2321 | DEFAULT: 10 seconds | |
2322 | DOC_START | |
2323 | Maximum time to wait for IDENT lookups to complete. | |
2324 | ||
2325 | If this is too high, and you enabled IDENT lookups from untrusted | |
2326 | users, then you might be susceptible to denial-of-service by having | |
2327 | many ident requests going at once. | |
2328 | DOC_END | |
2329 | ||
2330 | ||
2331 | NAME: shutdown_lifetime | |
2332 | COMMENT: time-units | |
2333 | TYPE: time_t | |
2334 | LOC: Config.shutdownLifetime | |
2335 | DEFAULT: 30 seconds | |
2336 | DOC_START | |
2337 | When SIGTERM or SIGHUP is received, the cache is put into | |
2338 | "shutdown pending" mode until all active sockets are closed. | |
2339 | This value is the lifetime to set for all open descriptors | |
2340 | during shutdown mode. Any active clients after this many | |
2341 | seconds will receive a 'timeout' message. | |
2342 | DOC_END | |
2343 | ||
2344 | COMMENT_START | |
2345 | ACCESS CONTROLS | |
2346 | ----------------------------------------------------------------------------- | |
2347 | COMMENT_END | |
2348 | ||
2349 | NAME: acl | |
2350 | TYPE: acl | |
2351 | LOC: Config.aclList | |
2352 | DEFAULT: none | |
2353 | DOC_START | |
2354 | Defining an Access List | |
2355 | ||
2356 | acl aclname acltype string1 ... | |
2357 | acl aclname acltype "file" ... | |
2358 | ||
2359 | when using "file", the file should contain one item per line | |
2360 | ||
2361 | acltype is one of the types described below | |
2362 | ||
2363 | By default, regular expressions are CASE-SENSITIVE. To make | |
2364 | them case-insensitive, use the -i option. | |
2365 | ||
2366 | acl aclname src ip-address/netmask ... (clients IP address) | |
2367 | acl aclname src addr1-addr2/netmask ... (range of addresses) | |
2368 | acl aclname dst ip-address/netmask ... (URL host's IP address) | |
2369 | acl aclname myip ip-address/netmask ... (local socket IP address) | |
2370 | ||
2371 | acl aclname srcdomain .foo.com ... # reverse lookup, client IP | |
2372 | acl aclname dstdomain .foo.com ... # Destination server from URL | |
2373 | acl aclname srcdom_regex [-i] xxx ... # regex matching client name | |
2374 | acl aclname dstdom_regex [-i] xxx ... # regex matching server | |
2375 | # For dstdomain and dstdom_regex a reverse lookup is tried if a IP | |
2376 | # based URL is used. The name "none" is used if the reverse lookup | |
2377 | # fails. | |
2378 | ||
2379 | acl aclname time [day-abbrevs] [h1:m1-h2:m2] | |
2380 | day-abbrevs: | |
2381 | S - Sunday | |
2382 | M - Monday | |
2383 | T - Tuesday | |
2384 | W - Wednesday | |
2385 | H - Thursday | |
2386 | F - Friday | |
2387 | A - Saturday | |
2388 | h1:m1 must be less than h2:m2 | |
2389 | acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL | |
2390 | acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path | |
2391 | acl aclname port 80 70 21 ... | |
2392 | acl aclname port 0-1024 ... # ranges allowed | |
2393 | acl aclname myport 3128 ... # (local socket TCP port) | |
2394 | acl aclname proto HTTP FTP ... | |
2395 | acl aclname method GET POST ... | |
2396 | acl aclname browser [-i] regexp ... | |
2397 | # pattern match on User-Agent header | |
2398 | acl aclname referer_regex [-i] regexp ... | |
2399 | # pattern match on Referer header | |
2400 | # Referer is highly unreliable, so use with care | |
2401 | acl aclname ident username ... | |
2402 | acl aclname ident_regex [-i] pattern ... | |
2403 | # string match on ident output. | |
2404 | # use REQUIRED to accept any non-null ident. | |
2405 | acl aclname src_as number ... | |
2406 | acl aclname dst_as number ... | |
2407 | # Except for access control, AS numbers can be used for | |
2408 | # routing of requests to specific caches. Here's an | |
2409 | # example for routing all requests for AS#1241 and only | |
2410 | # those to mycache.mydomain.net: | |
2411 | # acl asexample dst_as 1241 | |
2412 | # cache_peer_access mycache.mydomain.net allow asexample | |
2413 | # cache_peer_access mycache_mydomain.net deny all | |
2414 | ||
2415 | acl aclname proxy_auth [-i] username ... | |
2416 | acl aclname proxy_auth_regex [-i] pattern ... | |
2417 | # list of valid usernames | |
2418 | # use REQUIRED to accept any valid username. | |
2419 | # | |
2420 | # NOTE: when a Proxy-Authentication header is sent but it is not | |
2421 | # needed during ACL checking the username is NOT logged | |
2422 | # in access.log. | |
2423 | # | |
2424 | # NOTE: proxy_auth requires a EXTERNAL authentication program | |
2425 | # to check username/password combinations (see | |
2426 | # auth_param directive). | |
2427 | # | |
2428 | # NOTE: proxy_auth can't be used in a transparent proxy as | |
2429 | # the browser needs to be configured for using a proxy in order | |
2430 | # to respond to proxy authentication. | |
2431 | ||
2432 | acl aclname snmp_community string ... | |
2433 | # A community string to limit access to your SNMP Agent | |
2434 | # Example: | |
2435 | # | |
2436 | # acl snmppublic snmp_community public | |
2437 | ||
2438 | acl aclname maxconn number | |
2439 | # This will be matched when the client's IP address has | |
2440 | # more than <number> HTTP connections established. | |
2441 | ||
2442 | acl aclname max_user_ip [-s] number | |
2443 | # This will be matched when the user attempts to log in from more | |
2444 | # than <number> different ip addresses. The authenticate_ip_ttl | |
2445 | # parameter controls the timeout on the ip entries. | |
2446 | # If -s is specified then the limit is strict, denying browsing | |
2447 | # from any further IP addresses until the ttl has expired. Without | |
2448 | # -s Squid will just annoy the user by "randomly" denying requests. | |
2449 | # (the counter is then reset each time the limit is reached and a | |
2450 | # request is denied) | |
2451 | # NOTE: in acceleration mode or where there is mesh of child proxies, | |
2452 | # clients may appear to come from multiple addresses if they are | |
2453 | # going through proxy farms, so a limit of 1 may cause user problems. | |
2454 | ||
2455 | acl aclname req_mime_type mime-type1 ... | |
2456 | # regex match agains the mime type of the request generated | |
2457 | # by the client. Can be used to detect file upload or some | |
2458 | # types HTTP tunelling requests. | |
2459 | # NOTE: This does NOT match the reply. You cannot use this | |
2460 | # to match the returned file type. | |
2461 | ||
2462 | acl aclname rep_mime_type mime-type1 ... | |
2463 | # regex match against the mime type of the reply recieved by | |
2464 | # squid. Can be used to detect file download or some | |
2465 | # types HTTP tunelling requests. | |
2466 | # NOTE: This has no effect in http_access rules. It only has | |
2467 | # effect in rules that affect the reply data stream such as | |
2468 | # http_reply_access. | |
2469 | ||
2470 | acl acl_name external class_name [arguments...] | |
2471 | # external ACL lookup via a helper class defined by the | |
2472 | # external_acl_type directive. | |
2473 | ||
2474 | acl aclname user_cert attribute values... | |
2475 | # match against attributes in a user SSL certificate | |
2476 | # attribute is one of DN/C/O/CN/L/ST | |
2477 | ||
2478 | acl aclname ca_cert attribute values... | |
2479 | # match against attributes a users issuing CA SSL certificate | |
2480 | # attribute is one of DN/C/O/CN/L/ST | |
2481 | ||
2482 | acl aclname ext_user username ... | |
2483 | acl aclname ext_user_regex [-i] pattern ... | |
2484 | # string match on username returned by external acl processing | |
2485 | # use REQUIRED to accept any non-null user name. | |
2486 | ||
2487 | Examples: | |
2488 | acl myexample dst_as 1241 | |
2489 | acl password proxy_auth REQUIRED | |
2490 | acl fileupload req_mime_type -i ^multipart/form-data$ | |
2491 | acl javascript rep_mime_type -i ^application/x-javascript$ | |
2492 | ||
2493 | NOCOMMENT_START | |
2494 | #Recommended minimum configuration: | |
2495 | acl all src 0.0.0.0/0.0.0.0 | |
2496 | acl manager proto cache_object | |
2497 | acl localhost src 127.0.0.1/255.255.255.255 | |
2498 | acl to_localhost dst 127.0.0.0/8 | |
2499 | acl SSL_ports port 443 563 | |
2500 | acl Safe_ports port 80 # http | |
2501 | acl Safe_ports port 21 # ftp | |
2502 | acl Safe_ports port 443 563 # https, snews | |
2503 | acl Safe_ports port 70 # gopher | |
2504 | acl Safe_ports port 210 # wais | |
2505 | acl Safe_ports port 1025-65535 # unregistered ports | |
2506 | acl Safe_ports port 280 # http-mgmt | |
2507 | acl Safe_ports port 488 # gss-http | |
2508 | acl Safe_ports port 591 # filemaker | |
2509 | acl Safe_ports port 777 # multiling http | |
2510 | acl CONNECT method CONNECT | |
2511 | NOCOMMENT_END | |
2512 | DOC_END | |
2513 | ||
2514 | NAME: http_access | |
2515 | TYPE: acl_access | |
2516 | LOC: Config.accessList.http | |
2517 | DEFAULT: none | |
2518 | DEFAULT_IF_NONE: deny all | |
2519 | DOC_START | |
2520 | Allowing or Denying access based on defined access lists | |
2521 | ||
2522 | Access to the HTTP port: | |
2523 | http_access allow|deny [!]aclname ... | |
2524 | ||
2525 | NOTE on default values: | |
2526 | ||
2527 | If there are no "access" lines present, the default is to deny | |
2528 | the request. | |
2529 | ||
2530 | If none of the "access" lines cause a match, the default is the | |
2531 | opposite of the last line in the list. If the last line was | |
2532 | deny, then the default is allow. Conversely, if the last line | |
2533 | is allow, the default will be deny. For these reasons, it is a | |
2534 | good idea to have an "deny all" or "allow all" entry at the end | |
2535 | of your access lists to avoid potential confusion. | |
2536 | ||
2537 | NOCOMMENT_START | |
2538 | #Recommended minimum configuration: | |
2539 | # | |
2540 | # Only allow cachemgr access from localhost | |
2541 | http_access allow manager localhost | |
2542 | http_access deny manager | |
2543 | # Deny requests to unknown ports | |
2544 | http_access deny !Safe_ports | |
2545 | # Deny CONNECT to other than SSL ports | |
2546 | http_access deny CONNECT !SSL_ports | |
2547 | # | |
2548 | # We strongly recommend to uncomment the following to protect innocent | |
2549 | # web applications running on the proxy server who think that the only | |
2550 | # one who can access services on "localhost" is a local user | |
2551 | #http_access deny to_localhost | |
2552 | # | |
2553 | # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS | |
2554 | ||
2555 | # Example rule allowing access from your local networks. Adapt | |
2556 | # to list your (internal) IP networks from where browsing should | |
2557 | # be allowed | |
2558 | #acl our_networks src 192.168.1.0/24 192.168.2.0/24 | |
2559 | #http_access allow our_networks | |
2560 | ||
2561 | # And finally deny all other access to this proxy | |
2562 | http_access deny all | |
2563 | NOCOMMENT_END | |
2564 | DOC_END | |
2565 | ||
2566 | NAME: http_reply_access | |
2567 | TYPE: acl_access | |
2568 | LOC: Config.accessList.reply | |
2569 | DEFAULT: none | |
2570 | DEFAULT_IF_NONE: allow all | |
2571 | DOC_START | |
2572 | Allow replies to client requests. This is complementary to http_access. | |
2573 | ||
2574 | http_reply_access allow|deny [!] aclname ... | |
2575 | ||
2576 | NOTE: if there are no access lines present, the default is to allow | |
2577 | all replies | |
2578 | ||
2579 | If none of the access lines cause a match, then the opposite of the | |
2580 | last line will apply. Thus it is good practice to end the rules | |
2581 | with an "allow all" or "deny all" entry. | |
2582 | ||
2583 | NOCOMMENT_START | |
2584 | #Recommended minimum configuration: | |
2585 | # | |
2586 | # Insert your own rules here. | |
2587 | # | |
2588 | # | |
2589 | # and finally allow by default | |
2590 | http_reply_access allow all | |
2591 | NOCOMMENT_END | |
2592 | DOC_END | |
2593 | ||
2594 | ||
2595 | NAME: icp_access | |
2596 | TYPE: acl_access | |
2597 | LOC: Config.accessList.icp | |
2598 | DEFAULT: none | |
2599 | DEFAULT_IF_NONE: deny all | |
2600 | DOC_START | |
2601 | Allowing or Denying access to the ICP port based on defined | |
2602 | access lists | |
2603 | ||
2604 | icp_access allow|deny [!]aclname ... | |
2605 | ||
2606 | See http_access for details | |
2607 | ||
2608 | NOCOMMENT_START | |
2609 | #Allow ICP queries from everyone | |
2610 | icp_access allow all | |
2611 | NOCOMMENT_END | |
2612 | DOC_END | |
2613 | ||
2614 | ||
2615 | NAME: miss_access | |
2616 | TYPE: acl_access | |
2617 | LOC: Config.accessList.miss | |
2618 | DEFAULT: none | |
2619 | DOC_START | |
2620 | Use to force your neighbors to use you as a sibling instead of | |
2621 | a parent. For example: | |
2622 | ||
2623 | acl localclients src 172.16.0.0/16 | |
2624 | miss_access allow localclients | |
2625 | miss_access deny !localclients | |
2626 | ||
2627 | This means that only your local clients are allowed to fetch | |
2628 | MISSES and all other clients can only fetch HITS. | |
2629 | ||
2630 | By default, allow all clients who passed the http_access rules | |
2631 | to fetch MISSES from us. | |
2632 | ||
2633 | NOCOMMENT_START | |
2634 | #Default setting: | |
2635 | # miss_access allow all | |
2636 | NOCOMMENT_END | |
2637 | DOC_END | |
2638 | ||
2639 | ||
2640 | NAME: cache_peer_access | |
2641 | TYPE: peer_access | |
2642 | DEFAULT: none | |
2643 | LOC: none | |
2644 | DOC_START | |
2645 | Similar to 'cache_peer_domain' but provides more flexibility by | |
2646 | using ACL elements. | |
2647 | ||
2648 | cache_peer_access cache-host allow|deny [!]aclname ... | |
2649 | ||
2650 | The syntax is identical to 'http_access' and the other lists of | |
2651 | ACL elements. See the comments for 'http_access' below, or | |
2652 | the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html). | |
2653 | DOC_END | |
2654 | ||
2655 | NAME: ident_lookup_access | |
2656 | TYPE: acl_access | |
2657 | IFDEF: USE_IDENT | |
2658 | DEFAULT: none | |
2659 | DEFAULT_IF_NONE: deny all | |
2660 | LOC: Config.accessList.identLookup | |
2661 | DOC_START | |
2662 | A list of ACL elements which, if matched, cause an ident | |
2663 | (RFC 931) lookup to be performed for this request. For | |
2664 | example, you might choose to always perform ident lookups | |
2665 | for your main multi-user Unix boxes, but not for your Macs | |
2666 | and PCs. By default, ident lookups are not performed for | |
2667 | any requests. | |
2668 | ||
2669 | To enable ident lookups for specific client addresses, you | |
2670 | can follow this example: | |
2671 | ||
2672 | acl ident_aware_hosts src 198.168.1.0/255.255.255.0 | |
2673 | ident_lookup_access allow ident_aware_hosts | |
2674 | ident_lookup_access deny all | |
2675 | ||
2676 | Only src type ACL checks are fully supported. A src_domain | |
2677 | ACL might work at times, but it will not always provide | |
2678 | the correct result. | |
2679 | DOC_END | |
2680 | ||
2681 | NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoing_dscp | |
2682 | TYPE: acl_tos | |
2683 | DEFAULT: none | |
2684 | LOC: Config.accessList.outgoing_tos | |
2685 | DOC_START | |
2686 | Allows you to select a TOS/Diffserv value to mark outgoing | |
2687 | connections with, based on the username or source address | |
2688 | making the request. | |
2689 | ||
2690 | tcp_outgoing_tos ds-field [!]aclname ... | |
2691 | ||
2692 | Example where normal_service_net uses the TOS value 0x00 | |
2693 | and normal_service_net uses 0x20 | |
2694 | ||
2695 | acl normal_service_net src 10.0.0.0/255.255.255.0 | |
2696 | acl good_service_net src 10.0.1.0/255.255.255.0 | |
2697 | tcp_outgoing_tos 0x00 normal_service_net 0x00 | |
2698 | tcp_outgoing_tos 0x20 good_service_net | |
2699 | ||
2700 | TOS/DSCP values really only have local significance - so you should | |
2701 | know what you're specifying. For more, see RFC 2474 | |
2702 | ||
2703 | The TOS/DSCP byte must be exactly that - a byte, value 0 - 255, or | |
2704 | "default" to use whatever default your host has. | |
2705 | ||
2706 | Processing proceeds in the order specified, and stops at first fully | |
2707 | matching line. | |
2708 | DOC_END | |
2709 | ||
2710 | NAME: tcp_outgoing_address | |
2711 | TYPE: acl_address | |
2712 | DEFAULT: none | |
2713 | LOC: Config.accessList.outgoing_address | |
2714 | DOC_START | |
2715 | Allows you to map requests to different outgoing IP addresses | |
2716 | based on the username or sourceaddress of the user making | |
2717 | the request. | |
2718 | ||
2719 | tcp_outgoing_address ipaddr [[!]aclname] ... | |
2720 | ||
2721 | Example where requests from 10.0.0.0/24 will be forwareded | |
2722 | with source address 10.1.0.1, 10.0.2.0/24 forwarded with | |
2723 | source address 10.1.0.2 and the rest will be forwarded with | |
2724 | source address 10.1.0.3. | |
2725 | ||
2726 | acl normal_service_net src 10.0.0.0/255.255.255.0 | |
2727 | acl good_service_net src 10.0.1.0/255.255.255.0 | |
2728 | tcp_outgoing_address 10.0.0.1 normal_service_net | |
2729 | tcp_outgoing_address 10.0.0.2 good_service_net | |
2730 | tcp_outgoing_address 10.0.0.3 | |
2731 | ||
2732 | Processing proceeds in the order specified, and stops at first fully | |
2733 | matching line. | |
2734 | DOC_END | |
2735 | ||
2736 | NAME: reply_body_max_size | |
2737 | COMMENT: size [acl acl...] | |
2738 | TYPE: acl_b_size_t | |
2739 | DEFAULT: none | |
2740 | LOC: Config.ReplyBodySize | |
2741 | DOC_START | |
2742 | This option specifies the maximum size of a reply body. It can be | |
2743 | used to prevent users from downloading very large files, such as | |
2744 | MP3's and movies. When the reply headers are recieved, the | |
2745 | reply_body_max_size lines are processed, and the first line where | |
2746 | all (if any) listed acls are true is used as the maximum body size | |
2747 | for this reply. | |
2748 | ||
2749 | This size is then checked twice. First when we get the reply headers, | |
2750 | we check the content-length value. If the content length value exists | |
2751 | and is larger than the allowed size, the request is denied and the | |
2752 | user receives an error message that says "the request or reply | |
2753 | is too large." If there is no content-length, and the reply | |
2754 | size exceeds this limit, the client's connection is just closed | |
2755 | and they will receive a partial reply. | |
2756 | ||
2757 | WARNING: downstream caches probably can not detect a partial reply | |
2758 | if there is no content-length header, so they will cache | |
2759 | partial responses and give them out as hits. You should NOT | |
2760 | use this option if you have downstream caches. | |
2761 | ||
2762 | WARNING: A maximum size smaller than the size of squid's error messages | |
2763 | will cause an infinite loop and crash squid. Ensure that the smallest | |
2764 | non-zero value you use is greater that the maximum header size plus | |
2765 | the size of your largest error page. | |
2766 | ||
2767 | If you set this parameter none (the default), there will be | |
2768 | no limit imposed. | |
2769 | DOC_END | |
2770 | ||
2771 | NAME: log_access | |
2772 | TYPE: acl_access | |
2773 | LOC: Config.accessList.log | |
2774 | DEFAULT: none | |
2775 | COMMENT: allow|deny acl acl... | |
2776 | DOC_START | |
2777 | This options allows you to control which requests gets logged | |
2778 | to access.log (see access_log directive). Requests denied for | |
2779 | logging will also not be accounted for in performance counters. | |
2780 | DOC_END | |
2781 | ||
2782 | COMMENT_START | |
2783 | ADMINISTRATIVE PARAMETERS | |
2784 | ----------------------------------------------------------------------------- | |
2785 | COMMENT_END | |
2786 | ||
2787 | NAME: cache_mgr | |
2788 | TYPE: string | |
2789 | DEFAULT: webmaster | |
2790 | LOC: Config.adminEmail | |
2791 | DOC_START | |
2792 | Email-address of local cache manager who will receive | |
2793 | mail if the cache dies. The default is "webmaster." | |
2794 | DOC_END | |
2795 | ||
2796 | ||
2797 | NAME: cache_effective_user | |
2798 | TYPE: string | |
2799 | DEFAULT: nobody | |
2800 | LOC: Config.effectiveUser | |
2801 | DOC_NONE | |
2802 | ||
2803 | NAME: cache_effective_group | |
2804 | TYPE: string | |
2805 | DEFAULT: none | |
2806 | LOC: Config.effectiveGroup | |
2807 | DOC_START | |
2808 | ||
2809 | If you start Squid as root, it will change its effective/real | |
2810 | UID/GID to the UID/GID specified below. The default is to | |
2811 | change to UID to nobody. If you define cache_effective_user, | |
2812 | but not cache_effective_group, Squid sets the GID the | |
2813 | effective user's default group ID (taken from the password | |
2814 | file). | |
2815 | ||
2816 | If Squid is not started as root, the cache_effective_user | |
2817 | value is ignored and the GID value is unchanged by default. | |
2818 | However, you can make Squid change its GID to another group | |
2819 | that the process owner is a member of. Note that if Squid | |
2820 | is not started as root then you cannot set http_port to a | |
2821 | value lower than 1024. | |
2822 | DOC_END | |
2823 | ||
2824 | ||
2825 | NAME: visible_hostname | |
2826 | TYPE: string | |
2827 | LOC: Config.visibleHostname | |
2828 | DEFAULT: none | |
2829 | DOC_START | |
2830 | If you want to present a special hostname in error messages, etc, | |
2831 | then define this. Otherwise, the return value of gethostname() | |
2832 | will be used. If you have multiple caches in a cluster and | |
2833 | get errors about IP-forwarding you must set them to have individual | |
2834 | names with this setting. | |
2835 | DOC_END | |
2836 | ||
2837 | ||
2838 | NAME: unique_hostname | |
2839 | TYPE: string | |
2840 | LOC: Config.uniqueHostname | |
2841 | DEFAULT: none | |
2842 | DOC_START | |
2843 | If you want to have multiple machines with the same | |
2844 | 'visible_hostname' then you must give each machine a different | |
2845 | 'unique_hostname' so that forwarding loops can be detected. | |
2846 | DOC_END | |
2847 | ||
2848 | ||
2849 | NAME: hostname_aliases | |
2850 | TYPE: wordlist | |
2851 | LOC: Config.hostnameAliases | |
2852 | DEFAULT: none | |
2853 | DOC_START | |
2854 | A list of other DNS names that your cache has. | |
2855 | DOC_END | |
2856 | ||
2857 | COMMENT_START | |
2858 | OPTIONS FOR THE CACHE REGISTRATION SERVICE | |
2859 | ----------------------------------------------------------------------------- | |
2860 | ||
2861 | This section contains parameters for the (optional) cache | |
2862 | announcement service. This service is provided to help | |
2863 | cache administrators locate one another in order to join or | |
2864 | create cache hierarchies. | |
2865 | ||
2866 | An 'announcement' message is sent (via UDP) to the registration | |
2867 | service by Squid. By default, the announcement message is NOT | |
2868 | SENT unless you enable it with 'announce_period' below. | |
2869 | ||
2870 | The announcement message includes your hostname, plus the | |
2871 | following information from this configuration file: | |
2872 | ||
2873 | http_port | |
2874 | icp_port | |
2875 | cache_mgr | |
2876 | ||
2877 | All current information is processed regularly and made | |
2878 | available on the Web at http://www.ircache.net/Cache/Tracker/. | |
2879 | COMMENT_END | |
2880 | ||
2881 | NAME: announce_period | |
2882 | TYPE: time_t | |
2883 | LOC: Config.Announce.period | |
2884 | DEFAULT: 0 | |
2885 | DOC_START | |
2886 | This is how frequently to send cache announcements. The | |
2887 | default is `0' which disables sending the announcement | |
2888 | messages. | |
2889 | ||
2890 | To enable announcing your cache, just uncomment the line | |
2891 | below. | |
2892 | ||
2893 | NOCOMMENT_START | |
2894 | #To enable announcing your cache, just uncomment the line below. | |
2895 | #announce_period 1 day | |
2896 | NOCOMMENT_END | |
2897 | DOC_END | |
2898 | ||
2899 | ||
2900 | NAME: announce_host | |
2901 | TYPE: string | |
2902 | DEFAULT: tracker.ircache.net | |
2903 | LOC: Config.Announce.host | |
2904 | DOC_NONE | |
2905 | ||
2906 | NAME: announce_file | |
2907 | TYPE: string | |
2908 | DEFAULT: none | |
2909 | LOC: Config.Announce.file | |
2910 | DOC_NONE | |
2911 | ||
2912 | NAME: announce_port | |
2913 | TYPE: ushort | |
2914 | DEFAULT: 3131 | |
2915 | LOC: Config.Announce.port | |
2916 | DOC_START | |
2917 | announce_host and announce_port set the hostname and port | |
2918 | number where the registration message will be sent. | |
2919 | ||
2920 | Hostname will default to 'tracker.ircache.net' and port will | |
2921 | default default to 3131. If the 'filename' argument is given, | |
2922 | the contents of that file will be included in the announce | |
2923 | message. | |
2924 | DOC_END | |
2925 | ||
2926 | NAME: httpd_accel_surrogate_id | |
2927 | IFDEF: ESI | |
2928 | TYPE: string | |
2929 | LOC: Config.Accel.surrogate_id | |
2930 | DEFAULT: unset-id | |
2931 | DOC_START | |
2932 | Surrogates (http://www.esi.org/architecture_spec_1.0.html) | |
2933 | need an identification token to allow control targeting. Because | |
2934 | a farm of surrogates may all perform the same tasks, they may share | |
2935 | an identification token. | |
2936 | DOC_END | |
2937 | ||
2938 | NAME: http_accel_surrogate_remote | |
2939 | IFDEF: ESI | |
2940 | COMMENT: on|off | |
2941 | TYPE: onoff | |
2942 | DEFAULT: off | |
2943 | LOC: Config.onoff.surrogate_is_remote | |
2944 | DOC_START | |
2945 | Remote surrogates (such as those in a CDN) honour Surrogate-Control: no-store-remote. | |
2946 | Set this to on to have squid behave as a remote surrogate. | |
2947 | DOC_END | |
2948 | ||
2949 | NAME: esi_parser | |
2950 | IFDEF: ESI | |
2951 | COMMENT: expat|custom | |
2952 | TYPE: string | |
2953 | LOC: ESIParser::Type | |
2954 | DEFAULT: custom | |
2955 | DOC_START | |
2956 | ESI markup is not strictly XML compatible. The custom ESI parser | |
2957 | will give higher performance, but cannot handle non ASCII character | |
2958 | encodings. | |
2959 | DOC_END | |
2960 | ||
2961 | COMMENT_START | |
2962 | MISCELLANEOUS | |
2963 | ----------------------------------------------------------------------------- | |
2964 | COMMENT_END | |
2965 | ||
2966 | NAME: dns_testnames | |
2967 | TYPE: wordlist | |
2968 | LOC: Config.dns_testname_list | |
2969 | DEFAULT: none | |
2970 | DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com | |
2971 | DOC_START | |
2972 | The DNS tests exit as soon as the first site is successfully looked up | |
2973 | ||
2974 | This test can be disabled with the -D command line option. | |
2975 | DOC_END | |
2976 | ||
2977 | ||
2978 | NAME: logfile_rotate | |
2979 | TYPE: int | |
2980 | DEFAULT: 10 | |
2981 | LOC: Config.Log.rotateNumber | |
2982 | DOC_START | |
2983 | Specifies the number of logfile rotations to make when you | |
2984 | type 'squid -k rotate'. The default is 10, which will rotate | |
2985 | with extensions 0 through 9. Setting logfile_rotate to 0 will | |
2986 | disable the rotation, but the logfiles are still closed and | |
2987 | re-opened. This will enable you to rename the logfiles | |
2988 | yourself just before sending the rotate signal. | |
2989 | ||
2990 | Note, the 'squid -k rotate' command normally sends a USR1 | |
2991 | signal to the running squid process. In certain situations | |
2992 | (e.g. on Linux with Async I/O), USR1 is used for other | |
2993 | purposes, so -k rotate uses another signal. It is best to get | |
2994 | in the habit of using 'squid -k rotate' instead of 'kill -USR1 | |
2995 | <pid>'. | |
2996 | DOC_END | |
2997 | ||
2998 | ||
2999 | NAME: append_domain | |
3000 | TYPE: string | |
3001 | LOC: Config.appendDomain | |
3002 | DEFAULT: none | |
3003 | DOC_START | |
3004 | Appends local domain name to hostnames without any dots in | |
3005 | them. append_domain must begin with a period. | |
3006 | ||
3007 | Be warned that there today is Internet names with no dots in | |
3008 | them using only top-domain names, so setting this may | |
3009 | cause some Internet sites to become unavailable. | |
3010 | ||
3011 | Example: | |
3012 | append_domain .yourdomain.com | |
3013 | DOC_END | |
3014 | ||
3015 | ||
3016 | NAME: tcp_recv_bufsize | |
3017 | COMMENT: (bytes) | |
3018 | TYPE: b_size_t | |
3019 | DEFAULT: 0 bytes | |
3020 | LOC: Config.tcpRcvBufsz | |
3021 | DOC_START | |
3022 | Size of receive buffer to set for TCP sockets. Probably just | |
3023 | as easy to change your kernel's default. Set to zero to use | |
3024 | the default buffer size. | |
3025 | DOC_END | |
3026 | ||
3027 | NAME: err_html_text | |
3028 | TYPE: eol | |
3029 | LOC: Config.errHtmlText | |
3030 | DEFAULT: none | |
3031 | DOC_START | |
3032 | HTML text to include in error messages. Make this a "mailto" | |
3033 | URL to your admin address, or maybe just a link to your | |
3034 | organizations Web page. | |
3035 | ||
3036 | To include this in your error messages, you must rewrite | |
3037 | the error template files (found in the "errors" directory). | |
3038 | Wherever you want the 'err_html_text' line to appear, | |
3039 | insert a %L tag in the error template file. | |
3040 | DOC_END | |
3041 | ||
3042 | NAME: email_err_data | |
3043 | COMMENT: on|off | |
3044 | TYPE: onoff | |
3045 | LOC: Config.onoff.emailErrData | |
3046 | DEFAULT: on | |
3047 | DOC_START | |
3048 | If enabled, information about the occurred error will be | |
3049 | included in the mailto links of the ERR pages (if %W is set) | |
3050 | so that the email body then contains the data. | |
3051 | Syntax is <A HREF="mailto:%w%W">%w</A> | |
3052 | DOC_END | |
3053 | ||
3054 | ||
3055 | NAME: deny_info | |
3056 | TYPE: denyinfo | |
3057 | LOC: Config.denyInfoList | |
3058 | DEFAULT: none | |
3059 | DOC_START | |
3060 | Usage: deny_info err_page_name acl | |
3061 | or deny_info http://... acl | |
3062 | Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys | |
3063 | ||
3064 | This can be used to return a ERR_ page for requests which | |
3065 | do not pass the 'http_access' rules. A single ACL will cause | |
3066 | the http_access check to fail. If a 'deny_info' line exists | |
3067 | for that ACL then Squid returns a corresponding error page. | |
3068 | ||
3069 | You may use ERR_ pages that come with Squid or create your own pages | |
3070 | and put them into the configured errors/ directory. | |
3071 | ||
3072 | Alternatively you can specify an error URL. The browsers will then | |
3073 | get redirected (302) to the specified URL. %s in the redirection | |
3074 | URL will be replaced by the requested URL. | |
3075 | ||
3076 | Alternatively you can tell Squid to reset the TCP connection | |
3077 | by specifying TCP_RESET. | |
3078 | DOC_END | |
3079 | ||
3080 | NAME: memory_pools | |
3081 | COMMENT: on|off | |
3082 | TYPE: onoff | |
3083 | DEFAULT: on | |
3084 | LOC: Config.onoff.mem_pools | |
3085 | DOC_START | |
3086 | If set, Squid will keep pools of allocated (but unused) memory | |
3087 | available for future use. If memory is a premium on your | |
3088 | system and you believe your malloc library outperforms Squid | |
3089 | routines, disable this. | |
3090 | DOC_END | |
3091 | ||
3092 | NAME: memory_pools_limit | |
3093 | COMMENT: (bytes) | |
3094 | TYPE: b_size_t | |
3095 | DEFAULT: none | |
3096 | LOC: Config.MemPools.limit | |
3097 | DOC_START | |
3098 | Used only with memory_pools on: | |
3099 | memory_pools_limit 50 MB | |
3100 | ||
3101 | If set to a non-zero value, Squid will keep at most the specified | |
3102 | limit of allocated (but unused) memory in memory pools. All free() | |
3103 | requests that exceed this limit will be handled by your malloc | |
3104 | library. Squid does not pre-allocate any memory, just safe-keeps | |
3105 | objects that otherwise would be free()d. Thus, it is safe to set | |
3106 | memory_pools_limit to a reasonably high value even if your | |
3107 | configuration will use less memory. | |
3108 | ||
3109 | If not set (default) or set to zero, Squid will keep all memory it | |
3110 | can. That is, there will be no limit on the total amount of memory | |
3111 | used for safe-keeping. | |
3112 | ||
3113 | To disable memory allocation optimization, do not set | |
3114 | memory_pools_limit to 0. Set memory_pools to "off" instead. | |
3115 | ||
3116 | An overhead for maintaining memory pools is not taken into account | |
3117 | when the limit is checked. This overhead is close to four bytes per | |
3118 | object kept. However, pools may actually _save_ memory because of | |
3119 | reduced memory thrashing in your malloc library. | |
3120 | DOC_END | |
3121 | ||
3122 | NAME: via | |
3123 | IFDEF: HTTP_VIOLATIONS | |
3124 | COMMENT: on|off | |
3125 | TYPE: onoff | |
3126 | DEFAULT: on | |
3127 | LOC: Config.onoff.via | |
3128 | DOC_START | |
3129 | If set (default), Squid will include a Via header in requests and | |
3130 | replies as required by RFC2616. | |
3131 | DOC_END | |
3132 | ||
3133 | NAME: forwarded_for | |
3134 | COMMENT: on|off | |
3135 | TYPE: onoff | |
3136 | DEFAULT: on | |
3137 | LOC: opt_forwarded_for | |
3138 | DOC_START | |
3139 | If set, Squid will include your system's IP address or name | |
3140 | in the HTTP requests it forwards. By default it looks like | |
3141 | this: | |
3142 | ||
3143 | X-Forwarded-For: 192.1.2.3 | |
3144 | ||
3145 | If you disable this, it will appear as | |
3146 | ||
3147 | X-Forwarded-For: unknown | |
3148 | DOC_END | |
3149 | ||
3150 | NAME: log_icp_queries | |
3151 | COMMENT: on|off | |
3152 | TYPE: onoff | |
3153 | DEFAULT: on | |
3154 | LOC: Config.onoff.log_udp | |
3155 | DOC_START | |
3156 | If set, ICP queries are logged to access.log. You may wish | |
3157 | do disable this if your ICP load is VERY high to speed things | |
3158 | up or to simplify log analysis. | |
3159 | DOC_END | |
3160 | ||
3161 | NAME: icp_hit_stale | |
3162 | COMMENT: on|off | |
3163 | TYPE: onoff | |
3164 | DEFAULT: off | |
3165 | LOC: Config.onoff.icp_hit_stale | |
3166 | DOC_START | |
3167 | If you want to return ICP_HIT for stale cache objects, set this | |
3168 | option to 'on'. If you have sibling relationships with caches | |
3169 | in other administrative domains, this should be 'off'. If you only | |
3170 | have sibling relationships with caches under your control, then | |
3171 | it is probably okay to set this to 'on'. | |
3172 | If set to 'on', then your siblings should use the option "allow-miss" | |
3173 | on their cache_peer lines for connecting to you. | |
3174 | DOC_END | |
3175 | ||
3176 | ||
3177 | NAME: minimum_direct_hops | |
3178 | TYPE: int | |
3179 | DEFAULT: 4 | |
3180 | LOC: Config.minDirectHops | |
3181 | DOC_START | |
3182 | If using the ICMP pinging stuff, do direct fetches for sites | |
3183 | which are no more than this many hops away. | |
3184 | DOC_END | |
3185 | ||
3186 | NAME: minimum_direct_rtt | |
3187 | TYPE: int | |
3188 | DEFAULT: 400 | |
3189 | LOC: Config.minDirectRtt | |
3190 | DOC_START | |
3191 | If using the ICMP pinging stuff, do direct fetches for sites | |
3192 | which are no more than this many rtt milliseconds away. | |
3193 | DOC_END | |
3194 | ||
3195 | NAME: cachemgr_passwd | |
3196 | TYPE: cachemgrpasswd | |
3197 | DEFAULT: none | |
3198 | LOC: Config.passwd_list | |
3199 | DOC_START | |
3200 | Specify passwords for cachemgr operations. | |
3201 | ||
3202 | Usage: cachemgr_passwd password action action ... | |
3203 | ||
3204 | Some valid actions are (see cache manager menu for a full list): | |
3205 | 5min | |
3206 | 60min | |
3207 | asndb | |
3208 | authenticator | |
3209 | cbdata | |
3210 | client_list | |
3211 | comm_incoming | |
3212 | config * | |
3213 | counters | |
3214 | delay | |
3215 | digest_stats | |
3216 | dns | |
3217 | events | |
3218 | filedescriptors | |
3219 | fqdncache | |
3220 | histograms | |
3221 | http_headers | |
3222 | info | |
3223 | io | |
3224 | ipcache | |
3225 | mem | |
3226 | menu | |
3227 | netdb | |
3228 | non_peers | |
3229 | objects | |
3230 | offline_toggle * | |
3231 | pconn | |
3232 | peer_select | |
3233 | redirector | |
3234 | refresh | |
3235 | server_list | |
3236 | shutdown * | |
3237 | store_digest | |
3238 | storedir | |
3239 | utilization | |
3240 | via_headers | |
3241 | vm_objects | |
3242 | ||
3243 | * Indicates actions which will not be performed without a | |
3244 | valid password, others can be performed if not listed here. | |
3245 | ||
3246 | To disable an action, set the password to "disable". | |
3247 | To allow performing an action without a password, set the | |
3248 | password to "none". | |
3249 | ||
3250 | Use the keyword "all" to set the same password for all actions. | |
3251 | ||
3252 | Example: | |
3253 | cachemgr_passwd secret shutdown | |
3254 | cachemgr_passwd lesssssssecret info stats/objects | |
3255 | cachemgr_passwd disable all | |
3256 | DOC_END | |
3257 | ||
3258 | NAME: store_avg_object_size | |
3259 | COMMENT: (kbytes) | |
3260 | TYPE: kb_size_t | |
3261 | DEFAULT: 13 KB | |
3262 | LOC: Config.Store.avgObjectSize | |
3263 | DOC_START | |
3264 | Average object size, used to estimate number of objects your | |
3265 | cache can hold. See doc/Release-Notes-1.1.txt. The default is | |
3266 | 13 KB. | |
3267 | DOC_END | |
3268 | ||
3269 | NAME: store_objects_per_bucket | |
3270 | TYPE: int | |
3271 | DEFAULT: 20 | |
3272 | LOC: Config.Store.objectsPerBucket | |
3273 | DOC_START | |
3274 | Target number of objects per bucket in the store hash table. | |
3275 | Lowering this value increases the total number of buckets and | |
3276 | also the storage maintenance rate. The default is 50. | |
3277 | DOC_END | |
3278 | ||
3279 | NAME: client_db | |
3280 | COMMENT: on|off | |
3281 | TYPE: onoff | |
3282 | DEFAULT: on | |
3283 | LOC: Config.onoff.client_db | |
3284 | DOC_START | |
3285 | If you want to disable collecting per-client statistics, then | |
3286 | turn off client_db here. | |
3287 | DOC_END | |
3288 | ||
3289 | ||
3290 | NAME: netdb_low | |
3291 | TYPE: int | |
3292 | DEFAULT: 900 | |
3293 | LOC: Config.Netdb.low | |
3294 | DOC_NONE | |
3295 | ||
3296 | NAME: netdb_high | |
3297 | TYPE: int | |
3298 | DEFAULT: 1000 | |
3299 | LOC: Config.Netdb.high | |
3300 | DOC_START | |
3301 | The low and high water marks for the ICMP measurement | |
3302 | database. These are counts, not percents. The defaults are | |
3303 | 900 and 1000. When the high water mark is reached, database | |
3304 | entries will be deleted until the low mark is reached. | |
3305 | DOC_END | |
3306 | ||
3307 | ||
3308 | NAME: netdb_ping_period | |
3309 | TYPE: time_t | |
3310 | LOC: Config.Netdb.period | |
3311 | DEFAULT: 5 minutes | |
3312 | DOC_START | |
3313 | The minimum period for measuring a site. There will be at | |
3314 | least this much delay between successive pings to the same | |
3315 | network. The default is five minutes. | |
3316 | DOC_END | |
3317 | ||
3318 | ||
3319 | NAME: query_icmp | |
3320 | COMMENT: on|off | |
3321 | TYPE: onoff | |
3322 | DEFAULT: off | |
3323 | LOC: Config.onoff.query_icmp | |
3324 | DOC_START | |
3325 | If you want to ask your peers to include ICMP data in their ICP | |
3326 | replies, enable this option. | |
3327 | ||
3328 | If your peer has configured Squid (during compilation) with | |
3329 | '--enable-icmp' then that peer will send ICMP pings to origin server | |
3330 | sites of the URLs it receives. If you enable this option then the | |
3331 | ICP replies from that peer will include the ICMP data (if available). | |
3332 | Then, when choosing a parent cache, Squid will choose the parent with | |
3333 | the minimal RTT to the origin server. When this happens, the | |
3334 | hierarchy field of the access.log will be | |
3335 | "CLOSEST_PARENT_MISS". This option is off by default. | |
3336 | DOC_END | |
3337 | ||
3338 | NAME: test_reachability | |
3339 | COMMENT: on|off | |
3340 | TYPE: onoff | |
3341 | DEFAULT: off | |
3342 | LOC: Config.onoff.test_reachability | |
3343 | DOC_START | |
3344 | When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH | |
3345 | instead of ICP_MISS if the target host is NOT in the ICMP | |
3346 | database, or has a zero RTT. | |
3347 | DOC_END | |
3348 | ||
3349 | NAME: buffered_logs | |
3350 | COMMENT: on|off | |
3351 | TYPE: onoff | |
3352 | DEFAULT: off | |
3353 | LOC: Config.onoff.buffered_logs | |
3354 | DOC_START | |
3355 | cache.log log file is written with stdio functions, and as such | |
3356 | it can be buffered or unbuffered. By default it will be unbuffered. | |
3357 | Buffering it can speed up the writing slightly (though you are | |
3358 | unlikely to need to worry unless you run with tons of debugging | |
3359 | enabled in which case performance will suffer badly anyway..). | |
3360 | DOC_END | |
3361 | ||
3362 | NAME: reload_into_ims | |
3363 | IFDEF: HTTP_VIOLATIONS | |
3364 | COMMENT: on|off | |
3365 | TYPE: onoff | |
3366 | DEFAULT: off | |
3367 | LOC: Config.onoff.reload_into_ims | |
3368 | DOC_START | |
3369 | When you enable this option, client no-cache or ``reload'' | |
3370 | requests will be changed to If-Modified-Since requests. | |
3371 | Doing this VIOLATES the HTTP standard. Enabling this | |
3372 | feature could make you liable for problems which it | |
3373 | causes. | |
3374 | ||
3375 | see also refresh_pattern for a more selective approach. | |
3376 | DOC_END | |
3377 | ||
3378 | NAME: always_direct | |
3379 | TYPE: acl_access | |
3380 | LOC: Config.accessList.AlwaysDirect | |
3381 | DEFAULT: none | |
3382 | DOC_START | |
3383 | Usage: always_direct allow|deny [!]aclname ... | |
3384 | ||
3385 | Here you can use ACL elements to specify requests which should | |
3386 | ALWAYS be forwarded directly to origin servers. For example, | |
3387 | to always directly forward requests for local servers use | |
3388 | something like: | |
3389 | ||
3390 | acl local-servers dstdomain my.domain.net | |
3391 | always_direct allow local-servers | |
3392 | ||
3393 | To always forward FTP requests directly, use | |
3394 | ||
3395 | acl FTP proto FTP | |
3396 | always_direct allow FTP | |
3397 | ||
3398 | NOTE: There is a similar, but opposite option named | |
3399 | 'never_direct'. You need to be aware that "always_direct deny | |
3400 | foo" is NOT the same thing as "never_direct allow foo". You | |
3401 | may need to use a deny rule to exclude a more-specific case of | |
3402 | some other rule. Example: | |
3403 | ||
3404 | acl local-external dstdomain external.foo.net | |
3405 | acl local-servers dstdomain .foo.net | |
3406 | always_direct deny local-external | |
3407 | always_direct allow local-servers | |
3408 | ||
3409 | This option replaces some v1.1 options such as local_domain | |
3410 | and local_ip. | |
3411 | DOC_END | |
3412 | ||
3413 | NAME: never_direct | |
3414 | TYPE: acl_access | |
3415 | LOC: Config.accessList.NeverDirect | |
3416 | DEFAULT: none | |
3417 | DOC_START | |
3418 | Usage: never_direct allow|deny [!]aclname ... | |
3419 | ||
3420 | never_direct is the opposite of always_direct. Please read | |
3421 | the description for always_direct if you have not already. | |
3422 | ||
3423 | With 'never_direct' you can use ACL elements to specify | |
3424 | requests which should NEVER be forwarded directly to origin | |
3425 | servers. For example, to force the use of a proxy for all | |
3426 | requests, except those in your local domain use something like: | |
3427 | ||
3428 | acl local-servers dstdomain .foo.net | |
3429 | acl all src 0.0.0.0/0.0.0.0 | |
3430 | never_direct deny local-servers | |
3431 | never_direct allow all | |
3432 | ||
3433 | or if squid is inside a firewall and there is local intranet | |
3434 | servers inside the firewall then use something like: | |
3435 | ||
3436 | acl local-intranet dstdomain .foo.net | |
3437 | acl local-external dstdomain external.foo.net | |
3438 | always_direct deny local-external | |
3439 | always_direct allow local-intranet | |
3440 | never_direct allow all | |
3441 | ||
3442 | This option replaces some v1.1 options such as inside_firewall | |
3443 | and firewall_ip. | |
3444 | DOC_END | |
3445 | ||
3446 | NAME: header_access | |
3447 | IFDEF: HTTP_VIOLATIONS | |
3448 | TYPE: http_header_access[] | |
3449 | LOC: Config.header_access | |
3450 | DEFAULT: none | |
3451 | DOC_START | |
3452 | Usage: header_access header_name allow|deny [!]aclname ... | |
3453 | ||
3454 | WARNING: Doing this VIOLATES the HTTP standard. Enabling | |
3455 | this feature could make you liable for problems which it | |
3456 | causes. | |
3457 | ||
3458 | This option replaces the old 'anonymize_headers' and the | |
3459 | older 'http_anonymizer' option with something that is much | |
3460 | more configurable. This new method creates a list of ACLs | |
3461 | for each header, allowing you very fine-tuned header | |
3462 | mangling. | |
3463 | ||
3464 | You can only specify known headers for the header name. | |
3465 | Other headers are reclassified as 'Other'. You can also | |
3466 | refer to all the headers with 'All'. | |
3467 | ||
3468 | For example, to achieve the same behaviour as the old | |
3469 | 'http_anonymizer standard' option, you should use: | |
3470 | ||
3471 | header_access From deny all | |
3472 | header_access Referer deny all | |
3473 | header_access Server deny all | |
3474 | header_access User-Agent deny all | |
3475 | header_access WWW-Authenticate deny all | |
3476 | header_access Link deny all | |
3477 | ||
3478 | Or, to reproduce the old 'http_anonymizer paranoid' feature | |
3479 | you should use: | |
3480 | ||
3481 | header_access Allow allow all | |
3482 | header_access Authorization allow all | |
3483 | header_access WWW-Authenticate allow all | |
3484 | header_access Cache-Control allow all | |
3485 | header_access Content-Encoding allow all | |
3486 | header_access Content-Length allow all | |
3487 | header_access Content-Type allow all | |
3488 | header_access Date allow all | |
3489 | header_access Expires allow all | |
3490 | header_access Host allow all | |
3491 | header_access If-Modified-Since allow all | |
3492 | header_access Last-Modified allow all | |
3493 | header_access Location allow all | |
3494 | header_access Pragma allow all | |
3495 | header_access Accept allow all | |
3496 | header_access Accept-Charset allow all | |
3497 | header_access Accept-Encoding allow all | |
3498 | header_access Accept-Language allow all | |
3499 | header_access Content-Language allow all | |
3500 | header_access Mime-Version allow all | |
3501 | header_access Retry-After allow all | |
3502 | header_access Title allow all | |
3503 | header_access Connection allow all | |
3504 | header_access Proxy-Connection allow all | |
3505 | header_access All deny all | |
3506 | ||
3507 | By default, all headers are allowed (no anonymizing is | |
3508 | performed). | |
3509 | DOC_END | |
3510 | ||
3511 | NAME: header_replace | |
3512 | IFDEF: HTTP_VIOLATIONS | |
3513 | TYPE: http_header_replace[] | |
3514 | LOC: Config.header_access | |
3515 | DEFAULT: none | |
3516 | DOC_START | |
3517 | Usage: header_replace header_name message | |
3518 | Example: header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit) | |
3519 | ||
3520 | This option allows you to change the contents of headers | |
3521 | denied with header_access above, by replacing them with | |
3522 | some fixed string. This replaces the old fake_user_agent | |
3523 | option. | |
3524 | ||
3525 | By default, headers are removed if denied. | |
3526 | DOC_END | |
3527 | ||
3528 | NAME: icon_directory | |
3529 | TYPE: string | |
3530 | LOC: Config.icons.directory | |
3531 | DEFAULT: @DEFAULT_ICON_DIR@ | |
3532 | DOC_START | |
3533 | Where the icons are stored. These are normally kept in | |
3534 | @DEFAULT_ICON_DIR@ | |
3535 | DOC_END | |
3536 | ||
3537 | NAME: short_icon_urls | |
3538 | TYPE: onoff | |
3539 | LOC: Config.icons.use_short_names | |
3540 | DEFAULT: on | |
3541 | DOC_START | |
3542 | If this is enabled then Squid will use short URLs for icons. | |
3543 | If disabled it will revert to the old behaviour of including | |
3544 | it's own name and port in the URL. | |
3545 | ||
3546 | If you run a complex cache hierarchy with a mix of Squid and | |
3547 | other proxies then you may need to disable this directive. | |
3548 | DOC_END | |
3549 | ||
3550 | NAME: error_directory | |
3551 | TYPE: string | |
3552 | LOC: Config.errorDirectory | |
3553 | DEFAULT: @DEFAULT_ERROR_DIR@ | |
3554 | DOC_START | |
3555 | If you wish to create your own versions of the default | |
3556 | (English) error files, either to customize them to suit your | |
3557 | language or company copy the template English files to another | |
3558 | directory and point this tag at them. | |
3559 | DOC_END | |
3560 | ||
3561 | NAME: maximum_single_addr_tries | |
3562 | TYPE: int | |
3563 | LOC: Config.retry.maxtries | |
3564 | DEFAULT: 1 | |
3565 | DOC_START | |
3566 | This sets the maximum number of connection attempts for a | |
3567 | host that only has one address (for multiple-address hosts, | |
3568 | each address is tried once). | |
3569 | ||
3570 | The default value is one attempt, the (not recommended) | |
3571 | maximum is 255 tries. A warning message will be generated | |
3572 | if it is set to a value greater than ten. | |
3573 | ||
3574 | Note: This is in addition to the request reforwarding which | |
3575 | takes place if Squid fails to get a satisfying response. | |
3576 | DOC_END | |
3577 | ||
3578 | NAME: snmp_port | |
3579 | TYPE: ushort | |
3580 | LOC: Config.Port.snmp | |
3581 | DEFAULT: 3401 | |
3582 | IFDEF: SQUID_SNMP | |
3583 | DOC_START | |
3584 | Squid can now serve statistics and status information via SNMP. | |
3585 | By default it listens to port 3401 on the machine. If you don't | |
3586 | wish to use SNMP, set this to "0". | |
3587 | ||
3588 | Note: If you want Squid to use parents for all requests then see | |
3589 | the never_direct directive. prefer_direct only modifies how Squid | |
3590 | acts on cachable requests. | |
3591 | DOC_END | |
3592 | ||
3593 | NAME: snmp_access | |
3594 | TYPE: acl_access | |
3595 | LOC: Config.accessList.snmp | |
3596 | DEFAULT: none | |
3597 | DEFAULT_IF_NONE: deny all | |
3598 | IFDEF: SQUID_SNMP | |
3599 | DOC_START | |
3600 | Allowing or denying access to the SNMP port. | |
3601 | ||
3602 | All access to the agent is denied by default. | |
3603 | usage: | |
3604 | ||
3605 | snmp_access allow|deny [!]aclname ... | |
3606 | ||
3607 | Example: | |
3608 | snmp_access allow snmppublic localhost | |
3609 | snmp_access deny all | |
3610 | DOC_END | |
3611 | ||
3612 | NAME: snmp_incoming_address | |
3613 | TYPE: address | |
3614 | LOC: Config.Addrs.snmp_incoming | |
3615 | DEFAULT: 0.0.0.0 | |
3616 | IFDEF: SQUID_SNMP | |
3617 | DOC_NONE | |
3618 | NAME: snmp_outgoing_address | |
3619 | TYPE: address | |
3620 | LOC: Config.Addrs.snmp_outgoing | |
3621 | DEFAULT: 255.255.255.255 | |
3622 | IFDEF: SQUID_SNMP | |
3623 | DOC_START | |
3624 | Just like 'udp_incoming_address' above, but for the SNMP port. | |
3625 | ||
3626 | snmp_incoming_address is used for the SNMP socket receiving | |
3627 | messages from SNMP agents. | |
3628 | snmp_outgoing_address is used for SNMP packets returned to SNMP | |
3629 | agents. | |
3630 | ||
3631 | The default snmp_incoming_address (0.0.0.0) is to listen on all | |
3632 | available network interfaces. | |
3633 | ||
3634 | If snmp_outgoing_address is set to 255.255.255.255 (the default) | |
3635 | then it will use the same socket as snmp_incoming_address. Only | |
3636 | change this if you want to have SNMP replies sent using another | |
3637 | address than where this Squid listens for SNMP queries. | |
3638 | ||
3639 | NOTE, snmp_incoming_address and snmp_outgoing_address can not have | |
3640 | the same value since they both use port 3401. | |
3641 | DOC_END | |
3642 | ||
3643 | NAME: as_whois_server | |
3644 | TYPE: string | |
3645 | LOC: Config.as_whois_server | |
3646 | DEFAULT: whois.ra.net | |
3647 | DEFAULT_IF_NONE: whois.ra.net | |
3648 | DOC_START | |
3649 | WHOIS server to query for AS numbers. NOTE: AS numbers are | |
3650 | queried only when Squid starts up, not for every request. | |
3651 | DOC_END | |
3652 | ||
3653 | NAME: wccp_router | |
3654 | TYPE: address | |
3655 | LOC: Config.Wccp.router | |
3656 | DEFAULT: 0.0.0.0 | |
3657 | IFDEF: USE_WCCP | |
3658 | DOC_START | |
3659 | Use this option to define your WCCP ``home'' router for | |
3660 | Squid. Setting the 'wccp_router' to 0.0.0.0 (the default) | |
3661 | disables WCCP. | |
3662 | DOC_END | |
3663 | ||
3664 | NAME: wccp_version | |
3665 | TYPE: int | |
3666 | LOC: Config.Wccp.version | |
3667 | DEFAULT: 4 | |
3668 | IFDEF: USE_WCCP | |
3669 | DOC_START | |
3670 | According to some users, Cisco IOS 11.2 only supports WCCP | |
3671 | version 3. If you're using that version of IOS, change | |
3672 | this value to 3. | |
3673 | DOC_END | |
3674 | ||
3675 | NAME: wccp_incoming_address | |
3676 | TYPE: address | |
3677 | LOC: Config.Wccp.incoming | |
3678 | DEFAULT: 0.0.0.0 | |
3679 | IFDEF: USE_WCCP | |
3680 | DOC_NONE | |
3681 | NAME: wccp_outgoing_address | |
3682 | TYPE: address | |
3683 | LOC: Config.Wccp.outgoing | |
3684 | DEFAULT: 255.255.255.255 | |
3685 | IFDEF: USE_WCCP | |
3686 | DOC_START | |
3687 | wccp_incoming_address Use this option if you require WCCP | |
3688 | messages to be received on only one | |
3689 | interface. Do NOT use this option if | |
3690 | you're unsure how many interfaces you | |
3691 | have, or if you know you have only one | |
3692 | interface. | |
3693 | ||
3694 | wccp_outgoing_address Use this option if you require WCCP | |
3695 | messages to be sent out on only one | |
3696 | interface. Do NOT use this option if | |
3697 | you're unsure how many interfaces you | |
3698 | have, or if you know you have only one | |
3699 | interface. | |
3700 | ||
3701 | The default behavior is to not bind to any specific address. | |
3702 | ||
3703 | NOTE, wccp_incoming_address and wccp_outgoing_address can not have | |
3704 | the same value since they both use port 2048. | |
3705 | DOC_END | |
3706 | ||
3707 | ||
3708 | COMMENT_START | |
3709 | DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option) | |
3710 | ----------------------------------------------------------------------------- | |
3711 | COMMENT_END | |
3712 | ||
3713 | NAME: delay_pools | |
3714 | TYPE: delay_pool_count | |
3715 | DEFAULT: 0 | |
3716 | IFDEF: DELAY_POOLS | |
3717 | LOC: Config.Delay | |
3718 | DOC_START | |
3719 | This represents the number of delay pools to be used. For example, | |
3720 | if you have one class 2 delay pool and one class 3 delays pool, you | |
3721 | have a total of 2 delay pools. | |
3722 | DOC_END | |
3723 | ||
3724 | NAME: delay_class | |
3725 | TYPE: delay_pool_class | |
3726 | DEFAULT: none | |
3727 | IFDEF: DELAY_POOLS | |
3728 | LOC: Config.Delay | |
3729 | DOC_START | |
3730 | This defines the class of each delay pool. There must be exactly one | |
3731 | delay_class line for each delay pool. For example, to define two | |
3732 | delay pools, one of class 2 and one of class 3, the settings above | |
3733 | and here would be: | |
3734 | ||
3735 | Example: | |
3736 | delay_pools 4 # 4 delay pools | |
3737 | delay_class 1 2 # pool 1 is a class 2 pool | |
3738 | delay_class 2 3 # pool 2 is a class 3 pool | |
3739 | delay_class 3 4 # pool 3 is a class 4 pool | |
3740 | delay_class 4 5 # pool 4 is a class 5 pool | |
3741 | ||
3742 | The delay pool classes are: | |
3743 | ||
3744 | class 1 Everything is limited by a single aggregate | |
3745 | bucket. | |
3746 | ||
3747 | class 2 Everything is limited by a single aggregate | |
3748 | bucket as well as an "individual" bucket chosen | |
3749 | from bits 25 through 32 of the IP address. | |
3750 | ||
3751 | class 3 Everything is limited by a single aggregate | |
3752 | bucket as well as a "network" bucket chosen | |
3753 | from bits 17 through 24 of the IP address and a | |
3754 | "individual" bucket chosen from bits 17 through | |
3755 | 32 of the IP address. | |
3756 | ||
3757 | class 4 Everything in a class 3 delay pool, with an | |
3758 | additional limit on a per user basis. This | |
3759 | only takes effect if the username is established | |
3760 | in advance - by forcing authentication in your | |
3761 | http_access rules. | |
3762 | ||
3763 | class 5 Requests are grouped according their tag (see | |
3764 | external_acl's tag= reply). | |
3765 | ||
3766 | NOTE: If an IP address is a.b.c.d | |
3767 | -> bits 25 through 32 are "d" | |
3768 | -> bits 17 through 24 are "c" | |
3769 | -> bits 17 through 32 are "c * 256 + d" | |
3770 | DOC_END | |
3771 | ||
3772 | NAME: delay_access | |
3773 | TYPE: delay_pool_access | |
3774 | DEFAULT: none | |
3775 | IFDEF: DELAY_POOLS | |
3776 | LOC: Config.Delay | |
3777 | DOC_START | |
3778 | This is used to determine which delay pool a request falls into. | |
3779 | The first matched delay pool is always used, i.e., if a request falls | |
3780 | into delay pool number one, no more delay are checked, otherwise the | |
3781 | rest are checked in order of their delay pool number until they have | |
3782 | all been checked. For example, if you want some_big_clients in delay | |
3783 | pool 1 and lotsa_little_clients in delay pool 2: | |
3784 | ||
3785 | Example: | |
3786 | delay_access 1 allow some_big_clients | |
3787 | delay_access 1 deny all | |
3788 | delay_access 2 allow lotsa_little_clients | |
3789 | delay_access 2 deny all | |
3790 | delay_access 3 allow authenticated_clients | |
3791 | DOC_END | |
3792 | ||
3793 | NAME: delay_parameters | |
3794 | TYPE: delay_pool_rates | |
3795 | DEFAULT: none | |
3796 | IFDEF: DELAY_POOLS | |
3797 | LOC: Config.Delay | |
3798 | DOC_START | |
3799 | This defines the parameters for a delay pool. Each delay pool has | |
3800 | a number of "buckets" associated with it, as explained in the | |
3801 | description of delay_class. For a class 1 delay pool, the syntax is: | |
3802 | ||
3803 | delay_parameters pool aggregate | |
3804 | ||
3805 | For a class 2 delay pool: | |
3806 | ||
3807 | delay_parameters pool aggregate individual | |
3808 | ||
3809 | For a class 3 delay pool: | |
3810 | ||
3811 | delay_parameters pool aggregate network individual | |
3812 | ||
3813 | For a class 4 delay pool: | |
3814 | ||
3815 | delay_parameters pool aggregate network individual user | |
3816 | ||
3817 | For a class 5 delay pool: | |
3818 | ||
3819 | delay_parameters pool tag | |
3820 | ||
3821 | The variables here are: | |
3822 | ||
3823 | pool a pool number - ie, a number between 1 and the | |
3824 | number specified in delay_pools as used in | |
3825 | delay_class lines. | |
3826 | ||
3827 | aggregate the "delay parameters" for the aggregate bucket | |
3828 | (class 1, 2, 3). | |
3829 | ||
3830 | individual the "delay parameters" for the individual | |
3831 | buckets (class 2, 3). | |
3832 | ||
3833 | network the "delay parameters" for the network buckets | |
3834 | (class 3). | |
3835 | ||
3836 | user the delay parameters for the user buckets | |
3837 | (class 4). | |
3838 | ||
3839 | tag the delay parameters for the tag buckets | |
3840 | (class 5). | |
3841 | ||
3842 | A pair of delay parameters is written restore/maximum, where restore is | |
3843 | the number of bytes (not bits - modem and network speeds are usually | |
3844 | quoted in bits) per second placed into the bucket, and maximum is the | |
3845 | maximum number of bytes which can be in the bucket at any time. | |
3846 | ||
3847 | For example, if delay pool number 1 is a class 2 delay pool as in the | |
3848 | above example, and is being used to strictly limit each host to 64kbps | |
3849 | (plus overheads), with no overall limit, the line is: | |
3850 | ||
3851 | delay_parameters 1 -1/-1 8000/8000 | |
3852 | ||
3853 | Note that the figure -1 is used to represent "unlimited". | |
3854 | ||
3855 | And, if delay pool number 2 is a class 3 delay pool as in the above | |
3856 | example, and you want to limit it to a total of 256kbps (strict limit) | |
3857 | with each 8-bit network permitted 64kbps (strict limit) and each | |
3858 | individual host permitted 4800bps with a bucket maximum size of 64kb | |
3859 | to permit a decent web page to be downloaded at a decent speed | |
3860 | (if the network is not being limited due to overuse) but slow down | |
3861 | large downloads more significantly: | |
3862 | ||
3863 | delay_parameters 2 32000/32000 8000/8000 600/8000 | |
3864 | ||
3865 | There must be one delay_parameters line for each delay pool. | |
3866 | ||
3867 | Finally, for a class 4 delay pool as in the example - each user will | |
3868 | be limited to 128Kb no matter how many workstations they are logged into.: | |
3869 | ||
3870 | delay_parameters 4 32000/32000 8000/8000 600/64000 16000/16000 | |
3871 | DOC_END | |
3872 | ||
3873 | NAME: delay_initial_bucket_level | |
3874 | COMMENT: (percent, 0-100) | |
3875 | TYPE: ushort | |
3876 | DEFAULT: 50 | |
3877 | IFDEF: DELAY_POOLS | |
3878 | LOC: Config.Delay.initial | |
3879 | DOC_START | |
3880 | The initial bucket percentage is used to determine how much is put | |
3881 | in each bucket when squid starts, is reconfigured, or first notices | |
3882 | a host accessing it (in class 2 and class 3, individual hosts and | |
3883 | networks only have buckets associated with them once they have been | |
3884 | "seen" by squid). | |
3885 | DOC_END | |
3886 | ||
3887 | NAME: incoming_icp_average | |
3888 | TYPE: int | |
3889 | DEFAULT: 6 | |
3890 | LOC: Config.comm_incoming.icp_average | |
3891 | DOC_NONE | |
3892 | ||
3893 | NAME: incoming_http_average | |
3894 | TYPE: int | |
3895 | DEFAULT: 4 | |
3896 | LOC: Config.comm_incoming.http_average | |
3897 | DOC_NONE | |
3898 | ||
3899 | NAME: incoming_dns_average | |
3900 | TYPE: int | |
3901 | DEFAULT: 4 | |
3902 | LOC: Config.comm_incoming.dns_average | |
3903 | DOC_NONE | |
3904 | ||
3905 | NAME: min_icp_poll_cnt | |
3906 | TYPE: int | |
3907 | DEFAULT: 8 | |
3908 | LOC: Config.comm_incoming.icp_min_poll | |
3909 | DOC_NONE | |
3910 | ||
3911 | NAME: min_dns_poll_cnt | |
3912 | TYPE: int | |
3913 | DEFAULT: 8 | |
3914 | LOC: Config.comm_incoming.dns_min_poll | |
3915 | DOC_NONE | |
3916 | ||
3917 | NAME: min_http_poll_cnt | |
3918 | TYPE: int | |
3919 | DEFAULT: 8 | |
3920 | LOC: Config.comm_incoming.http_min_poll | |
3921 | DOC_START | |
3922 | Heavy voodoo here. I can't even believe you are reading this. | |
3923 | Are you crazy? Don't even think about adjusting these unless | |
3924 | you understand the algorithms in comm_select.c first! | |
3925 | DOC_END | |
3926 | ||
3927 | NAME: max_open_disk_fds | |
3928 | TYPE: int | |
3929 | LOC: Config.max_open_disk_fds | |
3930 | DEFAULT: 0 | |
3931 | DOC_START | |
3932 | To avoid having disk as the I/O bottleneck Squid can optionally | |
3933 | bypass the on-disk cache if more than this amount of disk file | |
3934 | descriptors are open. | |
3935 | ||
3936 | A value of 0 indicates no limit. | |
3937 | DOC_END | |
3938 | ||
3939 | NAME: offline_mode | |
3940 | TYPE: onoff | |
3941 | LOC: Config.onoff.offline | |
3942 | DEFAULT: off | |
3943 | DOC_START | |
3944 | Enable this option and Squid will never try to validate cached | |
3945 | objects. | |
3946 | DOC_END | |
3947 | ||
3948 | NAME: uri_whitespace | |
3949 | TYPE: uri_whitespace | |
3950 | LOC: Config.uri_whitespace | |
3951 | DEFAULT: strip | |
3952 | DOC_START | |
3953 | What to do with requests that have whitespace characters in the | |
3954 | URI. Options: | |
3955 | ||
3956 | strip: The whitespace characters are stripped out of the URL. | |
3957 | This is the behavior recommended by RFC2396. | |
3958 | deny: The request is denied. The user receives an "Invalid | |
3959 | Request" message. | |
3960 | allow: The request is allowed and the URI is not changed. The | |
3961 | whitespace characters remain in the URI. Note the | |
3962 | whitespace is passed to redirector processes if they | |
3963 | are in use. | |
3964 | encode: The request is allowed and the whitespace characters are | |
3965 | encoded according to RFC1738. This could be considered | |
3966 | a violation of the HTTP/1.1 | |
3967 | RFC because proxies are not allowed to rewrite URI's. | |
3968 | chop: The request is allowed and the URI is chopped at the | |
3969 | first whitespace. This might also be considered a | |
3970 | violation. | |
3971 | DOC_END | |
3972 | ||
3973 | NAME: broken_posts | |
3974 | TYPE: acl_access | |
3975 | DEFAULT: none | |
3976 | LOC: Config.accessList.brokenPosts | |
3977 | DOC_START | |
3978 | A list of ACL elements which, if matched, causes Squid to send | |
3979 | an extra CRLF pair after the body of a PUT/POST request. | |
3980 | ||
3981 | Some HTTP servers has broken implementations of PUT/POST, | |
3982 | and rely on an extra CRLF pair sent by some WWW clients. | |
3983 | ||
3984 | Quote from RFC 2068 section 4.1 on this matter: | |
3985 | ||
3986 | Note: certain buggy HTTP/1.0 client implementations generate an | |
3987 | extra CRLF's after a POST request. To restate what is explicitly | |
3988 | forbidden by the BNF, an HTTP/1.1 client must not preface or follow | |
3989 | a request with an extra CRLF. | |
3990 | ||
3991 | Example: | |
3992 | acl buggy_server url_regex ^http://.... | |
3993 | broken_posts allow buggy_server | |
3994 | DOC_END | |
3995 | ||
3996 | NAME: mcast_miss_addr | |
3997 | IFDEF: MULTICAST_MISS_STREAM | |
3998 | TYPE: address | |
3999 | LOC: Config.mcast_miss.addr | |
4000 | DEFAULT: 255.255.255.255 | |
4001 | DOC_START | |
4002 | If you enable this option, every "cache miss" URL will | |
4003 | be sent out on the specified multicast address. | |
4004 | ||
4005 | Do not enable this option unless you are are absolutely | |
4006 | certain you understand what you are doing. | |
4007 | DOC_END | |
4008 | ||
4009 | NAME: mcast_miss_ttl | |
4010 | IFDEF: MULTICAST_MISS_TTL | |
4011 | TYPE: ushort | |
4012 | LOC: Config.mcast_miss.ttl | |
4013 | DEFAULT: 16 | |
4014 | DOC_START | |
4015 | This is the time-to-live value for packets multicasted | |
4016 | when multicasting off cache miss URLs is enabled. By | |
4017 | default this is set to 'site scope', i.e. 16. | |
4018 | DOC_END | |
4019 | ||
4020 | NAME: mcast_miss_port | |
4021 | IFDEF: MULTICAST_MISS_STREAM | |
4022 | TYPE: ushort | |
4023 | LOC: Config.mcast_miss.port | |
4024 | DEFAULT: 3135 | |
4025 | DOC_START | |
4026 | This is the port number to be used in conjunction with | |
4027 | 'mcast_miss_addr'. | |
4028 | DOC_END | |
4029 | ||
4030 | NAME: mcast_miss_encode_key | |
4031 | IFDEF: MULTICAST_MISS_STREAM | |
4032 | TYPE: string | |
4033 | LOC: Config.mcast_miss.encode_key | |
4034 | DEFAULT: XXXXXXXXXXXXXXXX | |
4035 | DOC_START | |
4036 | The URLs that are sent in the multicast miss stream are | |
4037 | encrypted. This is the encryption key. | |
4038 | DOC_END | |
4039 | ||
4040 | NAME: nonhierarchical_direct | |
4041 | TYPE: onoff | |
4042 | LOC: Config.onoff.nonhierarchical_direct | |
4043 | DEFAULT: on | |
4044 | DOC_START | |
4045 | By default, Squid will send any non-hierarchical requests | |
4046 | (matching hierarchy_stoplist or not cachable request type) direct | |
4047 | to origin servers. | |
4048 | ||
4049 | If you set this to off, then Squid will prefer to send these | |
4050 | requests to parents. | |
4051 | ||
4052 | Note that in most configurations, by turning this off you will only | |
4053 | add latency to these request without any improvement in global hit | |
4054 | ratio. | |
4055 | ||
4056 | If you are inside an firewall then see never_direct instead of | |
4057 | this directive. | |
4058 | DOC_END | |
4059 | ||
4060 | NAME: prefer_direct | |
4061 | TYPE: onoff | |
4062 | LOC: Config.onoff.prefer_direct | |
4063 | DEFAULT: off | |
4064 | DOC_START | |
4065 | Normally Squid tries to use parents for most requests. If you by some | |
4066 | reason like it to first try going direct and only use a parent if | |
4067 | going direct fails then set this to on. | |
4068 | ||
4069 | By combining nonhierarchical_direct off and prefer_direct on you | |
4070 | can set up Squid to use a parent as a backup path if going direct | |
4071 | fails. | |
4072 | DOC_END | |
4073 | ||
4074 | NAME: strip_query_terms | |
4075 | TYPE: onoff | |
4076 | LOC: Config.onoff.strip_query_terms | |
4077 | DEFAULT: on | |
4078 | DOC_START | |
4079 | By default, Squid strips query terms from requested URLs before | |
4080 | logging. This protects your user's privacy. | |
4081 | DOC_END | |
4082 | ||
4083 | NAME: coredump_dir | |
4084 | TYPE: string | |
4085 | LOC: Config.coredump_dir | |
4086 | DEFAULT: none | |
4087 | DEFAULT_IF_NONE: none | |
4088 | DOC_START | |
4089 | By default Squid leaves core files in the directory from where | |
4090 | it was started. If you set 'coredump_dir' to a directory | |
4091 | that exists, Squid will chdir() to that directory at startup | |
4092 | and coredump files will be left there. | |
4093 | ||
4094 | NOCOMMENT_START | |
4095 | # Leave coredumps in the first cache dir | |
4096 | coredump_dir @DEFAULT_SWAP_DIR@ | |
4097 | NOCOMMENT_END | |
4098 | DOC_END | |
4099 | ||
4100 | NAME: redirector_bypass | |
4101 | TYPE: onoff | |
4102 | LOC: Config.onoff.redirector_bypass | |
4103 | DEFAULT: off | |
4104 | DOC_START | |
4105 | When this is 'on', a request will not go through the | |
4106 | redirector if all redirectors are busy. If this is 'off' | |
4107 | and the redirector queue grows too large, Squid will exit | |
4108 | with a FATAL error and ask you to increase the number of | |
4109 | redirectors. You should only enable this if the redirectors | |
4110 | are not critical to your caching system. If you use | |
4111 | redirectors for access control, and you enable this option, | |
4112 | then users may have access to pages that they should not | |
4113 | be allowed to request. | |
4114 | DOC_END | |
4115 | ||
4116 | NAME: ignore_unknown_nameservers | |
4117 | TYPE: onoff | |
4118 | LOC: Config.onoff.ignore_unknown_nameservers | |
4119 | DEFAULT: on | |
4120 | DOC_START | |
4121 | By default Squid checks that DNS responses are received | |
4122 | from the same IP addresses that they are sent to. If they | |
4123 | don't match, Squid ignores the response and writes a warning | |
4124 | message to cache.log. You can allow responses from unknown | |
4125 | nameservers by setting this option to 'off'. | |
4126 | DOC_END | |
4127 | ||
4128 | NAME: digest_generation | |
4129 | IFDEF: USE_CACHE_DIGESTS | |
4130 | TYPE: onoff | |
4131 | LOC: Config.onoff.digest_generation | |
4132 | DEFAULT: on | |
4133 | DOC_START | |
4134 | This controls whether the server will generate a Cache Digest | |
4135 | of its contents. By default, Cache Digest generation is | |
4136 | enabled if Squid is compiled with USE_CACHE_DIGESTS defined. | |
4137 | DOC_END | |
4138 | ||
4139 | NAME: digest_bits_per_entry | |
4140 | IFDEF: USE_CACHE_DIGESTS | |
4141 | TYPE: int | |
4142 | LOC: Config.digest.bits_per_entry | |
4143 | DEFAULT: 5 | |
4144 | DOC_START | |
4145 | This is the number of bits of the server's Cache Digest which | |
4146 | will be associated with the Digest entry for a given HTTP | |
4147 | Method and URL (public key) combination. The default is 5. | |
4148 | DOC_END | |
4149 | ||
4150 | NAME: digest_rebuild_period | |
4151 | IFDEF: USE_CACHE_DIGESTS | |
4152 | COMMENT: (seconds) | |
4153 | TYPE: time_t | |
4154 | LOC: Config.digest.rebuild_period | |
4155 | DEFAULT: 1 hour | |
4156 | DOC_START | |
4157 | This is the number of seconds between Cache Digest rebuilds. | |
4158 | DOC_END | |
4159 | ||
4160 | NAME: digest_rewrite_period | |
4161 | COMMENT: (seconds) | |
4162 | IFDEF: USE_CACHE_DIGESTS | |
4163 | TYPE: time_t | |
4164 | LOC: Config.digest.rewrite_period | |
4165 | DEFAULT: 1 hour | |
4166 | DOC_START | |
4167 | This is the number of seconds between Cache Digest writes to | |
4168 | disk. | |
4169 | DOC_END | |
4170 | ||
4171 | NAME: digest_swapout_chunk_size | |
4172 | COMMENT: (bytes) | |
4173 | TYPE: b_size_t | |
4174 | IFDEF: USE_CACHE_DIGESTS | |
4175 | LOC: Config.digest.swapout_chunk_size | |
4176 | DEFAULT: 4096 bytes | |
4177 | DOC_START | |
4178 | This is the number of bytes of the Cache Digest to write to | |
4179 | disk at a time. It defaults to 4096 bytes (4KB), the Squid | |
4180 | default swap page. | |
4181 | DOC_END | |
4182 | ||
4183 | NAME: digest_rebuild_chunk_percentage | |
4184 | COMMENT: (percent, 0-100) | |
4185 | IFDEF: USE_CACHE_DIGESTS | |
4186 | TYPE: int | |
4187 | LOC: Config.digest.rebuild_chunk_percentage | |
4188 | DEFAULT: 10 | |
4189 | DOC_START | |
4190 | This is the percentage of the Cache Digest to be scanned at a | |
4191 | time. By default it is set to 10% of the Cache Digest. | |
4192 | DOC_END | |
4193 | ||
4194 | NAME: chroot | |
4195 | TYPE: string | |
4196 | LOC: Config.chroot_dir | |
4197 | DEFAULT: none | |
4198 | DOC_START | |
4199 | Use this to have Squid do a chroot() while initializing. This | |
4200 | also causes Squid to fully drop root privileges after | |
4201 | initializing. This means, for example, that if you use a HTTP | |
4202 | port less than 1024 and try to reconfigure, you will get an | |
4203 | error. | |
4204 | DOC_END | |
4205 | ||
4206 | NAME: client_persistent_connections | |
4207 | TYPE: onoff | |
4208 | LOC: Config.onoff.client_pconns | |
4209 | DEFAULT: on | |
4210 | DOC_NONE | |
4211 | ||
4212 | NAME: server_persistent_connections | |
4213 | TYPE: onoff | |
4214 | LOC: Config.onoff.server_pconns | |
4215 | DEFAULT: on | |
4216 | DOC_START | |
4217 | Persistent connection support for clients and servers. By | |
4218 | default, Squid uses persistent connections (when allowed) | |
4219 | with its clients and servers. You can use these options to | |
4220 | disable persistent connections with clients and/or servers. | |
4221 | DOC_END | |
4222 | ||
4223 | NAME: pipeline_prefetch | |
4224 | TYPE: onoff | |
4225 | LOC: Config.onoff.pipeline_prefetch | |
4226 | DEFAULT: off | |
4227 | DOC_START | |
4228 | To boost the performance of pipelined requests to closer | |
4229 | match that of a non-proxied environment Squid can try to fetch | |
4230 | up to two requests in parallell from a pipeline. | |
4231 | ||
4232 | Defaults to off for bandwidth management and access logging | |
4233 | reasons. | |
4234 | DOC_END | |
4235 | ||
4236 | NAME: extension_methods | |
4237 | TYPE: wordlist | |
4238 | LOC: Config.ext_methods | |
4239 | DEFAULT: none | |
4240 | DOC_START | |
4241 | Squid only knows about standardized HTTP request methods. | |
4242 | You can add up to 20 additional "extension" methods here. | |
4243 | DOC_END | |
4244 | ||
4245 | NAME: request_entities | |
4246 | TYPE: onoff | |
4247 | LOC: Config.onoff.request_entities | |
4248 | DEFAULT: off | |
4249 | DOC_START | |
4250 | Squid defaults to deny GET and HEAD requests with request entities, | |
4251 | as the meaning of such requests are undefined in the HTTP standard | |
4252 | even if not explicitly forbidden. | |
4253 | ||
4254 | Set this directive to on if you have clients which insists | |
4255 | on sending request entities in GET or HEAD requests. | |
4256 | DOC_END | |
4257 | ||
4258 | NAME: high_response_time_warning | |
4259 | TYPE: int | |
4260 | COMMENT: (msec) | |
4261 | LOC: Config.warnings.high_rptm | |
4262 | DEFAULT: 0 | |
4263 | DOC_START | |
4264 | If the one-minute median response time exceeds this value, | |
4265 | Squid prints a WARNING with debug level 0 to get the | |
4266 | administrators attention. The value is in milliseconds. | |
4267 | DOC_END | |
4268 | ||
4269 | NAME: high_page_fault_warning | |
4270 | TYPE: int | |
4271 | LOC: Config.warnings.high_pf | |
4272 | DEFAULT: 0 | |
4273 | DOC_START | |
4274 | If the one-minute average page fault rate exceeds this | |
4275 | value, Squid prints a WARNING with debug level 0 to get | |
4276 | the administrators attention. The value is in page faults | |
4277 | per second. | |
4278 | DOC_END | |
4279 | ||
4280 | NAME: high_memory_warning | |
4281 | TYPE: b_size_t | |
4282 | LOC: Config.warnings.high_memory | |
4283 | DEFAULT: 0 | |
4284 | DOC_START | |
4285 | If the memory usage (as determined by mallinfo) exceeds | |
4286 | value, Squid prints a WARNING with debug level 0 to get | |
4287 | the administrators attention. | |
4288 | DOC_END | |
4289 | ||
4290 | NAME: store_dir_select_algorithm | |
4291 | TYPE: string | |
4292 | LOC: Config.store_dir_select_algorithm | |
4293 | DEFAULT: least-load | |
4294 | DOC_START | |
4295 | Set this to 'round-robin' as an alternative. | |
4296 | DOC_END | |
4297 | ||
4298 | NAME: forward_log | |
4299 | IFDEF: WIP_FWD_LOG | |
4300 | TYPE: string | |
4301 | DEFAULT: none | |
4302 | LOC: Config.Log.forward | |
4303 | DOC_START | |
4304 | Logs the server-side requests. | |
4305 | ||
4306 | This is currently work in progress. | |
4307 | DOC_END | |
4308 | ||
4309 | NAME: ie_refresh | |
4310 | COMMENT: on|off | |
4311 | TYPE: onoff | |
4312 | LOC: Config.onoff.ie_refresh | |
4313 | DEFAULT: off | |
4314 | DOC_START | |
4315 | Microsoft Internet Explorer up until version 5.5 Service | |
4316 | Pack 1 has an issue with transparent proxies, wherein it | |
4317 | is impossible to force a refresh. Turning this on provides | |
4318 | a partial fix to the problem, by causing all IMS-REFRESH | |
4319 | requests from older IE versions to check the origin server | |
4320 | for fresh content. This reduces hit ratio by some amount | |
4321 | (~10% in my experience), but allows users to actually get | |
4322 | fresh content when they want it. Note that because Squid | |
4323 | cannot tell if the user is using 5.5 or 5.5SP1, the behavior | |
4324 | of 5.5 is unchanged from old versions of Squid (i.e. a | |
4325 | forced refresh is impossible). Newer versions of IE will, | |
4326 | hopefully, continue to have the new behavior and will be | |
4327 | handled based on that assumption. This option defaults to | |
4328 | the old Squid behavior, which is better for hit ratios but | |
4329 | worse for clients using IE, if they need to be able to | |
4330 | force fresh content. | |
4331 | DOC_END | |
4332 | ||
4333 | NAME: vary_ignore_expire | |
4334 | COMMENT: on|off | |
4335 | TYPE: onoff | |
4336 | LOC: Config.onoff.vary_ignore_expire | |
4337 | DEFAULT: off | |
4338 | DOC_START | |
4339 | Many HTTP servers supporting Vary gives such objects | |
4340 | immediate expiry time with no cache-control header | |
4341 | when requested by a HTTP/1.0 client. This option | |
4342 | enables Squid to ignore such expiry times until | |
4343 | HTTP/1.1 is fully implemented. | |
4344 | WARNING: This may eventually cause some varying | |
4345 | objects not intended for caching to get cached. | |
4346 | DOC_END | |
4347 | ||
4348 | NAME: sleep_after_fork | |
4349 | COMMENT: (microseconds) | |
4350 | TYPE: int | |
4351 | LOC: Config.sleep_after_fork | |
4352 | DEFAULT: 0 | |
4353 | DOC_START | |
4354 | When this is set to a non-zero value, the main Squid process | |
4355 | sleeps the specified number of microseconds after a fork() | |
4356 | system call. This sleep may help the situation where your | |
4357 | system reports fork() failures due to lack of (virtual) | |
4358 | memory. Note, however, that if you have a lot of child | |
4359 | processes, then these sleep delays will add up and your | |
4360 | Squid will not service requests for some amount of time | |
4361 | until all the child processes have been started. | |
4362 | DOC_END | |
4363 | ||
4364 | EOF |