Advertisement
Guest User

bram_

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