⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cf.data.pre

📁 -
💻 PRE
📖 第 1 页 / 共 5 页
字号:
## $Id: cf.data.pre,v 1.144.2.7 1999/05/07 21:44:11 wessels Exp $### SQUID Internet Object Cache  http://squid.nlanr.net/Squid/# ----------------------------------------------------------##  Squid is the result of efforts by numerous individuals from the#  Internet community.  Development is led by Duane Wessels of the#  National Laboratory for Applied Network Research and funded by the#  National Science Foundation.  Squid is Copyrighted (C) 1998 by#  Duane Wessels and the University of California San Diego.  Please#  see the COPYRIGHT file for full details.  Squid incorporates#  software developed and/or copyrighted by other sources.  Please see#  the CREDITS file for full details.##  This program is free software; you can redistribute it and/or modify#  it under the terms of the GNU General Public License as published by#  the Free Software Foundation; either version 2 of the License, or#  (at your option) any later version.#  #  This program is distributed in the hope that it will be useful,#  but WITHOUT ANY WARRANTY; without even the implied warranty of#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#  GNU General Public License for more details.#  #  You should have received a copy of the GNU General Public License#  along with this program; if not, write to the Free Software#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.#COMMENT_START	WELCOME TO SQUID 2	------------------	This is the default Squid configuration file. You may wish	to look at http://cache.is.co.za/squid/ for documentation,	or the Squid home page (http://squid.nlanr.net/) for the FAQ.	The default Squid config file shows what the defaults for	various options happen to be.  If you don't need to change the	default, you shouldn't uncomment the line.  Doing so may cause	run-time problems.  In some cases "none" refers to no default	setting at all, whilst in other cases it refers to a valid	option - the comments for that keyword indicate if this is the	case.COMMENT_ENDCOMMENT_START NETWORK OPTIONS -----------------------------------------------------------------------------COMMENT_ENDNAME: http_port ascii_portTYPE: ushortlistDEFAULT: noneDEFAULT_IF_NONE: 3128LOC: Config.Port.httpDOC_START	The port number where Squid will listen for HTTP client	requests.  Default is 3128, for httpd-accel mode use port 80.	May be overridden with -a on the command line.	You may specify multiple ports here, but they MUST all be on	a single line.http_port 3128DOC_ENDNAME: icp_port udp_portTYPE: ushortDEFAULT: 3130LOC: Config.Port.icpDOC_START	The port number where Squid sends and receives ICP requests to	and from neighbor caches.  Default is 3130.  To disable use	"0".  May be overridden with -u on the command line.icp_port 3130DOC_ENDNAME: htcp_portIFDEF: USE_HTCPTYPE: ushortDEFAULT: 4827LOC: Config.Port.htcpDOC_START	The port number where Squid sends and receives ICP requests to	and from neighbor caches.  Default is 4827.  To disable use	"0".	To enable this option, you must use --enable-htcp with the	configure script.htcp_port 4827DOC_ENDNAME: mcast_groupsTYPE: wordlistLOC: Config.mcast_group_listDEFAULT: noneDOC_START	This tag specifies a list of multicast groups which your server	should join to receive multicasted ICP requests.	NOTE!  Be very careful what you put here!  Be sure you	understand the difference between an ICP _query_ and an ICP	_reply_.  This option is to be set only if you want to RECEIVE	multicast queries.  Do NOT set this option to SEND multicast	ICP (use cache_peer for that).  ICP replies are always sent via	unicast, so this option does not affect whether or not you will	receive replies from multicast group members.	You must be very careful to NOT use a multicast address which	is already in use by another group of caches.  NLANR has been	assigned a block of multicast address space for use in Web	Caching.  Plese write to us at nlanr-cache@nlanr.net to receive	an address for your own use.	If you are unsure about multicast, please read the Multicast	chapter in the Squid FAQ (http://squid.nlanr.net/Squid/FAQ/).	Usage: mcast_groups 239.128.16.128 224.0.1.20	By default, Squid doesn't listen on any multicast groups.mcast_groups 239.128.16.128DOC_ENDNAME: tcp_incoming_address bind_addressTYPE: addressLOC: Config.Addrs.tcp_incomingDEFAULT: 0.0.0.0DOC_NONENAME: tcp_outgoing_address outbound_addressTYPE: addressLOC: Config.Addrs.tcp_outgoingDEFAULT: 255.255.255.255DOC_NONENAME: udp_incoming_addressTYPE: addressLOC:Config.Addrs.udp_incomingDEFAULT: 0.0.0.0DOC_NONENAME: udp_outgoing_addressTYPE: addressLOC: Config.Addrs.udp_outgoingDEFAULT: 255.255.255.255DOC_START	Usage: tcp_incoming_address 10.20.30.40	       udp_outgoing_address fully.qualified.domain.name	tcp_incoming_address	is used for the HTTP socket which accepts				connections from clients and other caches.	tcp_outgoing_address	is used for connections made to remote				servers and other caches.	udp_incoming_address	is used for the ICP socket receiving packets				from other caches.	udp_outgoing_address	is used for ICP packets sent out to other				caches.	The default behaviour is to not bind to any specific address.	NOTE, udp_incoming_address and udp_outgoing_address can not	have the same value (unless it is 0.0.0.0) since they both use	port 3130.tcp_incoming_address 0.0.0.0tcp_outgoing_address 0.0.0.0udp_incoming_address 0.0.0.0udp_outgoing_address 0.0.0.0DOC_ENDCOMMENT_START OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM -----------------------------------------------------------------------------COMMENT_ENDNAME: cache_peerTYPE: peerDEFAULT: noneLOC: Config.peersDOC_START	To specify other caches in a hierarchy, use the format:		hostname type http_port icp_port	For example,	#                                        proxy  icp	#          hostname             type     port   port  options	#          -------------------- -------- ----- -----  -----------	cache_peer parent.foo.net       parent    3128  3130  [proxy-only]	cache_peer sib1.foo.net         sibling   3128  3130  [proxy-only]	cache_peer sib2.foo.net         sibling   3128  3130  [proxy-only]	      type:  either 'parent', 'sibling', or 'multicast'.	proxy_port:  The port number where the cache listens for proxy		     requests.	  icp_port:  Used for querying neighbor caches about		     objects.  To have a non-ICP neighbor		     specify '7' for the ICP port and make sure the		     neighbor machine has the UDP echo port		     enabled in its /etc/inetd.conf file.	    options: proxy-only		     weight=n		     ttl=n		     no-query		     default		     round-robin		     multicast-responder		     closest-only		     no-digest		     no-netdb-exchange		     no-delay		     login=user:password		     use 'proxy-only' to specify that objects fetched		     from this cache should not be saved locally.		     use 'weight=n' to specify a weighted parent.		     The weight must be an integer.  The default weight		     is 1, larger weights are favored more.		     use 'ttl=n' to specify a IP multicast TTL to use		     when sending an ICP request to this address.		     Only useful when sending to a multicast group.		     Because we don't accept ICP replies from random		     hosts, you must configure other group members as		     peers with the 'multicast-responder' option below.		     use 'no-query' to NOT send ICP queries to this		     neighbor.		     use 'default' if this is a parent cache which can		     be used as a "last-resort." You should probably		     only use 'default' in situations where you cannot		     use ICP with your parent cache(s).		     use 'round-robin' to define a set of parents which		     should be used in a round-robin fashion in the		     absence of any ICP queries.		     'multicast-responder' indicates that the named peer		     is a member of a multicast group.  ICP queries will		     not be sent directly to the peer, but ICP replies		     will be accepted from it.		     'closest-only' indicates that, for ICP_OP_MISS		     replies, we'll only forward CLOSEST_PARENT_MISSes		     and never FIRST_PARENT_MISSes.		     use 'no-digest' to NOT request cache digests from		     this neighbor.		     'no-netdb-exchange' disables requesting ICMP		     RTT database (NetDB) from the neighbor.		     use 'no-delay' to prevent access to this neighbor		     from influencing the delay pools.		     use 'login=user:password' if this is a personal/workgroup		     proxy and your parent requires proxy authentication.	NOTE: non-ICP neighbors must be specified as 'parent'.cache_peer hostname type 3128 3130DOC_ENDNAME: cache_peer_domain cache_host_domainTYPE: hostdomainDEFAULT: noneLOC: noneDOC_START	Use to limit the domains for which a neighbor cache will be	queried.  Usage:	cache_peer_domain cache-host domain [domain ...]	cache_peer_domain cache-host !domain	For example, specifying		cache_peer_domain parent.foo.net	.edu	has the effect such that UDP query packets are sent to	'bigserver' only when the requested object exists on a	server in the .edu domain.  Prefixing the domainname	with '!' means that the cache will be queried for objects	NOT in that domain.	NOTE:	* Any number of domains may be given for a cache-host,		  either on the same or separate lines.		* When multiple domains are given for a particular		  cache-host, the first matched domain is applied.		* Cache hosts with no domain restrictions are queried		  for all requests.		* There are no defaults.		* There is also a 'cache_peer_access' tag in the ACL		  section.DOC_ENDNAME: neighbor_type_domainTYPE: hostdomaintypeDEFAULT: noneLOC: noneDOC_START	usage: neighbor_type_domain parent|sibling domain domain ...	Modifying the neighbor type for specific domains is now	possible.  You can treat some domains differently than the the	default neighbor type specified on the 'cache_peer' line.	Normally it should only be necessary to list domains which	should be treated differently because the default neighbor type	applies for hostnames which do not match domains listed here.EXAMPLE:	cache_peer  parent cache.foo.org 3128 3130	neighbor_type_domain cache.foo.org sibling .com .net	neighbor_type_domain cache.foo.org sibling .au .deDOC_ENDNAME: icp_query_timeoutCOMMENT: (msec)DEFAULT: 0TYPE: intLOC: Config.Timeout.icp_queryDOC_START	Normally Squid will automatically determine an optimal ICP	query timeout value based on the round-trip-time of recent ICP	queries.  If you want to override the value determined by	Squid, set this 'icp_query_timeout' to a non-zero value.  This	value is specified in MILLISECONDS, so, to use a 2-second	timeout (the old default), you would write:		icp_query_timeout 2000icp_query_timeout 0DOC_ENDNAME: mcast_icp_query_timeoutCOMMENT: (msec)DEFAULT: 2000TYPE: intLOC: Config.Timeout.mcast_icp_queryDOC_START	For Multicast peers, Squid regularly sends out ICP "probes" to	count how many other peers are listening on the given multicast	address.  This value specifies how long Squid should wait to	count all the replies.  The default is 2000 msec, or 2	seconds.mcast_icp_query_timeout 2000DOC_ENDNAME: dead_peer_timeoutCOMMENT: (seconds)DEFAULT: 10 secondsTYPE: time_tLOC: Config.Timeout.deadPeerDOC_START	This controls how long Squid waits to declare a peer cache	as "dead."  If there are no ICP replies received in this	amount of time, Squid will declare the peer dead and not	expect to receive any further ICP replies.  However, it	continues to send ICP queries, and will mark the peer as	alive upon receipt of the first subsequent ICP reply.	This timeout also affects when Squid expects to receive ICP	replies from peers.  If more than 'dead_peer' seconds have	passed since the last ICP reply was received, Squid will not	expect to receive an ICP reply on the next query.  Thus, if	your time between requests is greater than this timeout, you	will see a lot of requests sent DIRECT to origin servers	instead of to your parents.dead_peer_timeout 10 secondsDOC_ENDNAME: hierarchy_stoplistTYPE: wordlistDEFAULT: noneDEFAULT_IF_NONE: cgi-bin ?LOC: Config.hierarchy_stoplistDOC_START	A list of words which, if found in a URL, cause the object to	be handled directly by this cache.  In other words, use this	to not query neighbor caches for certain objects.  You may	list this option multiple times.	The default is to directly fetch URLs containing 'cgi-bin' or '?'.hierarchy_stoplist cgi-bin ?DOC_ENDNAME: no_cacheTYPE: acl_accessDEFAULT: noneLOC: Config.accessList.noCacheDOC_START	A list of ACL elements which, if matched, cause the reply to	immediately removed from the cache.  In other words, use this	to force certain objects to never be cached.	You must use the word 'DENY' to indicate the ACL names which should	NOT be cached.	There is no default.  We recommend you uncomment the following	two lines.acl QUERY urlpath_regex cgi-bin \?no_cache deny QUERYDOC_ENDCOMMENT_START OPTIONS WHICH AFFECT THE CACHE SIZE -----------------------------------------------------------------------------COMMENT_ENDNAME: cache_memCOMMENT: (bytes)TYPE: b_size_tDEFAULT: 8 MBLOC: Config.memMaxSizeDOC_START	NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS	SIZE.  IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY	USAGE.  SQUID USES MEMORY FOR OTHER THINGS AS WELL.	YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES	BIGGER THAN THE VALUE YOU PUT HERE 	'cache_mem' specifies the ideal amount of memory to be used	for:		* In-Transit objects		* Hot Objects		* Negative-Cached objects	Data for these objects are stored in 4 KB blocks.  This	parameter specifies the ideal upper limit on the total size of	4 KB blocks allocated.  In-Transit objects take the highest	priority.	In-transit objects have priority over the others.  When	additional space is needed for incoming data, negative-cached	and hot objects will be released.  In other words, the	negative-cached and hot objects will fill up any unused space	not needed for in-transit objects.	If circumstances require, this limit will be exceeded.	Specifically, if your incoming request rate requires more than	'cache_mem' of memory to hold in-transit objects, Squid will	exceed this limit to satisfy the new requests.  When the load	decreases, blocks will be freed until the high-water mark is	reached.  Thereafter, blocks will be used to store hot	objects.	The values of cache_mem_low and cache_mem_high (below) can be	used to tune the use of the memory pool.  When the high mark is	reached, in-transit and hot objects will be released to clear	space.  When an object transfer is completed, it will remain in	memory only if the current memory usage is below the low water	mark.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -