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