无所事事
  无所事事,只是生活的态度。[详细]
  haka的网签
    longrujun : Squid2.6反向代理实现多个Web缓存加速--[配置文档]  [2007-11-26 19:37:19]
Squid2.6反向代理实现多个Web缓存加速--[配置文档]

# NETWORK OPTIONS
# -----------------------------------------------------------------------------


http_port 211.211.211.211:80 transparent vhost vport


#
#cache_peer 211.100.59.59 parent 80 0 no-query originserver
#cache_peer 61.235.170.133 parent 80 3130 no-query no-netdb-exchange proxy-only
#cache_peer 211.101.21.114 parent 80 0  no-query originserver
#cache_peer 211.100.23.242 parent 80 0  no-query originserver
#cache_peer 61.135.120.233 parent 80 0  no-query originserver
#cache_peer 219.246.145.145 parent 80 0  no-query originserver

# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------


hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
collapsed_forwarding on

# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------
cache_mem 256 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 80 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
cache_replacement_policy lru
memory_replacement_policy lru

# LOGFILE PATHNAMES and CACHE DIRECTORIES
# -----------------------------------------------------------------------------


#cache_dir ufs /Data/apps/squid/var/cache 1024 56 256
cache_dir ufs /Data/apps/squid/cache 4096 56 256
#access_log /Data/apps/squid/var/logs/access.log squid
cache_log /Data/apps/squid/var/logs/cache.log
emulate_httpd_log on
#cache_store_log /Data/apps/squid/var/logs/store.log
# pid_filename /Data/apps/squid/var/logs/squid.pid



# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -----------------------------------------------------------------------------


dns_children 5
#Recommended minimum configuration per scheme:
#auth_param negotiate program 
#auth_param negotiate children 5
#auth_param negotiate keep_alive on
#auth_param ntlm program 
#auth_param ntlm children 5
#auth_param ntlm keep_alive on
#auth_param digest program 
#auth_param digest children 5
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
#auth_param basic program 
#auth_param basic children 5


auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off


# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------


# request_header_max_size 20 KB
# request_body_max_size 0 KB


refresh_pattern ^ftp:        1440    20%    10080
refresh_pattern ^gopher:    1440    0%    1440
refresh_pattern .        0    20%    4320
quick_abort_min 0 KB
quick_abort_max 0 KB
# quick_abort_pct 95
# read_ahead_gap 16 KB
# negative_ttl 5 minutes
# refresh_stale_hit 0 seconds


# TIMEOUTS
# -----------------------------------------------------------------------------


forward_timeout 20 seconds
connect_timeout 15 seconds
# peer_connect_timeout 30 seconds
read_timeout 3 minutes
request_timeout 1 minutes
persistent_request_timeout 15 seconds
client_lifetime 15 minutes
half_closed_clients off
# pconn_timeout 120 seconds
# ident_timeout 10 seconds
shutdown_lifetime 5 seconds


# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------


cache_mgr longrujun@gmail.com
cache_effective_user squid
cache_effective_group squid
# httpd_suppress_version_string off
visible_hostname longrujun.name


# OPTIONS FOR THE CACHE REGISTRATION SERVICE
# ----------------------------------------------------------------------------



# HTTPD-ACCELERATOR OPTIONS
# -----------------------------------------------------------------------------


# httpd_accel_no_pmtu_disc off


# MISCELLANEOUS
# -----------------------------------------------------------------------------


logfile_rotate 0
 tcp_recv_bufsize 65535 bytes
# memory_pools on
# memory_pools_limit 5 MB
# via on
# forwarded_for on
# log_icp_queries on
# icp_hit_stale off
# minimum_direct_hops 4
# minimum_direct_rtt 400
# store_avg_object_size 13 KB
# store_objects_per_bucket 20
# client_db on
# netdb_low 900
# netdb_high 1000
# netdb_ping_period 5 minutes
# query_icmp off
# buffered_logs off
# reload_into_ims off
# global_internal_static on
# short_icon_urls off
error_directory /Data/apps/squid/share/errors/Simplify_Chinese
# maximum_single_addr_tries 1
# retry_on_error off


# DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
# -----------------------------------------------------------------------------


# delay_initial_bucket_level 50
# max_open_disk_fds 0
# offline_mode off
# uri_whitespace strip
# nonhierarchical_direct on
# prefer_direct off
# coredump_dir none
coredump_dir /Data/apps/squid/cache
# redirector_bypass off
# ignore_unknown_nameservers on
# digest_generation on
# digest_bits_per_entry 5
# digest_rebuild_period 1 hour
# digest_swapout_chunk_size 4096 bytes
# digest_rebuild_chunk_percentage 10
client_persistent_connections off
server_persistent_connections on
# persistent_connection_after_error off
# detect_broken_pconn off
# balance_on_multiple_ip on
# pipeline_prefetch off
# request_entities off
# high_response_time_warning 0
# high_page_fault_warning 0
# high_memory_warning 0
# store_dir_select_algorithm least-load
# ie_refresh off
vary_ignore_expire on
# sleep_after_fork 0
# minimum_expiry_time 60 seconds
# relaxed_header_parser on
strip_query_terms on



