AndrzejL

/etc/squid/squid.conf

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