Guest User

Squid.conf

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