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