AndrzejL

11 Apr 2013 Squid.conf

Apr 10th, 2013
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.07 KB | None | 0 0
  1. # WELCOME TO SQUID 2
  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
  23. # hostname:port
  24. # 1.2.3.4:port
  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, then 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. # The default port number is 3128.
  36. #
  37. # If you are running Squid in accelerator mode, then you
  38. # probably want to listen on port 80 also, or instead.
  39. #
  40. # The -a command line option will override the *first* port
  41. # number listed here. That option will NOT override an IP
  42. # address, however.
  43. #
  44. # You may specify multiple socket addresses on multiple lines.
  45. #
  46. #Default:
  47. http_port 3128 transparent
  48. http_port 3129
  49.  
  50. # TAG: icp_port
  51. # The port number where Squid sends and receives ICP queries to
  52. # and from neighbor caches. Default is 3130. To disable use
  53. # "0". May be overridden with -u on the command line.
  54. #
  55. #Default:
  56. # icp_port 3130
  57.  
  58. # TAG: htcp_port
  59. # The port number where Squid sends and receives HTCP queries to
  60. # and from neighbor caches. Default is 4827. To disable use
  61. # "0".
  62. #
  63. # To enable this option, you must use --enable-htcp with the
  64. # configure script.
  65. #
  66. #Default:
  67. # htcp_port 4827
  68.  
  69. # TAG: mcast_groups
  70. # This tag specifies a list of multicast groups which your server
  71. # should join to receive multicasted ICP queries.
  72. #
  73. # NOTE! Be very careful what you put here! Be sure you
  74. # understand the difference between an ICP _query_ and an ICP
  75. # _reply_. This option is to be set only if you want to RECEIVE
  76. # multicast queries. Do NOT set this option to SEND multicast
  77. # ICP (use cache_peer for that). ICP replies are always sent via
  78. # unicast, so this option does not affect whether or not you will
  79. # receive replies from multicast group members.
  80. #
  81. # You must be very careful to NOT use a multicast address which
  82. # is already in use by another group of caches.
  83. #
  84. # If you are unsure about multicast, please read the Multicast
  85. # chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/).
  86. #
  87. # Usage: mcast_groups 239.128.16.128 224.0.1.20
  88. #
  89. # By default, Squid doesn't listen on any multicast groups.
  90. #
  91. #Default:
  92. # none
  93.  
  94. # TAG: tcp_outgoing_address
  95. # TAG: udp_incoming_address
  96. # TAG: udp_outgoing_address
  97. # Usage: tcp_incoming_address 10.20.30.40
  98. # udp_outgoing_address fully.qualified.domain.name
  99. #
  100. # tcp_outgoing_address is used for connections made to remote
  101. # servers and other caches.
  102. # udp_incoming_address is used for the ICP socket receiving packets
  103. # from other caches.
  104. # udp_outgoing_address is used for ICP packets sent out to other
  105. # caches.
  106. #
  107. # The default behavior is to not bind to any specific address.
  108. #
  109. # A *_incoming_address value of 0.0.0.0 indicates that Squid should
  110. # listen on all available interfaces.
  111. #
  112. # If udp_outgoing_address is set to 255.255.255.255 (the default)
  113. # then it will use the same socket as udp_incoming_address. Only
  114. # change this if you want to have ICP queries sent using another
  115. # address than where this Squid listens for ICP queries from other
  116. # caches.
  117. #
  118. # NOTE, udp_incoming_address and udp_outgoing_address can not
  119. # have the same value since they both use port 3130.
  120. #
  121. # NOTE, tcp_incoming_address has been removed. You can now
  122. # specify IP addresses on the 'http_port' line.
  123. #
  124. #Default:
  125. # tcp_outgoing_address 255.255.255.255
  126. # udp_incoming_address 0.0.0.0
  127. # udp_outgoing_address 255.255.255.255
  128.  
  129.  
  130. # OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
  131. # -----------------------------------------------------------------------------
  132.  
  133. # TAG: cache_peer
  134. # To specify other caches in a hierarchy, use the format:
  135. #
  136. # cache_peer hostname type http_port icp_port
  137. #
  138. # For example,
  139. #
  140. # # proxy icp
  141. # # hostname type port port options
  142. # # -------------------- -------- ----- ----- -----------
  143. # cache_peer parent.foo.net parent 3128 3130 [proxy-only]
  144. # cache_peer sib1.foo.net sibling 3128 3130 [proxy-only]
  145. # cache_peer sib2.foo.net sibling 3128 3130 [proxy-only]
  146. #
  147. # type: either 'parent', 'sibling', or 'multicast'.
  148. #
  149. # proxy_port: The port number where the cache listens for proxy
  150. # requests.
  151. #
  152. # icp_port: Used for querying neighbor caches about
  153. # objects. To have a non-ICP neighbor
  154. # specify '7' for the ICP port and make sure the
  155. # neighbor machine has the UDP echo port
  156. # enabled in its /etc/inetd.conf file.
  157. #
  158. # options: proxy-only
  159. # weight=n
  160. # ttl=n
  161. # no-query
  162. # default
  163. # round-robin
  164. # multicast-responder
  165. # closest-only
  166. # no-digest
  167. # no-netdb-exchange
  168. # no-delay
  169. # login=user:password
  170. # connect-timeout=nn
  171. # digest-url=url
  172. # allow-miss
  173. #
  174. # use 'proxy-only' to specify that objects fetched
  175. # from this cache should not be saved locally.
  176. #
  177. # use 'weight=n' to specify a weighted parent.
  178. # The weight must be an integer. The default weight
  179. # is 1, larger weights are favored more.
  180. #
  181. # use 'ttl=n' to specify a IP multicast TTL to use
  182. # when sending an ICP queries to this address.
  183. # Only useful when sending to a multicast group.
  184. # Because we don't accept ICP replies from random
  185. # hosts, you must configure other group members as
  186. # peers with the 'multicast-responder' option below.
  187. #
  188. # use 'no-query' to NOT send ICP queries to this
  189. # neighbor.
  190. #
  191. # use 'default' if this is a parent cache which can
  192. # be used as a "last-resort." You should probably
  193. # only use 'default' in situations where you cannot
  194. # use ICP with your parent cache(s).
  195. #
  196. # use 'round-robin' to define a set of parents which
  197. # should be used in a round-robin fashion in the
  198. # absence of any ICP queries.
  199. #
  200. # 'multicast-responder' indicates that the named peer
  201. # is a member of a multicast group. ICP queries will
  202. # not be sent directly to the peer, but ICP replies
  203. # will be accepted from it.
  204. #
  205. # 'closest-only' indicates that, for ICP_OP_MISS
  206. # replies, we'll only forward CLOSEST_PARENT_MISSes
  207. # and never FIRST_PARENT_MISSes.
  208. #
  209. # use 'no-digest' to NOT request cache digests from
  210. # this neighbor.
  211. #
  212. # 'no-netdb-exchange' disables requesting ICMP
  213. # RTT database (NetDB) from the neighbor.
  214. #
  215. # use 'no-delay' to prevent access to this neighbor
  216. # from influencing the delay pools.
  217. #
  218. # use 'login=user:password' if this is a personal/workgroup
  219. # proxy and your parent requires proxy authentication.
  220. #
  221. # use 'connect-timeout=nn' to specify a peer
  222. # specific connect timeout (also see the
  223. # peer_connect_timeout directive)
  224. #
  225. # use 'digest-url=url' to tell Squid to fetch the cache
  226. # digest (if digests are enabled) for this host from
  227. # the specified URL rather than the Squid default
  228. # location.
  229. #
  230. # use 'allow-miss' to disable Squid's use of only-if-cached
  231. # when forwarding requests to siblings. This is primarily
  232. # useful when icp_hit_stale is used by the sibling. To
  233. # extensive use of this option may result in forwarding
  234. # loops, and you should avoid having two-way peerings
  235. # with this option. (for example to deny peer usage on
  236. # requests from peer by denying cache_peer_access if the
  237. # source is a peer)
  238. #
  239. # NOTE: non-ICP neighbors must be specified as 'parent'.
  240. #
  241. #Default:
  242. # none
  243.  
  244. # TAG: cache_peer_domain
  245. # Use to limit the domains for which a neighbor cache will be
  246. # queried. Usage:
  247. #
  248. # cache_peer_domain cache-host domain [domain ...]
  249. # cache_peer_domain cache-host !domain
  250. #
  251. # For example, specifying
  252. #
  253. # cache_peer_domain parent.foo.net .edu
  254. #
  255. # has the effect such that UDP query packets are sent to
  256. # 'bigserver' only when the requested object exists on a
  257. # server in the .edu domain. Prefixing the domainname
  258. # with '!' means that the cache will be queried for objects
  259. # NOT in that domain.
  260. #
  261. # NOTE: * Any number of domains may be given for a cache-host,
  262. # either on the same or separate lines.
  263. # * When multiple domains are given for a particular
  264. # cache-host, the first matched domain is applied.
  265. # * Cache hosts with no domain restrictions are queried
  266. # for all requests.
  267. # * There are no defaults.
  268. # * There is also a 'cache_peer_access' tag in the ACL
  269. # section.
  270. #
  271. #Default:
  272. # none
  273.  
  274. # TAG: neighbor_type_domain
  275. # usage: neighbor_type_domain parent|sibling domain domain ...
  276. #
  277. # Modifying the neighbor type for specific domains is now
  278. # possible. You can treat some domains differently than the the
  279. # default neighbor type specified on the 'cache_peer' line.
  280. # Normally it should only be necessary to list domains which
  281. # should be treated differently because the default neighbor type
  282. # applies for hostnames which do not match domains listed here.
  283. #
  284. #EXAMPLE:
  285. # cache_peer parent cache.foo.org 3128 3130
  286. # neighbor_type_domain cache.foo.org sibling .com .net
  287. # neighbor_type_domain cache.foo.org sibling .au .de
  288. #
  289. #Default:
  290. # none
  291.  
  292. # TAG: icp_query_timeout (msec)
  293. # Normally Squid will automatically determine an optimal ICP
  294. # query timeout value based on the round-trip-time of recent ICP
  295. # queries. If you want to override the value determined by
  296. # Squid, set this 'icp_query_timeout' to a non-zero value. This
  297. # value is specified in MILLISECONDS, so, to use a 2-second
  298. # timeout (the old default), you would write:
  299. #
  300. # icp_query_timeout 2000
  301. #
  302. #Default:
  303. # icp_query_timeout 0
  304.  
  305. # TAG: maximum_icp_query_timeout (msec)
  306. # Normally the ICP query timeout is determined dynamically. But
  307. # sometimes it can lead to very large values (say 5 seconds).
  308. # Use this option to put an upper limit on the dynamic timeout
  309. # value. Do NOT use this option to always use a fixed (instead
  310. # of a dynamic) timeout value. To set a fixed timeout see the
  311. # 'icp_query_timeout' directive.
  312. #
  313. #Default:
  314. # maximum_icp_query_timeout 2000
  315.  
  316. # TAG: mcast_icp_query_timeout (msec)
  317. # For Multicast peers, Squid regularly sends out ICP "probes" to
  318. # count how many other peers are listening on the given multicast
  319. # address. This value specifies how long Squid should wait to
  320. # count all the replies. The default is 2000 msec, or 2
  321. # seconds.
  322. #
  323. #Default:
  324. # mcast_icp_query_timeout 2000
  325.  
  326. # TAG: dead_peer_timeout (seconds)
  327. # This controls how long Squid waits to declare a peer cache
  328. # as "dead." If there are no ICP replies received in this
  329. # amount of time, Squid will declare the peer dead and not
  330. # expect to receive any further ICP replies. However, it
  331. # continues to send ICP queries, and will mark the peer as
  332. # alive upon receipt of the first subsequent ICP reply.
  333. #
  334. # This timeout also affects when Squid expects to receive ICP
  335. # replies from peers. If more than 'dead_peer' seconds have
  336. # passed since the last ICP reply was received, Squid will not
  337. # expect to receive an ICP reply on the next query. Thus, if
  338. # your time between requests is greater than this timeout, you
  339. # will see a lot of requests sent DIRECT to origin servers
  340. # instead of to your parents.
  341. #
  342. #Default:
  343. # dead_peer_timeout 10 seconds
  344.  
  345. # TAG: hierarchy_stoplist
  346. # A list of words which, if found in a URL, cause the object to
  347. # be handled directly by this cache. In other words, use this
  348. # to not query neighbor caches for certain objects. You may
  349. # list this option multiple times.
  350. #
  351. #We recommend you to use at least the following line.
  352. hierarchy_stoplist cgi-bin ?
  353.  
  354. # TAG: no_cache
  355. # A list of ACL elements which, if matched, cause the reply to
  356. # immediately removed from the cache. In other words, use this
  357. # to force certain objects to never be cached.
  358. #
  359. # You must use the word 'DENY' to indicate the ACL names which should
  360. # NOT be cached.
  361. #
  362. #We recommend you to use the following two lines.
  363. acl QUERY urlpath_regex cgi-bin \?
  364. no_cache deny QUERY
  365. acl DENYTARGZ urlpath_regex \.tar.gz
  366. no_cache deny DENYTARGZ
  367. acl DENYDB urlpath_regex \.db
  368. no_cache deny DENYDB
  369. acl DENYRPM urlpath_regex \.rpm
  370. no_cache deny DENYRPM
  371. acl DENYZIP urlpath_regex \.zip
  372. no_cache deny DENYZIP
  373. acl NO-CACHE-SITES dstdomain "/etc/squid/not-to-cache-sites.txt"
  374. no_cache deny NO-CACHE-SITES
  375. #cache deny postimage
  376.  
  377.  
  378. # OPTIONS WHICH AFFECT THE CACHE SIZE
  379. # -----------------------------------------------------------------------------
  380.  
  381. # TAG: cache_mem (bytes)
  382. # NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS
  383. # SIZE. IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY
  384. # USAGE. SQUID USES MEMORY FOR OTHER THINGS AS WELL.
  385. # YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES
  386. # BIGGER THAN THE VALUE YOU PUT HERE
  387. #
  388. # 'cache_mem' specifies the ideal amount of memory to be used
  389. # for:
  390. # * In-Transit objects
  391. # * Hot Objects
  392. # * Negative-Cached objects
  393. #
  394. # Data for these objects are stored in 4 KB blocks. This
  395. # parameter specifies the ideal upper limit on the total size of
  396. # 4 KB blocks allocated. In-Transit objects take the highest
  397. # priority.
  398. #
  399. # In-transit objects have priority over the others. When
  400. # additional space is needed for incoming data, negative-cached
  401. # and hot objects will be released. In other words, the
  402. # negative-cached and hot objects will fill up any unused space
  403. # not needed for in-transit objects.
  404. #
  405. # If circumstances require, this limit will be exceeded.
  406. # Specifically, if your incoming request rate requires more than
  407. # 'cache_mem' of memory to hold in-transit objects, Squid will
  408. # exceed this limit to satisfy the new requests. When the load
  409. # decreases, blocks will be freed until the high-water mark is
  410. # reached. Thereafter, blocks will be used to store hot
  411. # objects.
  412. #
  413. #Default:
  414. cache_mem 512 MB
  415.  
  416. # TAG: cache_swap_low (percent, 0-100)
  417. # TAG: cache_swap_high (percent, 0-100)
  418. #
  419. # The low- and high-water marks for cache object replacement.
  420. # Replacement begins when the swap (disk) usage is above the
  421. # low-water mark and attempts to maintain utilization near the
  422. # low-water mark. As swap utilization gets close to high-water
  423. # mark object eviction becomes more aggressive. If utilization is
  424. # close to the low-water mark less replacement is done each time.
  425. #
  426. # Defaults are 90% and 95%. If you have a large cache, 5% could be
  427. # hundreds of MB. If this is the case you may wish to set these
  428. # numbers closer together.
  429. #
  430. #Default:
  431. # cache_swap_low 90
  432. # cache_swap_high 95
  433.  
  434. # TAG: maximum_object_size (bytes)
  435. # Objects larger than this size will NOT be saved on disk. The
  436. # value is specified in kilobytes, and the default is 4MB. If
  437. # you wish to get a high BYTES hit ratio, you should probably
  438. # increase this (one 32 MB object hit counts for 3200 10KB
  439. # hits). If you wish to increase speed more than your want to
  440. # save bandwidth you should leave this low.
  441. #
  442. # NOTE: if using the LFUDA replacement policy you should increase
  443. # this value to maximize the byte hit rate improvement of LFUDA!
  444. # See replacement_policy below for a discussion of this policy.
  445. #
  446. #Default:
  447. maximum_object_size 720800 KB
  448.  
  449. # TAG: minimum_object_size (bytes)
  450. # Objects smaller than this size will NOT be saved on disk. The
  451. # value is specified in kilobytes, and the default is 0 KB, which
  452. # means there is no minimum.
  453. #
  454. #Default:
  455. # minimum_object_size 0 KB
  456.  
  457. # TAG: maximum_object_size_in_memory (bytes)
  458. # Objects greater than this size will not be attempted to kept in
  459. # the memory cache. This should be set high enough to keep objects
  460. # accessed frequently in memory to improve performance whilst low
  461. # enough to keep larger objects from hoarding cache_mem .
  462. #
  463. #Default:
  464. # maximum_object_size_in_memory 8 KB
  465.  
  466. # TAG: ipcache_size (number of entries)
  467. # TAG: ipcache_low (percent)
  468. # TAG: ipcache_high (percent)
  469. # The size, low-, and high-water marks for the IP cache.
  470. #
  471. #Default:
  472. # ipcache_size 1024
  473. # ipcache_low 90
  474. # ipcache_high 95
  475.  
  476. # TAG: fqdncache_size (number of entries)
  477. # Maximum number of FQDN cache entries.
  478. #
  479. #Default:
  480. # fqdncache_size 1024
  481.  
  482. # TAG: cache_replacement_policy
  483. # The cache replacement policy parameter determines which
  484. # objects are evicted (replaced) when disk space is needed.
  485. #
  486. # lru : Squid's original list based LRU policy
  487. # heap GDSF : Greedy-Dual Size Frequency
  488. # heap LFUDA: Least Frequently Used with Dynamic Aging
  489. # heap LRU : LRU policy implemented using a heap
  490. #
  491. # Applies to any cache_dir lines listed below this.
  492. #
  493. # The LRU policies keeps recently referenced objects.
  494. #
  495. # The heap GDSF policy optimizes object hit rate by keeping smaller
  496. # popular objects in cache so it has a better chance of getting a
  497. # hit. It achieves a lower byte hit rate than LFUDA though since
  498. # it evicts larger (possibly popular) objects.
  499. #
  500. # The heap LFUDA policy keeps popular objects in cache regardless of
  501. # their size and thus optimizes byte hit rate at the expense of
  502. # hit rate since one large, popular object will prevent many
  503. # smaller, slightly less popular objects from being cached.
  504. #
  505. # Both policies utilize a dynamic aging mechanism that prevents
  506. # cache pollution that can otherwise occur with frequency-based
  507. # replacement policies.
  508. #
  509. # NOTE: if using the LFUDA replacement policy you should increase
  510. # the value of maximum_object_size above its default of 4096 KB to
  511. # to maximize the potential byte hit rate improvement of LFUDA.
  512. #
  513. # For more information about the GDSF and LFUDA cache replacement
  514. # policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
  515. # and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html.
  516. #
  517. #Default:
  518. # cache_replacement_policy lru
  519.  
  520. # TAG: memory_replacement_policy
  521. # The memory replacement policy parameter determines which
  522. # objects are purged from memory when memory space is needed.
  523. #
  524. # See cache_replacement_policy for details.
  525. #
  526. #Default:
  527. # memory_replacement_policy lru
  528.  
  529.  
  530. # LOGFILE PATHNAMES AND CACHE DIRECTORIES
  531. # -----------------------------------------------------------------------------
  532.  
  533. # TAG: cache_dir
  534. # Usage:
  535. #
  536. # cache_dir Type Directory-Name Fs-specific-data [options]
  537. #
  538. # You can specify multiple cache_dir lines to spread the
  539. # cache among different disk partitions.
  540. #
  541. # Type specifies the kind of storage system to use. Most
  542. # everyone will want to use "ufs" as the type. If you are using
  543. # Async I/O (--enable async-io) on Linux or Solaris, then you may
  544. # want to try "aufs" as the type. Async IO support may be
  545. # buggy, however, so beware.
  546. #
  547. # 'Directory' is a top-level directory where cache swap
  548. # files will be stored. If you want to use an entire disk
  549. # for caching, then this can be the mount-point directory.
  550. # The directory must exist and be writable by the Squid
  551. # process. Squid will NOT create this directory for you.
  552. #
  553. # The ufs store type:
  554. #
  555. # "ufs" is the old well-known Squid storage format that has always
  556. # been there.
  557. #
  558. # cache_dir ufs Directory-Name Mbytes L1 L2 [options]
  559. #
  560. # 'Mbytes' is the amount of disk space (MB) to use under this
  561. # directory. The default is 100 MB. Change this to suit your
  562. # configuration.
  563. #
  564. # 'Level-1' is the number of first-level subdirectories which
  565. # will be created under the 'Directory'. The default is 16.
  566. #
  567. # 'Level-2' is the number of second-level subdirectories which
  568. # will be created under each first-level directory. The default
  569. # is 256.
  570. #
  571. # The aufs store type:
  572. #
  573. # "aufs" uses the same storage format as "ufs", utilizing
  574. # POSIX-threads to avoid blocking the main Squid process on
  575. # disk-I/O. This was formerly known in Squid as async-io.
  576. #
  577. # cache_dir aufs Directory-Name Mbytes L1 L2 [options]
  578. #
  579. # see argument descriptions under ufs above
  580. #
  581. # The diskd store type:
  582. #
  583. # "diskd" uses the same storage format as "ufs", utilizing a
  584. # separate process to avoid blocking the main Squid process on
  585. # disk-I/O.
  586. #
  587. # cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
  588. #
  589. # see argument descriptions under ufs above
  590. #
  591. # Q1 specifies the number of unacknowledged I/O requests when Squid
  592. # stops opening new files. If this many messages are in the queues,
  593. # Squid won't open new files. Default is 64
  594. #
  595. # Q2 specifies the number of unacknowledged messages when Squid
  596. # starts blocking. If this many messages are in the queues,
  597. # Squid blocks until it recevies some replies. Default is 72
  598. #
  599. # Common options:
  600. #
  601. # read-only, this cache_dir is read only.
  602. #
  603. # max-size=n, refers to the max object size this storedir supports.
  604. # It is used to initially choose the storedir to dump the object.
  605. # Note: To make optimal use of the max-size limits you should order
  606. # the cache_dir lines with the smallest max-size value first and the
  607. # ones with no max-size specification last.
  608. #
  609. #Default:
  610. cache_dir ufs /var/Squid/Cache 6144 16 256
  611.  
  612. # TAG: cache_access_log
  613. # Logs the client request activity. Contains an entry for
  614. # every HTTP and ICP queries received.
  615. #
  616. #Default:
  617. # cache_access_log /var/log/squid/access.log
  618.  
  619. # TAG: cache_log
  620. # Cache logging file. This is where general information about
  621. # your cache's behavior goes. You can increase the amount of data
  622. # logged to this file with the "debug_options" tag below.
  623. #
  624. #Default:
  625. # cache_log /var/log/squid/cache.log
  626.  
  627. # TAG: cache_store_log
  628. # Logs the activities of the storage manager. Shows which
  629. # objects are ejected from the cache, and which objects are
  630. # saved and for how long. To disable, enter "none". There are
  631. # not really utilities to analyze this data, so you can safely
  632. # disable it.
  633. #
  634. #Default:
  635. # cache_store_log /var/log/squid/store.log
  636. cache_store_log /var/log/squid/store.log
  637.  
  638. # TAG: cache_swap_log
  639. # Location for the cache "swap.log." This log file holds the
  640. # metadata of objects saved on disk. It is used to rebuild the
  641. # cache during startup. Normally this file resides in each
  642. # 'cache_dir' directory, but you may specify an alternate
  643. # pathname here. Note you must give a full filename, not just
  644. # a directory. Since this is the index for the whole object
  645. # list you CANNOT periodically rotate it!
  646. #
  647. # If %s can be used in the file name then it will be replaced with a
  648. # a representation of the cache_dir name where each / is replaced
  649. # with '.'. This is needed to allow adding/removing cache_dir
  650. # lines when cache_swap_log is being used.
  651. #
  652. # If have more than one 'cache_dir', and %s is not used in the name
  653. # then these swap logs will have names such as:
  654. #
  655. # cache_swap_log.00
  656. # cache_swap_log.01
  657. # cache_swap_log.02
  658. #
  659. # The numbered extension (which is added automatically)
  660. # corresponds to the order of the 'cache_dir' lines in this
  661. # configuration file. If you change the order of the 'cache_dir'
  662. # lines in this file, then these log files will NOT correspond to
  663. # the correct 'cache_dir' entry (unless you manually rename
  664. # them). We recommend that you do NOT use this option. It is
  665. # better to keep these log files in each 'cache_dir' directory.
  666. #
  667. #Default:
  668. # none
  669.  
  670. # TAG: emulate_httpd_log on|off
  671. # The Cache can emulate the log file format which many 'httpd'
  672. # programs use. To disable/enable this emulation, set
  673. # emulate_httpd_log to 'off' or 'on'. The default
  674. # is to use the native log format since it includes useful
  675. # information that Squid-specific log analyzers use.
  676. #
  677. #Default:
  678. # emulate_httpd_log off
  679.  
  680. # TAG: log_ip_on_direct on|off
  681. # Log the destination IP address in the hierarchy log tag when going
  682. # direct. Earlier Squid versions logged the hostname here. If you
  683. # prefer the old way set this to off.
  684. #
  685. #Default:
  686. # log_ip_on_direct on
  687.  
  688. # TAG: mime_table
  689. # Pathname to Squid's MIME table. You shouldn't need to change
  690. # this, but the default file contains examples and formatting
  691. # information if you do.
  692. #
  693. #Default:
  694. # mime_table /etc/squid/mime.conf
  695.  
  696. # TAG: log_mime_hdrs on|off
  697. # The Cache can record both the request and the response MIME
  698. # headers for each HTTP transaction. The headers are encoded
  699. # safely and will appear as two bracketed fields at the end of
  700. # the access log (for either the native or httpd-emulated log
  701. # formats). To enable this logging set log_mime_hdrs to 'on'.
  702. #
  703. #Default:
  704. # log_mime_hdrs off
  705.  
  706. # TAG: useragent_log
  707. # Squid will write the User-Agent field from HTTP requests
  708. # to the filename specified here. By default useragent_log
  709. # is disabled.
  710. #
  711. #Default:
  712. # none
  713.  
  714. # TAG: referer_log
  715. # Note: This option is only available if Squid is rebuilt with the
  716. # --enable-referer-log option
  717. #
  718. # Squid will write the Referer field from HTTP requests to the
  719. # filename specified here. By default referer_log is disabled.
  720. #
  721. #Default:
  722. # none
  723.  
  724. # TAG: pid_filename
  725. # A filename to write the process-id to. To disable, enter "none".
  726. #
  727. #Default:
  728. # pid_filename /var/run/squid.pid
  729.  
  730. # TAG: debug_options
  731. # Logging options are set as section,level where each source file
  732. # is assigned a unique section. Lower levels result in less
  733. # output, Full debugging (level 9) can result in a very large
  734. # log file, so be careful. The magic word "ALL" sets debugging
  735. # levels for all sections. We recommend normally running with
  736. # "ALL,1".
  737. #
  738. #Default:
  739. # debug_options ALL,1
  740.  
  741. # TAG: log_fqdn on|off
  742. # Turn this on if you wish to log fully qualified domain names
  743. # in the access.log. To do this Squid does a DNS lookup of all
  744. # IP's connecting to it. This can (in some situations) increase
  745. # latency, which makes your cache seem slower for interactive
  746. # browsing.
  747. #
  748. #Default:
  749. # log_fqdn off
  750.  
  751. # TAG: client_netmask
  752. # A netmask for client addresses in logfiles and cachemgr output.
  753. # Change this to protect the privacy of your cache clients.
  754. # A netmask of 255.255.255.0 will log all IP's in that range with
  755. # the last digit set to '0'.
  756. #
  757. #Default:
  758. # client_netmask 255.255.255.255
  759.  
  760.  
  761. # OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
  762. # -----------------------------------------------------------------------------
  763.  
  764. # TAG: ftp_user
  765. # If you want the anonymous login password to be more informative
  766. # (and enable the use of picky ftp servers), set this to something
  767. # reasonable for your domain, like [email protected]
  768. #
  769. # The reason why this is domainless by default is that the
  770. # request can be made on the behalf of a user in any domain,
  771. # depending on how the cache is used.
  772. # Some ftp server also validate that the email address is valid
  773. # (for example perl.com).
  774. #
  775. #Default:
  776. # ftp_user Squid@
  777.  
  778. # TAG: ftp_list_width
  779. # Sets the width of ftp listings. This should be set to fit in
  780. # the width of a standard browser. Setting this too small
  781. # can cut off long filenames when browsing ftp sites.
  782. #
  783. #Default:
  784. # ftp_list_width 32
  785.  
  786. # TAG: ftp_passive
  787. # If your firewall does not allow Squid to use passive
  788. # connections, then turn off this option.
  789. #
  790. #Default:
  791. # ftp_passive on
  792.  
  793. # TAG: cache_dns_program
  794. # Note: This option is only available if Squid is rebuilt with the
  795. # --disable-internal-dns option
  796. #
  797. # Specify the location of the executable for dnslookup process.
  798. #
  799. #Default:
  800. # cache_dns_program /usr/lib/squid/
  801.  
  802. # TAG: dns_children
  803. # Note: This option is only available if Squid is rebuilt with the
  804. # --disable-internal-dns option
  805. #
  806. # The number of processes spawn to service DNS name lookups.
  807. # For heavily loaded caches on large servers, you should
  808. # probably increase this value to at least 10. The maximum
  809. # is 32. The default is 5.
  810. #
  811. # You must have at least one dnsserver process.
  812. #
  813. #Default:
  814. # dns_children 5
  815.  
  816. # TAG: dns_retransmit_interval
  817. # Initial retransmit interval for DNS queries. The interval is
  818. # doubled each time all configured DNS servers have been tried.
  819. #
  820. #
  821. #Default:
  822. # dns_retransmit_interval 5 seconds
  823.  
  824. # TAG: dns_timeout
  825. # DNS Query timeout. If no response is received to a DNS query
  826. # within this time then all DNS servers for the queried domain
  827. # is assumed to be unavailable.
  828. #
  829. #Default:
  830. # dns_timeout 5 minutes
  831.  
  832. # TAG: dns_defnames on|off
  833. # Note: This option is only available if Squid is rebuilt with the
  834. # --disable-internal-dns option
  835. #
  836. # Normally the 'dnsserver' disables the RES_DEFNAMES resolver
  837. # option (see res_init(3)). This prevents caches in a hierarchy
  838. # from interpreting single-component hostnames locally. To allow
  839. # dnsserver to handle single-component names, enable this
  840. # option.
  841. #
  842. #Default:
  843. # dns_defnames off
  844.  
  845. # TAG: dns_nameservers
  846. # Use this if you want to specify a list of DNS name servers
  847. # (IP addresses) to use instead of those given in your
  848. # /etc/resolv.conf file.
  849. #
  850. # Example: dns_nameservers 10.0.0.1 192.172.0.4
  851. #
  852. #Default:
  853. # none
  854.  
  855. # TAG: diskd_program
  856. # Specify the location of the diskd executable.
  857. # Note that this is only useful if you have compiled in
  858. # diskd as one of the store io modules.
  859. #
  860. #Default:
  861. # diskd_program /usr/lib/squid/diskd
  862.  
  863. # TAG: unlinkd_program
  864. # Specify the location of the executable for file deletion process.
  865. #
  866. #Default:
  867. # unlinkd_program /usr/lib/squid/unlinkd
  868.  
  869. # TAG: pinger_program
  870. # Note: This option is only available if Squid is rebuilt with the
  871. # --enable-icmp option
  872. #
  873. # Specify the location of the executable for the pinger process.
  874. # This is only useful if you configured Squid (during compilation)
  875. # with the '--enable-icmp' option.
  876. #
  877. #Default:
  878. # pinger_program /usr/lib/squid/
  879.  
  880. # TAG: redirect_program
  881. # Specify the location of the executable for the URL redirector.
  882. # Since they can perform almost any function there isn't one included.
  883. # See the Release-Notes for information on how to write one.
  884. # By default, a redirector is not used.
  885. #
  886. #Default:
  887. # none
  888.  
  889. # TAG: redirect_children
  890. # The number of redirector processes to spawn. If you start
  891. # too few Squid will have to wait for them to process a backlog of
  892. # URLs, slowing it down. If you start too many they will use RAM
  893. # and other system resources.
  894. #
  895. #Default:
  896. # redirect_children 5
  897.  
  898. # TAG: redirect_rewrites_host_header
  899. # By default Squid rewrites any Host: header in redirected
  900. # requests. If you are running a accelerator then this may
  901. # not be a wanted effect of a redirector.
  902. #
  903. #Default:
  904. # redirect_rewrites_host_header on
  905.  
  906. # TAG: redirector_access
  907. # If defined, this access list specifies which requests are
  908. # sent to the redirector processes. By default all requests
  909. # are sent.
  910. #
  911. #Default:
  912. # none
  913.  
  914. # TAG: authenticate_program
  915. # Specify the command for the external authenticator. Such a
  916. # program reads a line containing "username password" and replies
  917. # "OK" or "ERR" in an endless loop. If you use an authenticator,
  918. # make sure you have 1 acl of type proxy_auth. By default, the
  919. # authenticator_program is not used.
  920. #
  921. # If you want to use the traditional proxy authentication,
  922. # jump over to the ../auth_modules/NCSA directory and
  923. # type:
  924. # % make
  925. # % make install
  926. #
  927. # Then, set this line to something like
  928. #
  929. # authenticate_program /usr/bin/ncsa_auth /usr/etc/passwd
  930. #
  931. #Default:
  932. # none
  933.  
  934. # TAG: authenticate_children
  935. # The number of authenticator processes to spawn (default 5). If you
  936. # start too few Squid will have to wait for them to process a backlog
  937. # of usercode/password verifications, slowing it down. When password
  938. # verifications are done via a (slow) network you are likely to need
  939. # lots of authenticator processes.
  940. #
  941. #Default:
  942. # authenticate_children 5
  943.  
  944. # TAG: authenticate_ttl
  945. # The time a checked username/password combination remains cached.
  946. # If a wrong password is given for a cached user, the user gets
  947. # removed from the username/password cache forcing a revalidation.
  948. #
  949. #Default:
  950. # authenticate_ttl 1 hour
  951.  
  952. # TAG: authenticate_ip_ttl
  953. # With this option you control how long a proxy authentication
  954. # will be bound to a specific IP address. If a request using
  955. # the same user name is received during this time then access
  956. # will be denied and both users are required to reauthenticate
  957. # them selves. The idea behind this is to make it annoying
  958. # for people to share their password to their friends, but
  959. # yet allow a dialup user to reconnect on a different dialup
  960. # port.
  961. #
  962. # The default is 0 to disable the check. Recommended value
  963. # if you have dialup users are no more than 60 seconds to allow
  964. # the user to redial without hassle. If all your users are
  965. # stationary then higher values may be used.
  966. #
  967. # See also authenticate_ip_ttl_is_strict
  968. #
  969. #Default:
  970. # authenticate_ip_ttl 0 seconds
  971.  
  972. # TAG: authenticate_ip_ttl_is_strict
  973. # This option makes authenticate_ip_ttl a bit stricted. With this
  974. # enabled authenticate_ip_ttl will deny all access from other IP
  975. # addresses until the TTL has expired, and the IP address "owning"
  976. # the userid will not be forced to reauthenticate.
  977. #
  978. #Default:
  979. # authenticate_ip_ttl_is_strict on
  980.  
  981.  
  982. # OPTIONS FOR TUNING THE CACHE
  983. # -----------------------------------------------------------------------------
  984.  
  985. # TAG: wais_relay_host
  986. # TAG: wais_relay_port
  987. # Relay WAIS request to host (1st arg) at port (2 arg).
  988. #
  989. #Default:
  990. # wais_relay_port 0
  991.  
  992. # TAG: request_header_max_size (KB)
  993. # This specifies the maximum size for HTTP headers in a request.
  994. # Request headers are usually relatively small (about 512 bytes).
  995. # Placing a limit on the request header size will catch certain
  996. # bugs (for example with persistent connections) and possibly
  997. # buffer-overflow or denial-of-service attacks.
  998. #
  999. #Default:
  1000. # request_header_max_size 10 KB
  1001.  
  1002. # TAG: request_body_max_size (KB)
  1003. # This specifies the maximum size for an HTTP request body.
  1004. # In other words, the maximum size of a PUT/POST request.
  1005. # A user who attempts to send a request with a body larger
  1006. # than this limit receives an "Invalid Request" error message.
  1007. # If you set this parameter to a zero, there will be no limit
  1008. # imposed.
  1009. #
  1010. #Default:
  1011. # request_body_max_size 1 MB
  1012.  
  1013. # TAG: reply_body_max_size (KB)
  1014. # This option specifies the maximum size of a reply body. It
  1015. # can be used to prevent users from downloading very large files,
  1016. # such as MP3's and movies. The reply size is checked twice.
  1017. # First when we get the reply headers, we check the
  1018. # content-length value. If the content length value exists and
  1019. # is larger than this parameter, the request is denied and the
  1020. # user receives an error message that says "the request or reply
  1021. # is too large." If there is no content-length, and the reply
  1022. # size exceeds this limit, the client's connection is just closed
  1023. # and they will receive a partial reply.
  1024. #
  1025. # NOTE: downstream caches probably can not detect a partial reply
  1026. # if there is no content-length header, so they will cache
  1027. # partial responses and give them out as hits. You should NOT
  1028. # use this option if you have downstream caches.
  1029. #
  1030. # If you set this parameter to zero (the default), there will be
  1031. # no limit imposed.
  1032. #
  1033. #Default:
  1034. # reply_body_max_size 0
  1035.  
  1036. # TAG: refresh_pattern
  1037. # usage: refresh_pattern [-i] regex min percent max [options]
  1038. #
  1039. # By default, regular expressions are CASE-SENSITIVE. To make
  1040. # them case-insensitive, use the -i option.
  1041. #
  1042. # 'Min' is the time (in minutes) an object without an explicit
  1043. # expiry time should be considered fresh. The recommended
  1044. # value is 0, any higher values may cause dynamic applications
  1045. # to be erroneously cached unless the application designer
  1046. # has taken the appropriate actions.
  1047. #
  1048. # 'Percent' is a percentage of the objects age (time since last
  1049. # modification age) an object without explicit expiry time
  1050. # will be considered fresh.
  1051. #
  1052. # 'Max' is an upper limit on how long objects without an explicit
  1053. # expiry time will be considered fresh.
  1054. #
  1055. # options: overrsde-expire
  1056. # override-lastmod
  1057. # reload-into-ims
  1058. # ignore-reload
  1059. #
  1060. # override-expire enforces min age even if the server
  1061. # sent a Expires: header. Doing this VIOLATES the HTTP
  1062. # standard. Enabling this feature could make you liable
  1063. # for problems which it causes.
  1064. #
  1065. # override-lastmod enforces min age even on objects
  1066. # that was modified recently.
  1067. #
  1068. # reload-into-ims changes client no-cache or ``reload''
  1069. # to If-Modified-Since requests. Doing this VIOLATES the
  1070. # HTTP standard. Enabling this feature could make you
  1071. # liable for problems which it causes.
  1072. #
  1073. # ignore-reload ignores a client no-cache or ``reload''
  1074. # header. Doing this VIOLATES the HTTP standard. Enabling
  1075. # this feature could make you liable for problems which
  1076. # it causes.
  1077. #
  1078. # Please see the file doc/Release-Notes-1.1.txt for a full
  1079. # description of Squid's refresh algorithm. Basically a
  1080. # cached object is: (the order is changed from 1.1.X)
  1081. #
  1082. # FRESH if expires < now, else STALE
  1083. # STALE if age > max
  1084. # FRESH if lm-factor < percent, else STALE
  1085. # FRESH if age < min
  1086. # else STALE
  1087. #
  1088. # The refresh_pattern lines are checked in the order listed here.
  1089. # The first entry which matches is used. If none of the entries
  1090. # match, then the default will be used.
  1091. #
  1092. # Note, you must uncomment all the default lines if you want
  1093. # to change one. The default setting is only active if none is
  1094. # used.
  1095. #
  1096. #Default:
  1097. # refresh_pattern ^ftp: 14400 80% 43200
  1098. # refresh_pattern ^gopher: 14400 80% 43200
  1099. # refresh_pattern . 0 80% 43200
  1100.  
  1101. # refresh_pattern ^http: 14400 80% 43200 reload-into-ims refresh-ims
  1102. refresh_pattern -i \.(exe|xz|css|gif|jpg|tiff|bmp|jpeg|png|ico|iso|rm|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv) 10080 100% 240320
  1103.  
  1104. refresh_pattern . 0 80% 43200
  1105.  
  1106. # TAG: reference_age
  1107. # As a part of normal operation, Squid performs Least Recently
  1108. # Used removal of cached objects. The LRU age for removal is
  1109. # computed dynamically, based on the amount of disk space in
  1110. # use. The dynamic value can be seen in the Cache Manager 'info'
  1111. # output.
  1112. #
  1113. # The 'reference_age' parameter defines the maximum LRU age. For
  1114. # example, setting reference_age to '1 week' will cause objects
  1115. # to be removed if they have not been accessed for a week or
  1116. # more. The default value is one year.
  1117. #
  1118. # Specify a number here, followed by units of time. For example:
  1119. # 1 week
  1120. # 3.5 days
  1121. # 4 months
  1122. # 2.2 hours
  1123. #
  1124. # NOTE: this parameter is not used when using the enhanced
  1125. # replacement policies, GDSH or LFUDA.
  1126. #
  1127. #Default:
  1128. # reference_age 1 year
  1129.  
  1130. # TAG: quick_abort_min (KB)
  1131. # TAG: quick_abort_max (KB)
  1132. # TAG: quick_abort_pct (percent)
  1133. # The cache can be configured to continue downloading aborted
  1134. # requests. This may be undesirable on slow (e.g. SLIP) links
  1135. # and/or very busy caches. Impatient users may tie up file
  1136. # descriptors and bandwidth by repeatedly requesting and
  1137. # immediately aborting downloads.
  1138. #
  1139. # When the user aborts a request, Squid will check the
  1140. # quick_abort values to the amount of data transfered until
  1141. # then.
  1142. #
  1143. # If the transfer has less than 'quick_abort_min' KB remaining,
  1144. # it will finish the retrieval. Setting 'quick_abort_min' to -1
  1145. # will disable the quick_abort feature.
  1146. #
  1147. # If the transfer has more than 'quick_abort_max' KB remaining,
  1148. # it will abort the retrieval.
  1149. #
  1150. # If more than 'quick_abort_pct' of the transfer has completed,
  1151. # it will finish the retrieval.
  1152. #
  1153. #Default:
  1154. # quick_abort_min 16 KB
  1155. # quick_abort_max 16 KB
  1156. # quick_abort_pct 95
  1157.  
  1158. # TAG: negative_ttl time-units
  1159. # Time-to-Live (TTL) for failed requests. Certain types of
  1160. # failures (such as "connection refused" and "404 Not Found") are
  1161. # negatively-cached for a configurable amount of time. The
  1162. # default is 5 minutes. Note that this is different from
  1163. # negative caching of DNS lookups.
  1164. #
  1165. #Default:
  1166. # negative_ttl 5 minutes
  1167.  
  1168. # TAG: positive_dns_ttl time-units
  1169. # Time-to-Live (TTL) for positive caching of successful DNS lookups.
  1170. # Default is 6 hours (360 minutes). If you want to minimize the
  1171. # use of Squid's ipcache, set this to 1, not 0.
  1172. #
  1173. #Default:
  1174. # positive_dns_ttl 6 hours
  1175.  
  1176. # TAG: negative_dns_ttl time-units
  1177. # Time-to-Live (TTL) for negative caching of failed DNS lookups.
  1178. #
  1179. #Default:
  1180. # negative_dns_ttl 5 minutes
  1181.  
  1182. # TAG: range_offset_limit (bytes)
  1183. # Sets a upper limit on how far into the the file a Range request
  1184. # may be to cause Squid to prefetch the whole file. If beyond this
  1185. # limit then Squid forwards the Range request as it is and the result
  1186. # is NOT cached.
  1187. #
  1188. # This is to stop a far ahead range request (lets say start at 17MB)
  1189. # from making Squid fetch the whole object up to that point before
  1190. # sending anything to the client.
  1191. #
  1192. # A value of -1 causes Squid to always fetch the object from the
  1193. # beginning so that it may cache the result. (2.0 style)
  1194. #
  1195. # A value of 0 causes Squid to never fetch more than the
  1196. # client requested. (default)
  1197. #
  1198. #Default:
  1199. # range_offset_limit 0 KB
  1200.  
  1201.  
  1202. # TIMEOUTS
  1203. # -----------------------------------------------------------------------------
  1204.  
  1205. # TAG: connect_timeout time-units
  1206. # Some systems (notably Linux) can not be relied upon to properly
  1207. # time out connect(2) requests. Therefore the Squid process
  1208. # enforces its own timeout on server connections. This parameter
  1209. # specifies how long to wait for the connect to complete. The
  1210. # default is two minutes (120 seconds).
  1211. #
  1212. #Default:
  1213. # connect_timeout 2 minutes
  1214.  
  1215. # TAG: peer_connect_timeout time-units
  1216. # This parameter specifies how long to wait for a pending TCP
  1217. # connection to a peer cache. The default is 30 seconds. You
  1218. # may also set different timeout values for individual neighbors
  1219. # with the 'connect-timeout' option on a 'cache_peer' line.
  1220. #
  1221. #Default:
  1222. # peer_connect_timeout 30 seconds
  1223.  
  1224. # TAG: siteselect_timeout time-units
  1225. # For URN to multiple URL's URL selection
  1226. #
  1227. #Default:
  1228. # siteselect_timeout 4 seconds
  1229.  
  1230. # TAG: read_timeout time-units
  1231. # The read_timeout is applied on server-side connections. After
  1232. # each successful read(), the timeout will be extended by this
  1233. # amount. If no data is read again after this amount of time,
  1234. # the request is aborted and logged with ERR_READ_TIMEOUT. The
  1235. # default is 15 minutes.
  1236. #
  1237. #Default:
  1238. # read_timeout 15 minutes
  1239.  
  1240. # TAG: request_timeout
  1241. # How long to wait for an HTTP request after connection
  1242. # establishment. For persistent connections, wait this long
  1243. # after the previous request completes.
  1244. #
  1245. #Default:
  1246. # request_timeout 30 seconds
  1247.  
  1248. # TAG: client_lifetime time-units
  1249. # The maximum amount of time that a client (browser) is allowed to
  1250. # remain connected to the cache process. This protects the Cache
  1251. # from having a lot of sockets (and hence file descriptors) tied up
  1252. # in a CLOSE_WAIT state from remote clients that go away without
  1253. # properly shutting down (either because of a network failure or
  1254. # because of a poor client implementation). The default is one
  1255. # day, 1440 minutes.
  1256. #
  1257. # NOTE: The default value is intended to be much larger than any
  1258. # client would ever need to be connected to your cache. You
  1259. # should probably change client_lifetime only as a last resort.
  1260. # If you seem to have many client connections tying up
  1261. # filedescriptors, we recommend first tuning the read_timeout,
  1262. # request_timeout, pconn_timeout and quick_abort values.
  1263. #
  1264. #Default:
  1265. # client_lifetime 1 day
  1266. max_filedesc 4096
  1267.  
  1268. # TAG: half_closed_clients
  1269. # Some clients may shutdown the sending side of their TCP
  1270. # connections, while leaving their receiving sides open. Sometimes,
  1271. # Squid can not tell the difference between a half-closed and a
  1272. # fully-closed TCP connection. By default, half-closed client
  1273. # connections are kept open until a read(2) or write(2) on the
  1274. # socket returns an error. Change this option to 'off' and Squid
  1275. # will immediately close client connections when read(2) returns
  1276. # "no more data to read."
  1277. #
  1278. #Default:
  1279. # half_closed_clients on
  1280. half_closed_clients off
  1281.  
  1282. # TAG: pconn_timeout
  1283. # Timeout for idle persistent connections to servers and other
  1284. # proxies.
  1285. #
  1286. #Default:
  1287. # pconn_timeout 120 seconds
  1288.  
  1289. # TAG: ident_timeout
  1290. # Maximum time to wait for IDENT requests. If this is too high,
  1291. # and you enabled 'ident_lookup', then you might be susceptible
  1292. # to denial-of-service by having many ident requests going at
  1293. # once.
  1294. #
  1295. # Only src type ACL checks are fully supported. A src_domain
  1296. # ACL might work at times, but it will not always provide
  1297. # the correct result.
  1298. #
  1299. # This option may be disabled by using --disable-ident with
  1300. # the configure script.
  1301. #
  1302. #Default:
  1303. # ident_timeout 10 seconds
  1304.  
  1305. # TAG: shutdown_lifetime time-units
  1306. # When SIGTERM or SIGHUP is received, the cache is put into
  1307. # "shutdown pending" mode until all active sockets are closed.
  1308. # This value is the lifetime to set for all open descriptors
  1309. # during shutdown mode. Any active clients after this many
  1310. # seconds will receive a 'timeout' message.
  1311. #
  1312. #Default:
  1313. # shutdown_lifetime 30 seconds
  1314. # https://qa.mandriva.com/show_bug.cgi?id=37801
  1315. shutdown_lifetime 5 seconds
  1316.  
  1317. # ACCESS CONTROLS
  1318. # -----------------------------------------------------------------------------
  1319.  
  1320. # TAG: acl
  1321. # Defining an Access List
  1322. #
  1323. # acl aclname acltype string1 ...
  1324. # acl aclname acltype "file" ...
  1325. #
  1326. # when using "file", the file should contain one item per line
  1327. #
  1328. # acltype is one of src dst srcdomain dstdomain url_pattern
  1329. # urlpath_pattern time port proto method browser user
  1330. #
  1331. # By default, regular expressions are CASE-SENSITIVE. To make
  1332. # them case-insensitive, use the -i option.
  1333. #
  1334. # acl aclname src ip-address/netmask ... (clients IP address)
  1335. # acl aclname src addr1-addr2/netmask ... (range of addresses)
  1336. # acl aclname dst ip-address/netmask ... (URL host's IP address)
  1337. # acl aclname myip ip-address/netmask ... (local socket IP address)
  1338. #
  1339. # acl aclname srcdomain .foo.com ... # reverse lookup, client IP
  1340. # acl aclname dstdomain .foo.com ... # Destination server from URL
  1341. # acl aclname srcdom_regex [-i] xxx ... # regex matching client name
  1342. # acl aclname dstdom_regex [-i] xxx ... # regex matching server
  1343. # # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
  1344. # # based URL is used. The name "none" is used if the reverse lookup
  1345. # # fails.
  1346. #
  1347. # acl aclname time [day-abbrevs] [h1:m1-h2:m2]
  1348. # day-abbrevs:
  1349. # S - Sunday
  1350. # M - Monday
  1351. # T - Tuesday
  1352. # W - Wednesday
  1353. # H - Thursday
  1354. # F - Friday
  1355. # A - Saturday
  1356. # h1:m1 must be less than h2:m2
  1357. # acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
  1358. # acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path
  1359. # acl aclname port 80 70 21 ...
  1360. # acl aclname port 0-1024 ... # ranges allowed
  1361. # acl aclname myport 3128 ... # (local socket TCP port)
  1362. # acl aclname proto HTTP FTP ...
  1363. # acl aclname method GET POST ...
  1364. # acl aclname browser [-i] regexp
  1365. # # pattern match on User-Agent header
  1366. # acl aclname ident username ...
  1367. # acl aclname ident_regex [-i] pattern ...
  1368. # # string match on ident output.
  1369. # # use REQUIRED to accept any non-null ident.
  1370. # acl aclname src_as number ...
  1371. # acl aclname dst_as number ...
  1372. # # Except for access control, AS numbers can be used for
  1373. # # routing of requests to specific caches. Here's an
  1374. # # example for routing all requests for AS#1241 and only
  1375. # # those to mycache.mydomain.net:
  1376. # # acl asexample dst_as 1241
  1377. # # cache_peer_access mycache.mydomain.net allow asexample
  1378. # # cache_peer_access mycache_mydomain.net deny all
  1379. #
  1380. # acl aclname proxy_auth username ...
  1381. # acl aclname proxy_auth_regex [-i] pattern ...
  1382. # # list of valid usernames
  1383. # # use REQUIRED to accept any valid username.
  1384. # #
  1385. # # NOTE: when a Proxy-Authentication header is sent but it is not
  1386. # # needed during ACL checking the username is NOT logged
  1387. # # in access.log.
  1388. # #
  1389. # # NOTE: proxy_auth requires a EXTERNAL authentication program
  1390. # # to check username/password combinations (see
  1391. # # authenticate_program).
  1392. # #
  1393. # # WARNING: proxy_auth can't be used in a transparent proxy. It
  1394. # # collides with any authentication done by origin servers. It may
  1395. # # seem like it works at first, but it doesn't.
  1396. #
  1397. # acl aclname snmp_community string ...
  1398. # # A community string to limit access to your SNMP Agent
  1399. # # Example:
  1400. # #
  1401. # # acl snmppublic snmp_community public
  1402. #
  1403. # acl aclname maxconn number
  1404. # # This will be matched when the client's IP address has
  1405. # # more than <number> HTTP connections established.
  1406. #
  1407. # acl req_mime_type mime-type1 ...
  1408. # # regex match agains the mime type of the request generated
  1409. # # by the client. Can be used to detect file upload or some
  1410. # # types HTTP tunelling requests.
  1411. # # NOTE: This does NOT match the reply. You cannot use this
  1412. # # to match the returned file type.
  1413. #
  1414. #Examples:
  1415. #acl myexample dst_as 1241
  1416. acl mynetwork src 192.168.0.0/24
  1417. #acl password proxy_auth REQUIRED
  1418. #acl fileupload req_mime_type -i ^multipart/form-data$
  1419. #
  1420. #Recommended minimum configuration:
  1421.  
  1422. # acl manager proto cache_object
  1423. # acl localhost src 127.0.0.1/32
  1424. acl SSL_ports port 443 563
  1425. acl Safe_ports port 80 # http
  1426. acl Safe_ports port 21 # ftp
  1427. acl Safe_ports port 443 563 # https, snews
  1428. acl Safe_ports port 70 # gopher
  1429. acl Safe_ports port 210 # wais
  1430. acl Safe_ports port 1025-65535 # unregistered ports
  1431. acl Safe_ports port 280 # http-mgmt
  1432. acl Safe_ports port 488 # gss-http
  1433. acl Safe_ports port 591 # filemaker
  1434. acl Safe_ports port 777 # multiling http
  1435. acl CONNECT method CONNECT
  1436.  
  1437. # TAG: http_access
  1438. # Allowing or Denying access based on defined access lists
  1439. #
  1440. # Access to the HTTP port:
  1441. # http_access allow|deny [!]aclname ...
  1442. #
  1443. # NOTE on default values:
  1444. #
  1445. # If there are no "access" lines present, the default is to deny
  1446. # the request.
  1447. #
  1448. # If none of the "access" lines cause a match, the default is the
  1449. # opposite of the last line in the list. If the last line was
  1450. # deny, then the default is allow. Conversely, if the last line
  1451. # is allow, the default will be deny. For these reasons, it is a
  1452. # good idea to have an "deny all" or "allow all" entry at the end
  1453. # of your access lists to avoid potential confusion.
  1454. #
  1455. #Default:
  1456. # http_access deny all
  1457. #
  1458. #Recommended minimum configuration:
  1459. #
  1460. # Only allow cachemgr access from localhost
  1461. http_access allow manager localhost
  1462. http_access deny manager
  1463. # Deny requests to unknown ports
  1464. http_access deny !Safe_ports
  1465. # Deny CONNECT to other than SSL ports
  1466. http_access deny CONNECT !SSL_ports
  1467. #
  1468. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  1469. #
  1470. # And finally deny all other access to this proxy
  1471. #http_access allow localhost
  1472. http_access allow mynetwork
  1473. http_access deny all
  1474.  
  1475. # TAG: icp_access
  1476. # Allowing or Denying access to the ICP port based on defined
  1477. # access lists
  1478. #
  1479. # icp_access allow|deny [!]aclname ...
  1480. #
  1481. # See http_access for details
  1482. #
  1483. #Default:
  1484. # icp_access deny all
  1485. #
  1486. #Allow ICP queries from eveyone
  1487. icp_access allow all
  1488.  
  1489. # TAG: miss_access
  1490. # Use to force your neighbors to use you as a sibling instead of
  1491. # a parent. For example:
  1492. #
  1493. # acl localclients src 172.16.0.0/16
  1494. # miss_access allow localclients
  1495. # miss_access deny !localclients
  1496. #
  1497. # This means that only your local clients are allowed to fetch
  1498. # MISSES and all other clients can only fetch HITS.
  1499. #
  1500. # By default, allow all clients who passed the http_access rules
  1501. # to fetch MISSES from us.
  1502. #
  1503. #Default setting:
  1504. # miss_access allow all
  1505.  
  1506. # TAG: cache_peer_access
  1507. # Similar to 'cache_peer_domain' but provides more flexibility by
  1508. # using ACL elements.
  1509. #
  1510. # cache_peer_access cache-host allow|deny [!]aclname ...
  1511. #
  1512. # The syntax is identical to 'http_access' and the other lists of
  1513. # ACL elements. See the comments for 'http_access' below, or
  1514. # the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html).
  1515. #
  1516. #Default:
  1517. # none
  1518.  
  1519. # TAG: proxy_auth_realm
  1520. # Specifies the realm name which is to be reported to the client for
  1521. # proxy authentication (part of the text the user will see when
  1522. # prompted their username and password).
  1523. #
  1524. #Default:
  1525. # proxy_auth_realm Squid proxy-caching web server
  1526.  
  1527. # TAG: ident_lookup_access
  1528. # A list of ACL elements which, if matched, cause an ident
  1529. # (RFC 931) lookup to be performed for this request. For
  1530. # example, you might choose to always perform ident lookups
  1531. # for your main multi-user Unix boxes, but not for your Macs
  1532. # and PCs. By default, ident lookups are not performed for
  1533. # any requests.
  1534. #
  1535. # To enable ident lookups for specific client addresses, you
  1536. # can follow this example:
  1537. #
  1538. # acl ident_aware_hosts src 198.168.1.0/255.255.255.0
  1539. # ident_lookup_access allow ident_aware_hosts
  1540. # ident_lookup_access deny all
  1541. #
  1542. # This option may be disabled by using --disable-ident with
  1543. # the configure script.
  1544. #
  1545. #Default:
  1546. # ident_lookup_access deny all
  1547.  
  1548.  
  1549. # ADMINISTRATIVE PARAMETERS
  1550. # -----------------------------------------------------------------------------
  1551.  
  1552. # TAG: cache_mgr
  1553. # Email-address of local cache manager who will receive
  1554. # mail if the cache dies. The default is "webmaster."
  1555. #
  1556. #Default:
  1557.  
  1558. # TAG: cache_effective_user
  1559. # TAG: cache_effective_group
  1560. #
  1561. # If the cache is run as root, it will change its effective/real
  1562. # UID/GID to the UID/GID specified below. The default is to
  1563. # change to UID to nobody and GID to nobody.
  1564. #
  1565. # If Squid is not started as root, the default is to keep the
  1566. # current UID/GID. Note that if Squid is not started as root then
  1567. # you cannot set http_port to a value lower than 1024.
  1568. #
  1569. #Default:
  1570. # cache_effective_user nobody
  1571. # cache_effective_group nobody
  1572.  
  1573. # TAG: visible_hostname
  1574. # If you want to present a special hostname in error messages, etc,
  1575. # then define this. Otherwise, the return value of gethostname()
  1576. # will be used. If you have multiple caches in a cluster and
  1577. # get errors about IP-forwarding you must set them to have individual
  1578. # names with this setting.
  1579. #
  1580. #Default:
  1581. # none
  1582.  
  1583. visible_hostname AndrzejL
  1584.  
  1585. # TAG: unique_hostname
  1586. # If you want to have multiple machines with the same
  1587. # 'visible_hostname' then you must give each machine a different
  1588. # 'unique_hostname' so that forwarding loops can be detected.
  1589. #
  1590. #Default:
  1591. # none
  1592.  
  1593. # TAG: hostname_aliases
  1594. # A list of other DNS names that your cache has.
  1595. #
  1596. #Default:
  1597. # none
  1598.  
  1599.  
  1600. # OPTIONS FOR THE CACHE REGISTRATION SERVICE
  1601. # -----------------------------------------------------------------------------
  1602. #
  1603. # This section contains parameters for the (optional) cache
  1604. # announcement service. This service is provided to help
  1605. # cache administrators locate one another in order to join or
  1606. # create cache hierarchies.
  1607. #
  1608. # An 'announcement' message is sent (via UDP) to the registration
  1609. # service by Squid. By default, the announcement message is NOT
  1610. # SENT unless you enable it with 'announce_period' below.
  1611. #
  1612. # The announcement message includes your hostname, plus the
  1613. # following information from this configuration file:
  1614. #
  1615. # http_port
  1616. # icp_port
  1617. # cache_mgr
  1618. #
  1619. # All current information is processed regularly and made
  1620. # available on the Web at http://www.ircache.net/Cache/Tracker/.
  1621.  
  1622. # TAG: announce_period
  1623. # This is how frequently to send cache announcements. The
  1624. # default is `0' which disables sending the announcement
  1625. # messages.
  1626. #
  1627. # To enable announcing your cache, just uncomment the line
  1628. # below.
  1629. #
  1630. #Default:
  1631. # announce_period 0
  1632. #
  1633. #To enable announcing your cache, just uncomment the line below.
  1634. #announce_period 1 day
  1635.  
  1636. # TAG: announce_host
  1637. # TAG: announce_file
  1638. # TAG: announce_port
  1639. # announce_host and announce_port set the hostname and port
  1640. # number where the registration message will be sent.
  1641. #
  1642. # Hostname will default to 'tracker.ircache.net' and port will
  1643. # default default to 3131. If the 'filename' argument is given,
  1644. # the contents of that file will be included in the announce
  1645. # message.
  1646. #
  1647. #Default:
  1648. # announce_host tracker.ircache.net
  1649. # announce_port 3131
  1650.  
  1651.  
  1652. # HTTPD-ACCELERATOR OPTIONS
  1653. # -----------------------------------------------------------------------------
  1654.  
  1655. # TAG: httpd_accel_host
  1656. # TAG: httpd_accel_port
  1657. # If you want to run Squid as an httpd accelerator, define the
  1658. # host name and port number where the real HTTP server is.
  1659. #
  1660. # If you want virtual host support then specify the hostname
  1661. # as "virtual".
  1662. #
  1663. # If you want virtual port support then specify the port as "0".
  1664. #
  1665. # NOTE: enabling httpd_accel_host disables proxy-caching and
  1666. # ICP. If you want these features enabled also, then set
  1667. # the 'httpd_accel_with_proxy' option.
  1668. #
  1669. #Default:
  1670.  
  1671. # httpd_accel_host virtual
  1672. # httpd_accel_port 0
  1673. # httpd_accel_with_proxy on
  1674. # httpd_accel_uses_host_header on
  1675. # httpd_accel_with_proxy on
  1676.  
  1677. # TAG: httpd_accel_single_host on|off
  1678. # If you are running Squid as a accelerator and have a single backend
  1679. # server then set this to on. This causes Squid to forward the request
  1680. # to this server irregardles of what any redirectors or Host headers
  1681. # says.
  1682. #
  1683. # Leave this at off if you have multiple backend servers, and use a
  1684. # redirector (or host table or private DNS) to map the requests to the
  1685. # appropriate backend servers. Note that the mapping needs to be a
  1686. # 1-1 mapping between requested and backend (from redirector) domain
  1687. # names or caching will fail, as cacing is performed using the
  1688. # URL returned from the redirector.
  1689. #
  1690. # See also redirect_rewrites_host_header.
  1691. #
  1692. #Default:
  1693. # httpd_accel_single_host off
  1694.  
  1695. # TAG: httpd_accel_with_proxy on|off
  1696. # If you want to use Squid as both a local httpd accelerator
  1697. # and as a proxy, change this to 'on'. Note however that your
  1698. # proxy users may have trouble to reach the accelerated domains
  1699. # unless their browsers are configured not to use this proxy for
  1700. # those domains (for example via the no_proxy browser configuration
  1701. # setting)
  1702. #
  1703. #Default:
  1704. # httpd_accel_with_proxy off
  1705.  
  1706. # TAG: httpd_accel_uses_host_header on|off
  1707. # HTTP/1.1 requests include a Host: header which is basically the
  1708. # hostname from the URL. Squid can be an accelerator for
  1709. # different HTTP servers by looking at this header. However,
  1710. # Squid does NOT check the value of the Host header, so it opens
  1711. # a big security hole. We recommend that this option remain
  1712. # disabled unless you are sure of what you are doing.
  1713. #
  1714. # However, you will need to enable this option if you run Squid
  1715. # as a transparent proxy. Otherwise, virtual servers which
  1716. # require the Host: header will not be properly cached.
  1717. #
  1718. #Default:
  1719. # httpd_accel_uses_host_header off
  1720.  
  1721.  
  1722. # MISCELLANEOUS
  1723. # -----------------------------------------------------------------------------
  1724.  
  1725. # TAG: dns_testnames
  1726. # The DNS tests exit as soon as the first site is successfully looked up
  1727. #
  1728. # This test can be disabled with the -D command line option.
  1729. #
  1730. #Default:
  1731. # dns_testnames netscape.com internic.net nlanr.net microsoft.com
  1732.  
  1733. # TAG: logfile_rotate
  1734. # Specifies the number of logfile rotations to make when you
  1735. # type 'squid -k rotate'. The default is 10, which will rotate
  1736. # with extensions 0 through 9. Setting logfile_rotate to 0 will
  1737. # disable the rotation, but the logfiles are still closed and
  1738. # re-opened. This will enable you to rename the logfiles
  1739. # yourself just before sending the rotate signal.
  1740. #
  1741. # Note, the 'squid -k rotate' command normally sends a USR1
  1742. # signal to the running squid process. In certain situations
  1743. # (e.g. on Linux with Async I/O), USR1 is used for other
  1744. # purposes, so -k rotate uses another signal. It is best to get
  1745. # in the habit of using 'squid -k rotate' instead of 'kill -USR1
  1746. # <pid>'.
  1747. #
  1748. #Default:
  1749. # logfile_rotate 0
  1750.  
  1751. # TAG: append_domain
  1752. # Appends local domain name to hostnames without any dots in
  1753. # them. append_domain must begin with a period.
  1754. #
  1755. #Example:
  1756. # append_domain .yourdomain.com
  1757. #
  1758. #Default:
  1759. # none
  1760.  
  1761. # TAG: tcp_recv_bufsize (bytes)
  1762. # Size of receive buffer to set for TCP sockets. Probably just
  1763. # as easy to change your kernel's default. Set to zero to use
  1764. # the default buffer size.
  1765. #
  1766. #Default:
  1767. # tcp_recv_bufsize 0 bytes
  1768.  
  1769. # TAG: err_html_text
  1770. # HTML text to include in error messages. Make this a "mailto"
  1771. # URL to your admin address, or maybe just a link to your
  1772. # organizations Web page.
  1773. #
  1774. # To include this in your error messages, you must rewrite
  1775. # the error template files (found in the "errors" directory).
  1776. # Wherever you want the 'err_html_text' line to appear,
  1777. # insert a %L tag in the error template file.
  1778. #
  1779. #Default:
  1780. # none
  1781.  
  1782. # TAG: deny_info
  1783. # Usage: deny_info err_page_name acl
  1784. # Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
  1785. #
  1786. # This can be used to return a ERR_ page for requests which
  1787. # do not pass the 'http_access' rules. A single ACL will cause
  1788. # the http_access check to fail. If a 'deny_info' line exists
  1789. # for that ACL then Squid returns a corresponding error page.
  1790. #
  1791. # You may use ERR_ pages that come with Squid or create your own pages
  1792. # and put them into the configured errors/ directory.
  1793. #
  1794. #Default:
  1795. # none
  1796.  
  1797. # TAG: memory_pools on|off
  1798. # If set, Squid will keep pools of allocated (but unused) memory
  1799. # available for future use. If memory is a premium on your
  1800. # system and you believe your malloc library outperforms Squid
  1801. # routines, disable this.
  1802. #
  1803. #Default:
  1804. # memory_pools on
  1805.  
  1806. # TAG: memory_pools_limit (bytes)
  1807. # Used only with memory_pools on:
  1808. # memory_pools_limit 50 MB
  1809. #
  1810. # If set to a non-zero value, Squid will keep at most the specified
  1811. # limit of allocated (but unused) memory in memory pools. All free()
  1812. # requests that exceed this limit will be handled by your malloc
  1813. # library. Squid does not pre-allocate any memory, just safe-keeps
  1814. # objects that otherwise would be free()d. Thus, it is safe to set
  1815. # memory_pools_limit to a reasonably high value even if your
  1816. # configuration will use less memory.
  1817. #
  1818. # If not set (default) or set to zero, Squid will keep all memory it
  1819. # can. That is, there will be no limit on the total amount of memory
  1820. # used for safe-keeping.
  1821. #
  1822. # To disable memory allocation optimization, do not set
  1823. # memory_pools_limit to 0. Set memory_pools to "off" instead.
  1824. #
  1825. # An overhead for maintaining memory pools is not taken into account
  1826. # when the limit is checked. This overhead is close to four bytes per
  1827. # object kept. However, pools may actually _save_ memory because of
  1828. # reduced memory thrashing in your malloc library.
  1829. #
  1830. #Default:
  1831. # none
  1832.  
  1833. # TAG: forwarded_for on|off
  1834. # If set, Squid will include your system's IP address or name
  1835. # in the HTTP requests it forwards. By default it looks like
  1836. # this:
  1837. #
  1838. # X-Forwarded-For: 192.1.2.3
  1839. #
  1840. # If you disable this, it will appear as
  1841. #
  1842. # X-Forwarded-For: unknown
  1843. #
  1844. #Default:
  1845. # forwarded_for on
  1846. # AndrzejL disabling forwarded_for and via for more anonimity...
  1847. # forwarded_for on
  1848. # via on
  1849.  
  1850. # TAG: log_icp_queries on|off
  1851. # If set, ICP queries are logged to access.log. You may wish
  1852. # do disable this if your ICP load is VERY high to speed things
  1853. # up or to simplify log analysis.
  1854. #
  1855. #Default:
  1856. # log_icp_queries on
  1857.  
  1858. # TAG: icp_hit_stale on|off
  1859. # If you want to return ICP_HIT for stale cache objects, set this
  1860. # option to 'on'. If you have sibling relationships with caches
  1861. # in other administrative domains, this should be 'off'. If you only
  1862. # have sibling relationships with caches under your control, then
  1863. # it is probably okay to set this to 'on'.
  1864. #
  1865. #Default:
  1866. # icp_hit_stale off
  1867.  
  1868. # TAG: minimum_direct_hops
  1869. # If using the ICMP pinging stuff, do direct fetches for sites
  1870. # which are no more than this many hops away.
  1871. #
  1872. #Default:
  1873. # minimum_direct_hops 4
  1874.  
  1875. # TAG: minimum_direct_rtt
  1876. # If using the ICMP pinging stuff, do direct fetches for sites
  1877. # which are no more than this many rtt milliseconds away.
  1878. #
  1879. #Default:
  1880. # minimum_direct_rtt 400
  1881.  
  1882. # TAG: cachemgr_passwd
  1883. # Specify passwords for cachemgr operations.
  1884. #
  1885. # Usage: cachemgr_passwd password action action ...
  1886. #
  1887. # Some valid actions are (see cache manager menu for a full list):
  1888. # 5min
  1889. # 60min
  1890. # asndb
  1891. # authenticator
  1892. # cbdata
  1893. # client_list
  1894. # comm_incoming
  1895. # config *
  1896. # counters
  1897. # delay
  1898. # digest_stats
  1899. # dns
  1900. # events
  1901. # filedescriptors
  1902. # fqdncache
  1903. # histograms
  1904. # http_headers
  1905. # info
  1906. # io
  1907. # ipcache
  1908. # mem
  1909. # menu
  1910. # netdb
  1911. # non_peers
  1912. # objects
  1913. # pconn
  1914. # peer_select
  1915. # redirector
  1916. # refresh
  1917. # server_list
  1918. # shutdown *
  1919. # store_digest
  1920. # storedir
  1921. # utilization
  1922. # via_headers
  1923. # vm_objects
  1924. #
  1925. # * Indicates actions which will not be performed without a
  1926. # valid password, others can be performed if not listed here.
  1927. #
  1928. # To disable an action, set the password to "disable".
  1929. # To allow performing an action without a password, set the
  1930. # password to "none".
  1931. #
  1932. # Use the keyword "all" to set the same password for all actions.
  1933. #
  1934. #Example:
  1935. # cachemgr_passwd secret shutdown
  1936. # cachemgr_passwd lesssssssecret info stats/objects
  1937. # cachemgr_passwd disable all
  1938. #
  1939. #Default:
  1940. # none
  1941.  
  1942. # TAG: store_avg_object_size (kbytes)
  1943. # Average object size, used to estimate number of objects your
  1944. # cache can hold. See doc/Release-Notes-1.1.txt. The default is
  1945. # 13 KB.
  1946. #
  1947. #Default:
  1948. # store_avg_object_size 13 KB
  1949.  
  1950. # TAG: store_objects_per_bucket
  1951. # Target number of objects per bucket in the store hash table.
  1952. # Lowering this value increases the total number of buckets and
  1953. # also the storage maintenance rate. The default is 50.
  1954. #
  1955. #Default:
  1956. # store_objects_per_bucket 20
  1957.  
  1958. # TAG: client_db on|off
  1959. # If you want to disable collecting per-client statistics, then
  1960. # turn off client_db here.
  1961. #
  1962. #Default:
  1963. # client_db on
  1964.  
  1965. # TAG: netdb_low
  1966. # TAG: netdb_high
  1967. # The low and high water marks for the ICMP measurement
  1968. # database. These are counts, not percents. The defaults are
  1969. # 900 and 1000. When the high water mark is reached, database
  1970. # entries will be deleted until the low mark is reached.
  1971. #
  1972. #Default:
  1973. # netdb_low 900
  1974. # netdb_high 1000
  1975.  
  1976. # TAG: netdb_ping_period
  1977. # The minimum period for measuring a site. There will be at
  1978. # least this much delay between successive pings to the same
  1979. # network. The default is five minutes.
  1980. #
  1981. #Default:
  1982. # netdb_ping_period 5 minutes
  1983.  
  1984. # TAG: query_icmp on|off
  1985. # If you want to ask your peers to include ICMP data in their ICP
  1986. # replies, enable this option.
  1987. #
  1988. # If your peer has configured Squid (during compilation) with
  1989. # '--enable-icmp' then that peer will send ICMP pings to origin server
  1990. # sites of the URLs it receives. If you enable this option then the
  1991. # ICP replies from that peer will include the ICMP data (if available).
  1992. # Then, when choosing a parent cache, Squid will choose the parent with
  1993. # the minimal RTT to the origin server. When this happens, the
  1994. # hierarchy field of the access.log will be
  1995. # "CLOSEST_PARENT_MISS". This option is off by default.
  1996. #
  1997. #Default:
  1998. # query_icmp off
  1999.  
  2000. # TAG: test_reachability on|off
  2001. # When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
  2002. # instead of ICP_MISS if the target host is NOT in the ICMP
  2003. # database, or has a zero RTT.
  2004. #
  2005. #Default:
  2006. # test_reachability off
  2007.  
  2008. # TAG: buffered_logs on|off
  2009. # Some log files (cache.log, useragent.log) are written with
  2010. # stdio functions, and as such they can be buffered or
  2011. # unbuffered. By default they will be unbuffered. Buffering them
  2012. # can speed up the writing slightly (though you are unlikely to
  2013. # need to worry).
  2014. #
  2015. #Default:
  2016. # buffered_logs off
  2017.  
  2018. # TAG: reload_into_ims on|off
  2019. # When you enable this option, client no-cache or ``reload''
  2020. # requests will be changed to If-Modified-Since requests.
  2021. # Doing this VIOLATES the HTTP standard. Enabling this
  2022. # feature could make you liable for problems which it
  2023. # causes.
  2024. #
  2025. # see also refresh_pattern for a more selective approach.
  2026. #
  2027. # This option may be disabled by using --disable-http-violations
  2028. # with the configure script.
  2029. #
  2030. #Default:
  2031. # reload_into_ims off
  2032.  
  2033. # TAG: always_direct
  2034. # Usage: always_direct allow|deny [!]aclname ...
  2035. #
  2036. # Here you can use ACL elements to specify requests which should
  2037. # ALWAYS be forwarded directly to origin servers. For example,
  2038. # to always directly forward requests for local servers use
  2039. # something like:
  2040. #
  2041. # acl local-servers dstdomain my.domain.net
  2042. # always_direct allow local-servers
  2043. #
  2044. # To always forward FTP requests directly, use
  2045. #
  2046. # acl FTP proto FTP
  2047. # always_direct allow FTP
  2048. #
  2049. # NOTE: There is a similar, but opposite option named
  2050. # 'never_direct'. You need to be aware that "always_direct deny
  2051. # foo" is NOT the same thing as "never_direct allow foo". You
  2052. # may need to use a deny rule to exclude a more-specific case of
  2053. # some other rule. Example:
  2054. #
  2055. # acl local-external dstdomain external.foo.net
  2056. # acl local-servers dstdomain foo.net
  2057. # always_direct deny local-external
  2058. # always_direct allow local-servers
  2059. #
  2060. # This option replaces some v1.1 options such as local_domain
  2061. # and local_ip.
  2062. #
  2063. #Default:
  2064. # none
  2065.  
  2066. # TAG: never_direct
  2067. # Usage: never_direct allow|deny [!]aclname ...
  2068. #
  2069. # never_direct is the opposite of always_direct. Please read
  2070. # the description for always_direct if you have not already.
  2071. #
  2072. # With 'never_direct' you can use ACL elements to specify
  2073. # requests which should NEVER be forwarded directly to origin
  2074. # servers. For example, to force the use of a proxy for all
  2075. # requests, except those in your local domain use something like:
  2076. #
  2077. # acl local-servers dstdomain foo.net
  2078. # acl all src 0.0.0.0/0.0.0.0
  2079. # never_direct deny local-servers
  2080. # never_direct allow all
  2081. #
  2082. # or if squid is inside a firewall and there is local intranet
  2083. # servers inside the firewall then use something like:
  2084. #
  2085. # acl local-intranet dstdomain foo.net
  2086. # acl local-external dstdomain external.foo.net
  2087. # always_direct deny local-external
  2088. # always_direct allow local-intranet
  2089. # never_direct allow all
  2090. #
  2091. # This option replaces some v1.1 options such as inside_firewall
  2092. # and firewall_ip.
  2093. #
  2094. #Default:
  2095. # none
  2096.  
  2097. # TAG: anonymize_headers
  2098. # Usage: anonymize_headers allow|deny header_name ...
  2099. #
  2100. # This option replaces the old 'http_anonymizer' option with
  2101. # something that is much more configurable. You may now
  2102. # specify exactly which headers are to be allowed, or which
  2103. # are to be removed from outgoing requests.
  2104. #
  2105. # There are two methods of using this option. You may either
  2106. # allow specific headers (thus denying all others), or you
  2107. # may deny specific headers (thus allowing all others).
  2108. #
  2109. # For example, to achieve the same behavior as the old
  2110. # 'http_anonymizer standard' option, you should use:
  2111. #
  2112. # anonymize_headers deny From Referer Server
  2113. # anonymize_headers deny User-Agent WWW-Authenticate Link
  2114. #
  2115. # Or, to reproduce the old 'http_anonymizer paranoid' feature
  2116. # you should use:
  2117. #
  2118. # anonymize_headers allow Allow Authorization Cache-Control
  2119. # anonymize_headers allow Content-Encoding Content-Length
  2120. # anonymize_headers allow Content-Type Date Expires Host
  2121. # anonymize_headers allow If-Modified-Since Last-Modified
  2122. # anonymize_headers allow Location Pragma Accept
  2123. # anonymize_headers allow Accept-Encoding Accept-Language
  2124. # anonymize_headers allow Content-Language Mime-Version
  2125. # anonymize_headers allow Retry-After Title Connection
  2126. # anonymize_headers allow Proxy-Connection
  2127. #
  2128. # NOTE: You can not mix "allow" and "deny". All 'anonymize_headers'
  2129. # lines must have the same second argument.
  2130. #
  2131. # By default, all headers are allowed (no anonymizing is
  2132. # performed).
  2133. #
  2134. #Default:
  2135. # none
  2136.  
  2137. # TAG: fake_user_agent
  2138. # If you filter the User-Agent header with 'anonymize_headers' it
  2139. # may cause some Web servers to refuse your request. Use this to
  2140. # fake one up. For example:
  2141. #
  2142. # fake_user_agent Nutscrape/1.0 (CP/M; 8-bit)
  2143. # (credit to Paul Southworth [email protected] for this one!)
  2144. #
  2145. #Default:
  2146. # none
  2147.  
  2148. # TAG: icon_directory
  2149. # Where the icons are stored. These are normally kept in
  2150. # /usr/lib/squid/icons
  2151. #
  2152. #Default:
  2153. # icon_directory /usr/lib/squid/icons
  2154.  
  2155. # TAG: error_directory
  2156. # Directory where the error files are read from.
  2157. # /usr/lib/squid/errors contains sets of error files
  2158. # in different languages. The default error directory
  2159. # is /etc/squid/errors, which is a link to one of these
  2160. # error sets.
  2161. #
  2162. # If you wish to create your own versions of the error files,
  2163. # either to customize them to suit your language or company,
  2164. # copy the template English files to another
  2165. # directory and point this tag at them.
  2166. #
  2167. #error_directory /etc/squid/errors
  2168. #
  2169. #Default:
  2170. # error_directory /etc/squid/errors
  2171.  
  2172. # TAG: minimum_retry_timeout (seconds)
  2173. # This specifies the minimum connect timeout, for when the
  2174. # connect timeout is reduced to compensate for the availability
  2175. # of multiple IP addresses.
  2176. #
  2177. # When a connection to a host is initiated, and that host has
  2178. # several IP addresses, the default connection timeout is reduced
  2179. # by dividing it by the number of addresses. So, a site with 15
  2180. # addresses would then have a timeout of 8 seconds for each
  2181. # address attempted. To avoid having the timeout reduced to the
  2182. # point where even a working host would not have a chance to
  2183. # respond, this setting is provided. The default, and the
  2184. # minimum value, is five seconds, and the maximum value is sixty
  2185. # seconds, or half of connect_timeout, whichever is greater and
  2186. # less than connect_timeout.
  2187. #
  2188. #Default:
  2189. # minimum_retry_timeout 5 seconds
  2190.  
  2191. # TAG: maximum_single_addr_tries
  2192. # This sets the maximum number of connection attempts for a
  2193. # host that only has one address (for multiple-address hosts,
  2194. # each address is tried once).
  2195. #
  2196. # The default value is three tries, the (not recommended)
  2197. # maximum is 255 tries. A warning message will be generated
  2198. # if it is set to a value greater than ten.
  2199. #
  2200. #Default:
  2201. # maximum_single_addr_tries 3
  2202.  
  2203. # TAG: snmp_port
  2204. # Squid can now serve statistics and status information via SNMP.
  2205. # By default it listens to port 3401 on the machine. If you don't
  2206. # wish to use SNMP, set this to "0".
  2207. #
  2208. # NOTE: SNMP support requires use the --enable-snmp configure
  2209. # command line option.
  2210. #
  2211. #Default:
  2212. # snmp_port 3401
  2213.  
  2214. # TAG: snmp_access
  2215. # Allowing or denying access to the SNMP port.
  2216. #
  2217. # All access to the agent is denied by default.
  2218. # usage:
  2219. #
  2220. # snmp_access allow|deny [!]aclname ...
  2221. #
  2222. #Example:
  2223. # snmp_access allow snmppublic localhost
  2224. # snmp_access deny all
  2225. #
  2226. #Default:
  2227. # snmp_access deny all
  2228.  
  2229. # TAG: snmp_incoming_address
  2230. # TAG: snmp_outgoing_address
  2231. # Just like 'udp_incoming_address' above, but for the SNMP port.
  2232. #
  2233. # snmp_incoming_address is used for the SNMP socket receiving
  2234. # messages from SNMP agents.
  2235. # snmp_outgoing_address is used for SNMP packets returned to SNMP
  2236. # agents.
  2237. #
  2238. # The default snmp_incoming_address (0.0.0.0) is to listen on all
  2239. # available network interfaces.
  2240. #
  2241. # If snmp_outgoing_address is set to 255.255.255.255 (the default)
  2242. # then it will use the same socket as snmp_incoming_address. Only
  2243. # change this if you want to have SNMP replies sent using another
  2244. # address than where this Squid listens for SNMP queries.
  2245. #
  2246. # NOTE, snmp_incoming_address and snmp_outgoing_address can not have
  2247. # the same value since they both use port 3401.
  2248. #
  2249. #Default:
  2250. # snmp_incoming_address 0.0.0.0
  2251. # snmp_outgoing_address 255.255.255.255
  2252.  
  2253. # TAG: as_whois_server
  2254. # WHOIS server to query for AS numbers. NOTE: AS numbers are
  2255. # queried only when Squid starts up, not for every request.
  2256. #
  2257. #Default:
  2258. # as_whois_server whois.ra.net
  2259. # as_whois_server whois.ra.net
  2260.  
  2261. # TAG: wccp_router
  2262. # Use this option to define your WCCP ``home'' router for
  2263. # Squid. Setting the 'wccp_router' to 0.0.0.0 (the default)
  2264. # disables WCCP.
  2265. #
  2266. #Default:
  2267. # wccp_router 0.0.0.0
  2268.  
  2269. # TAG: wccp_version
  2270. # According to some users, Cisco IOS 11.2 only supports WCCP
  2271. # version 3. If you're using that version of IOS, change
  2272. # this value to 3.
  2273. #
  2274. #Default:
  2275. # wccp_version 4
  2276.  
  2277. # TAG: wccp_incoming_address
  2278. # TAG: wccp_outgoing_address
  2279. # wccp_incoming_address Use this option if you require WCCP
  2280. # messages to be received on only one
  2281. # interface. Do NOT use this option if
  2282. # you're unsure how many interfaces you
  2283. # have, or if you know you have only one
  2284. # interface.
  2285. #
  2286. # wccp_outgoing_address Use this option if you require WCCP
  2287. # messages to be sent out on only one
  2288. # interface. Do NOT use this option if
  2289. # you're unsure how many interfaces you
  2290. # have, or if you know you have only one
  2291. # interface.
  2292. #
  2293. # The default behavior is to not bind to any specific address.
  2294. #
  2295. # NOTE, wccp_incoming_address and wccp_outgoing_address can not have
  2296. # the same value since they both use port 2048.
  2297. #
  2298. #Default:
  2299. # wccp_incoming_address 0.0.0.0
  2300. # wccp_outgoing_address 255.255.255.255
  2301.  
  2302.  
  2303. # DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
  2304. # -----------------------------------------------------------------------------
  2305.  
  2306. # TAG: delay_pools
  2307. # This represents the number of delay pools to be used. For example,
  2308. # if you have one class 2 delay pool and one class 3 delays pool, you
  2309. # have a total of 2 delay pools.
  2310. #
  2311. # To enable this option, you must use --enable-delay-pools with the
  2312. # configure script.
  2313. #
  2314. #Default:
  2315. # delay_pools 0
  2316.  
  2317. # TAG: delay_class
  2318. # This defines the class of each delay pool. There must be exactly one
  2319. # delay_class line for each delay pool. For example, to define two
  2320. # delay pools, one of class 2 and one of class 3, the settings above
  2321. # and here would be:
  2322. #
  2323. #Example:
  2324. # delay_pools 2 # 2 delay pools
  2325. # delay_class 1 2 # pool 1 is a class 2 pool
  2326. # delay_class 2 3 # pool 2 is a class 3 pool
  2327. #
  2328. # The delay pool classes are:
  2329. #
  2330. # class 1 Everything is limited by a single aggregate
  2331. # bucket.
  2332. #
  2333. # class 2 Everything is limited by a single aggregate
  2334. # bucket as well as an "individual" bucket chosen
  2335. # from bits 25 through 32 of the IP address.
  2336. #
  2337. # class 3 Everything is limited by a single aggregate
  2338. # bucket as well as a "network" bucket chosen
  2339. # from bits 17 through 24 of the IP address and a
  2340. # "individual" bucket chosen from bits 17 through
  2341. # 32 of the IP address.
  2342. #
  2343. # NOTE: If an IP address is a.b.c.d
  2344. # -> bits 25 through 32 are "d"
  2345. # -> bits 17 through 24 are "c"
  2346. # -> bits 17 through 32 are "c * 256 + d"
  2347. #
  2348. #Default:
  2349. # none
  2350.  
  2351. # TAG: delay_access
  2352. # This is used to determine which delay pool a request falls into.
  2353. # The first matched delay pool is always used, i.e., if a request falls
  2354. # into delay pool number one, no more delay are checked, otherwise the
  2355. # rest are checked in order of their delay pool number until they have
  2356. # all been checked. For example, if you want some_big_clients in delay
  2357. # pool 1 and lotsa_little_clients in delay pool 2:
  2358. #
  2359. #Example:
  2360. # delay_access 1 allow some_big_clients
  2361. # delay_access 1 deny all
  2362. # delay_access 2 allow lotsa_little_clients
  2363. # delay_access 2 deny all
  2364. #
  2365. #Default:
  2366. # none
  2367.  
  2368. # TAG: delay_parameters
  2369. # This defines the parameters for a delay pool. Each delay pool has
  2370. # a number of "buckets" associated with it, as explained in the
  2371. # description of delay_class. For a class 1 delay pool, the syntax is:
  2372. #
  2373. #delay_parameters pool aggregate
  2374. #
  2375. # For a class 2 delay pool:
  2376. #
  2377. #delay_parameters pool aggregate individual
  2378. #
  2379. # For a class 3 delay pool:
  2380. #
  2381. #delay_parameters pool aggregate network individual
  2382. #
  2383. # The variables here are:
  2384. #
  2385. # pool a pool number - ie, a number between 1 and the
  2386. # number specified in delay_pools as used in
  2387. # delay_class lines.
  2388. #
  2389. # aggregate the "delay parameters" for the aggregate bucket
  2390. # (class 1, 2, 3).
  2391. #
  2392. # individual the "delay parameters" for the individual
  2393. # buckets (class 2, 3).
  2394. #
  2395. # network the "delay parameters" for the network buckets
  2396. # (class 3).
  2397. #
  2398. # A pair of delay parameters is written restore/maximum, where restore is
  2399. # the number of bytes (not bits - modem and network speeds are usually
  2400. # quoted in bits) per second placed into the bucket, and maximum is the
  2401. # maximum number of bytes which can be in the bucket at any time.
  2402. #
  2403. # For example, if delay pool number 1 is a class 2 delay pool as in the
  2404. # above example, and is being used to strictly limit each host to 64kbps
  2405. # (plus overheads), with no overall limit, the line is:
  2406. #
  2407. #delay_parameters 1 -1/-1 8000/8000
  2408. #
  2409. # Note that the figure -1 is used to represent "unlimited".
  2410. #
  2411. # And, if delay pool number 2 is a class 3 delay pool as in the above
  2412. # example, and you want to limit it to a total of 256kbps (strict limit)
  2413. # with each 8-bit network permitted 64kbps (strict limit) and each
  2414. # individual host permitted 4800bps with a bucket maximum size of 64kb
  2415. # to permit a decent web page to be downloaded at a decent speed
  2416. # (if the network is not being limited due to overuse) but slow down
  2417. # large downloads more significantly:
  2418. #
  2419. #delay_parameters 2 32000/32000 8000/8000 600/64000
  2420. #
  2421. # There must be one delay_parameters line for each delay pool.
  2422. #
  2423. #Default:
  2424. # none
  2425.  
  2426. # TAG: delay_initial_bucket_level (percent, 0-100)
  2427. # The initial bucket percentage is used to determine how much is put
  2428. # in each bucket when squid starts, is reconfigured, or first notices
  2429. # a host accessing it (in class 2 and class 3, individual hosts and
  2430. # networks only have buckets associated with them once they have been
  2431. # "seen" by squid).
  2432. #
  2433. #Default:
  2434. # delay_initial_bucket_level 50
  2435.  
  2436. # TAG: incoming_icp_average
  2437. # TAG: incoming_http_average
  2438. # TAG: incoming_dns_average
  2439. # TAG: min_icp_poll_cnt
  2440. # TAG: min_dns_poll_cnt
  2441. # TAG: min_http_poll_cnt
  2442. # Heavy voodoo here. I can't even believe you are reading this.
  2443. # Are you crazy? Don't even think about adjusting these unless
  2444. # you understand the algorithms in comm_select.c first!
  2445. #
  2446. #Default:
  2447. # incoming_icp_average 6
  2448. # incoming_http_average 4
  2449. # incoming_dns_average 4
  2450. # min_icp_poll_cnt 8
  2451. # min_dns_poll_cnt 8
  2452. # min_http_poll_cnt 8
  2453.  
  2454. # TAG: max_open_disk_fds
  2455. # To avoid having disk as the I/O bottleneck Squid can optionally
  2456. # bypass the on-disk cache if more than this amount of disk file
  2457. # descriptors are open.
  2458. #
  2459. # A value of 0 indicates no limit.
  2460. #
  2461. #Default:
  2462. # max_open_disk_fds 0
  2463.  
  2464. # TAG: offline_mode
  2465. # Enable this option and Squid will never try to validate cached
  2466. # objects.
  2467. #
  2468. #Default:
  2469. # offline_mode off
  2470.  
  2471. # TAG: uri_whitespace
  2472. # What to do with requests that have whitespace characters in the
  2473. # URI. Options:
  2474. #
  2475. # strip: The whitespace characters are stripped out of the URL.
  2476. # This is the behavior recommended by RFC2616.
  2477. # deny: The request is denied. The user receives an "Invalid
  2478. # Request" message.
  2479. # allow: The request is allowed and the URI is not changed. The
  2480. # whitespace characters remain in the URI. Note the
  2481. # whitespace is passed to redirector processes if they
  2482. # are in use.
  2483. # encode: The request is allowed and the whitespace characters are
  2484. # encoded according to RFC1738. This could be considered
  2485. # a violation of the HTTP/1.1
  2486. # RFC because proxies are not allowed to rewrite URI's.
  2487. # chop: The request is allowed and the URI is chopped at the
  2488. # first whitespace. This might also be considered a
  2489. # violation.
  2490. #
  2491. #Default:
  2492. # uri_whitespace strip
  2493.  
  2494. # TAG: broken_posts
  2495. # A list of ACL elements which, if matched, causes Squid to send
  2496. # a extra CRLF pair after the body of a PUT/POST request.
  2497. #
  2498. # Some HTTP servers has broken implementations of PUT/POST,
  2499. # and rely on a extra CRLF pair sent by some WWW clients.
  2500. #
  2501. # Quote from RFC 2068 section 4.1 on this matter:
  2502. #
  2503. # Note: certain buggy HTTP/1.0 client implementations generate an
  2504. # extra CRLF's after a POST request. To restate what is explicitly
  2505. # forbidden by the BNF, an HTTP/1.1 client must not preface or follow
  2506. # a request with an extra CRLF.
  2507. #
  2508. #Example:
  2509. # acl buggy_server url_regex ^http://....
  2510. # broken_posts allow buggy_server
  2511. #
  2512. #Default:
  2513. # none
  2514.  
  2515. # TAG: mcast_miss_addr
  2516. # Note: This option is only available if Squid is rebuilt with the
  2517. # -DMULTICAST_MISS_STREAM option
  2518. #
  2519. # If you enable this option, every "cache miss" URL will
  2520. # be sent out on the specified multicast address.
  2521. #
  2522. # Do not enable this option unless you are are absolutely
  2523. # certain you understand what you are doing.
  2524. #
  2525. #Default:
  2526. # mcast_miss_addr 255.255.255.255
  2527.  
  2528. # TAG: mcast_miss_ttl
  2529. # Note: This option is only available if Squid is rebuilt with the
  2530. # -DMULTICAST_MISS_TTL option
  2531. #
  2532. # This is the time-to-live value for packets multicasted
  2533. # when multicasting off cache miss URLs is enabled. By
  2534. # default this is set to 'site scope', i.e. 16.
  2535. #
  2536. #Default:
  2537. # mcast_miss_ttl 16
  2538.  
  2539. # TAG: mcast_miss_port
  2540. # Note: This option is only available if Squid is rebuilt with the
  2541. # -DMULTICAST_MISS_STREAM option
  2542. #
  2543. # This is the port number to be used in conjunction with
  2544. # 'mcast_miss_addr'.
  2545. #
  2546. #Default:
  2547. # mcast_miss_port 3135
  2548.  
  2549. # TAG: mcast_miss_encode_key
  2550. # Note: This option is only available if Squid is rebuilt with the
  2551. # -DMULTICAST_MISS_STREAM option
  2552. #
  2553. # The URLs that are sent in the multicast miss stream are
  2554. # encrypted. This is the encryption key.
  2555. #
  2556. #Default:
  2557. # mcast_miss_encode_key XXXXXXXXXXXXXXXX
  2558.  
  2559. # TAG: nonhierarchical_direct
  2560. # By default, Squid will send any non-hierarchical requests
  2561. # (matching hierarchy_stoplist or not cachable request type) direct
  2562. # to origin servers.
  2563. #
  2564. # If you set this to off, then Squid will prefer to send these
  2565. # requests to parents.
  2566. #
  2567. # Note that in most configurations, by turning this off you will only
  2568. # add latency to these request without any improvement in global hit
  2569. # ratio.
  2570. #
  2571. # If you are inside an firewall then see never_direct instead of
  2572. # this directive.
  2573. #
  2574. #Default:
  2575. # nonhierarchical_direct on
  2576.  
  2577. # TAG: prefer_direct
  2578. # Normally Squid tries to use parents for most requests. If you by some
  2579. # reason like it to first try going direct and only use a parent if
  2580. # going direct fails then set this to off.
  2581. #
  2582. # By combining nonhierarchical_direct off and prefer_direct on you
  2583. # can set up Squid to use a parent as a backup path if going direct
  2584. # fails.
  2585. #
  2586. #Default:
  2587. # prefer_direct off
  2588.  
  2589. # TAG: strip_query_terms
  2590. # By default, Squid strips query terms from requested URLs before
  2591. # logging. This protects your user's privacy.
  2592. #
  2593. #Default:
  2594. # strip_query_terms on
  2595.  
  2596. # TAG: coredump_dir
  2597. # By default Squid leaves core files in the first cache_dir
  2598. # directory. If you set 'coredump_dir' to a directory
  2599. # that exists, Squid will chdir() to that directory at startup
  2600. # and coredump files will be left there.
  2601. #
  2602. #Default:
  2603. # none
  2604.  
  2605. # TAG: redirector_bypass
  2606. # When this is 'on', a request will not go through the
  2607. # redirector if all redirectors are busy. If this is 'off'
  2608. # and the redirector queue grows too large, Squid will exit
  2609. # with a FATAL error and ask you to increase the number of
  2610. # redirectors. You should only enable this if the redirectors
  2611. # are not critical to your caching system. If you use
  2612. # redirectors for access control, and you enable this option,
  2613. # then users may have access to pages that they should not
  2614. # be allowed to request.
  2615. #
  2616. #Default:
  2617. # redirector_bypass off
  2618.  
  2619. # TAG: ignore_unknown_nameservers
  2620. # By default Squid checks that DNS responses are received
  2621. # from the same IP addresses that they are sent to. If they
  2622. # don't match, Squid ignores the response and writes a warning
  2623. # message to cache.log. You can allow responses from unknown
  2624. # nameservers by setting this option to 'off'.
  2625. #
  2626. #Default:
  2627. # ignore_unknown_nameservers on
  2628.  
  2629. # TAG: digest_generation
  2630. # Note: This option is only available if Squid is rebuilt with the
  2631. # --enable-cache-digests option
  2632. #
  2633. # This controls whether the server will generate a Cache Digest
  2634. # of its contents. By default, Cache Digest generation is
  2635. # enabled if Squid is compiled with USE_CACHE_DIGESTS defined.
  2636. #
  2637. #Default:
  2638. # digest_generation on
  2639.  
  2640. # TAG: digest_bits_per_entry
  2641. # Note: This option is only available if Squid is rebuilt with the
  2642. # --enable-cache-digests option
  2643. #
  2644. # This is the number of bits of the server's Cache Digest which
  2645. # will be associated with the Digest entry for a given HTTP
  2646. # Method and URL (public key) combination. The default is 5.
  2647. #
  2648. #Default:
  2649. # digest_bits_per_entry 5
  2650.  
  2651. # TAG: digest_rebuild_period (seconds)
  2652. # Note: This option is only available if Squid is rebuilt with the
  2653. # --enable-cache-digests option
  2654. #
  2655. # This is the number of seconds between Cache Digest rebuilds.
  2656. #
  2657. #Default:
  2658. # digest_rebuild_period 1 hour
  2659.  
  2660. # TAG: digest_rewrite_period (seconds)
  2661. # Note: This option is only available if Squid is rebuilt with the
  2662. # --enable-cache-digests option
  2663. #
  2664. # This is the number of seconds between Cache Digest writes to
  2665. # disk.
  2666. #
  2667. #Default:
  2668. # digest_rewrite_period 1 hour
  2669.  
  2670. # TAG: digest_swapout_chunk_size (bytes)
  2671. # Note: This option is only available if Squid is rebuilt with the
  2672. # --enable-cache-digests option
  2673. #
  2674. # This is the number of bytes of the Cache Digest to write to
  2675. # disk at a time. It defaults to 4096 bytes (4KB), the Squid
  2676. # default swap page.
  2677. #
  2678. #Default:
  2679. # digest_swapout_chunk_size 4096 bytes
  2680.  
  2681. # TAG: digest_rebuild_chunk_percentage (percent, 0-100)
  2682. # Note: This option is only available if Squid is rebuilt with the
  2683. # --enable-cache-digests option
  2684. #
  2685. # This is the percentage of the Cache Digest to be scanned at a
  2686. # time. By default it is set to 10% of the Cache Digest.
  2687. #
  2688. #Default:
  2689. # digest_rebuild_chunk_percentage 10
  2690.  
  2691. # TAG: chroot
  2692. # Use this to have Squid do a chroot() while initializing. This
  2693. # also causes Squid to fully drop root privileges after
  2694. # initializing. This means, for example, that if you use a HTTP
  2695. # port less than 1024 and try to reconfigure, you will get an
  2696. # error.
  2697. #
  2698. #Default:
  2699. # none
  2700.  
  2701. # TAG: client_persistent_connections
  2702. # TAG: server_persistent_connections
  2703. # Persistent connection support for clients and servers. By
  2704. # default, Squid uses persistent connections (when allowed)
  2705. # with its clients and servers. You can use these options to
  2706. # disable persistent connections with clients and/or servers.
  2707. #
  2708. #Default:
  2709. # client_persistent_connections on
  2710. # server_persistent_connections on
  2711.  
  2712. # TAG: pipeline_prefetch
  2713. # To boost the performance of pipelined requests to closer
  2714. # match that of a non-proxied environment Squid tries to fetch
  2715. # up to two requests in parallell from a pipeline.
  2716. #
  2717. #Default:
  2718. # pipeline_prefetch on
  2719.  
  2720. # TAG: extension_methods
  2721. # Squid only knows about standardized HTTP request methods.
  2722. # You can add up to 20 additional "extension" methods here.
  2723. #
  2724. #Default:
  2725. # none
  2726.  
  2727. # TAG: high_response_time_warning (msec)
  2728. # If the one-minute median response time exceeds this value,
  2729. # Squid prints a WARNING with debug level 0 to get the
  2730. # administrators attention. The value is in milliseconds.
  2731. #
  2732. #Default:
  2733. # high_response_time_warning 0
  2734.  
  2735. # TAG: high_page_fault_warning
  2736. # If the one-minute average page fault rate exceeds this
  2737. # value, Squid prints a WARNING with debug level 0 to get
  2738. # the administrators attention. The value is in page faults
  2739. # per second.
  2740. #
  2741. #Default:
  2742. # high_page_fault_warning 0
  2743.  
  2744. # TAG: high_memory_warning
  2745. # If the memory usage (as determined by mallinfo) exceeds
  2746. # value, Squid prints a WARNING with debug level 0 to get
  2747. # the administrators attention.
  2748. #
  2749. #Default:
  2750. # high_memory_warning 0
  2751.  
  2752. # TAG: store_dir_select_algorithm
  2753. # Set this to 'round-robin' as an alternative.
  2754. #
  2755. #Default:
  2756. # store_dir_select_algorithm least-load
  2757.  
  2758. # TAG: forward_log
  2759. # Note: This option is only available if Squid is rebuilt with the
  2760. # -DWIP_FWD_LOG option
  2761. #
  2762. # Logs the server-side requests.
  2763. #
  2764. # This is currently work in progress.
  2765. #
  2766. #Default:
  2767. # none
  2768.  
  2769. # TAG: ie_refresh on|off
  2770. # Microsoft Internet Explorer up until version 5.5 Service
  2771. # Pack 1 has an issue with transparent proxies, wherein it
  2772. # is impossible to force a refresh. Turning this on provides
  2773. # a partial fix to the problem, by causing all IMS-REFRESH
  2774. # requests from older IE versions to check the origin server
  2775. # for fresh content. This reduces hit ratio by some amount
  2776. # (~10% in my experience), but allows users to actually get
  2777. # fresh content when they want it. Note that because Squid
  2778. # cannot tell if the user is using 5.5 or 5.5SP1, the behavior
  2779. # of 5.5 is unchanged from old versions of Squid (i.e. a
  2780. # forced refresh is impossible). Newer versions of IE will,
  2781. # hopefully, continue to have the new behavior and will be
  2782. # handled based on that assumption. This option defaults to
  2783. # the old Squid behavior, which is better for hit ratios but
  2784. # worse for clients using IE, if they need to be able to
  2785. # force fresh content.
  2786. #
  2787. #Default:
  2788. # ie_refresh off
Advertisement
Add Comment
Please, Sign In to add comment