Advertisement
AndrzejL

AndrzejL /etc/squid/squid.conf

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