# ACCESS CONTROLS
#---------------------------------------------------


acl OverConnLimit maxconn 20
http_access deny OverConnLimit


#acl AntiGoogle req_header User-Agent Googlespider
#http_access deny AntiGoogle

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255 10.10.10.0/24
acl Srvip   dst 211.100.99.0/24 211.100.100.0/24 61.135.100.0/24 60.195.200.159.0/24
acl Srvdm   dstdomain  .longrujun.name .hanlei.name .liuren.com .keso.cn
acl to_localhost dst 127.0.0.0/8 61.135.170.231/255.255.255.255
acl purgehost src   127.0.0.0/8 61.135.170.231/255.255.255.255
acl purgemethod method PURGE     
acl SSL_ports port 443 563
acl Safe_ports port 80          # http    
acl Safe_ports port 81          # http   
acl CONNECT method CONNECT       

always_direct allow Srvdm
never_direct allow !Srvdm
http_access allow manager localhost
http_access deny manager
http_access allow purgemethod purgehost
http_access deny !Safe_ports
http_access deny CONNECT all
http_access allow localhost
http_access allow Srvip
http_access allow Srvdm
http_access deny all
http_reply_access allow all
icp_access deny all
icp_port 0
  网签地址:http://longrujun.name/blogs/longrujun/archive/2006/08/25/Squid2.6_CD531154E34E06749E5BB0731A592A4E_Web_137F585BA0521F902D002D005B004D916E7F876563685D00_.aspx
我的简介
haka的头像
haka
积  分:
受欢迎度:
菜单
网站主页
haka的主页
文章归档
我的媒体库
关于我
我的联系人
我的网签
我的标签
我的播客
我的圈子
我的测试
订阅我的更新
     RSS 0.90
     RSS 2.0
     播客RSS 2.0
     通过UCWEB订阅
日历
<<  七月 2010   
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
最新文章
计算机编程语言史
生活中和实际的用户体验大抵如...
社交型阅读
高调的唐骏和低调的方鸿渐
从数字看微软
Outlook 2010 Social C...
深度剖析iPhone经济:半...
今天你还会攒机吗?
这就是烧钱
大陆第一款真正可商用Andr...
我的标签
科技IT[1007]
互联网[652]
新闻时事[313]
文化艺术[205]
无所事事[199]
电影[126]
通信[121]
网站管理[107]
linux[104]
BLOG_SNS[99]
旅游[80]
旅游摄影[68]
我加入的圈子
东逸东方社区 在东逸东方社区的活跃指数15631563
┢┦apPy 在┢┦apPy的活跃指数223223
Sharera.com 在Sharera.com的活跃指数134134
Oracle联盟 在Oracle联盟的活跃指数113113
动漫情报小站 在动漫情报小站的活跃指数110110
杀人游戏 在杀人游戏的活跃指数107107
手机也疯狂 在手机也疯狂的活跃指数106106
狐朋狗友 在狐朋狗友的活跃指数105105
飘然爱永恒 在飘然爱永恒的活跃指数105105
数码拍摄爱好者 在数码拍摄爱好者的活跃指数105105
GMail中文用户圈 在GMail中文用户圈的活跃指数104104
心情的殿堂 在心情的殿堂的活跃指数103103
谈股论金 在谈股论金的活跃指数103103
海阔天空 vs 友情天地 在海阔天空 vs 友情天地的活跃指数102102
复转军人营区 在复转军人营区的活跃指数101101
走近自然,保护自然 在走近自然,保护自然的活跃指数101101
棠德小区(邻居小城) 在棠德小区(邻居小城)的活跃指数101101
笔翼畅飞 在笔翼畅飞的活跃指数100100
生活资讯 在生活资讯的活跃指数100100
南邮广客 在南邮广客的活跃指数100100
有活气的街道 在有活气的街道的活跃指数100100
不完美JAVA代码交流圈 在不完美JAVA代码交流圈的活跃指数100100
日记 在日记的活跃指数100100
为食阶 在为食阶的活跃指数100100
中华传统文化 在中华传统文化的活跃指数100100
∽论∽ 在∽论∽的活跃指数100100
情色小说 在情色小说的活跃指数100100
只搞程序 在只搞程序的活跃指数100100
运动协 在运动协的活跃指数100100
自游世界 在自游世界的活跃指数100100
九三年的三三 在九三年的三三的活跃指数100100
周杰伦Sharera番薯会 在周杰伦Sharera番薯会的活跃指数100100
叠彩园 在叠彩园的活跃指数100100
我的友情链接
 
广州市志趣信息技术有限公司,版权所有。粤ICP证号:粤B2-20050207
客服热线:(020)38483801,38483805 客服qq:515211591 客服邮箱和MSN:support@sharera.com 客服BLOG:http://support.sharera.com/