Advertisement
Guest User

squid.conf for Second Life Texture Cache (catznip.com)

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