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