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