Chinaunix首页 | 论坛 | 博客
  • 博客访问: 319498
  • 博文数量: 65
  • 博客积分: 2570
  • 博客等级: 少校
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-15 14:04
个人简介

苦逼房奴一枚

文章分类

全部博文(65)

文章存档

2017年(19)

2016年(5)

2013年(6)

2012年(1)

2011年(3)

2009年(5)

2008年(26)

我的朋友

分类: LINUX

2008-08-15 15:02:19

可以转载,转载请著名作者和出处,谢谢,特别鄙视转载后扣上自己名字的哥们
 
 
只使用了web cache功能,给web加速
 
http_port 80 defaultsite=IP
icp_port 0
cache_peer ip parent 85 0 no-query originserver
hosts_file /etc/hosts
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 2000 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
maximum_object_size_in_memory 1024 KB
cache_dir ufs /var/spool/squid 10000 64 256
emulate_httpd_log on
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-Agent}>h" %Ss:%Sh
access_log /var/log/squid/access.log combined
cache_log none
cache_store_log none
refresh_pattern ^ftp:  10 20% 20
refresh_pattern ^gopher: 10 0% 20
refresh_pattern .  0 20% 20
refresh_pattern -i .html 10 100% 20 reload-into-ims
refresh_pattern -i .shtml 10 100% 20 reload-into-ims
refresh_pattern -i .htm 10 100% 20 reload-into-ims
refresh_pattern -i .gif 10 100% 20 reload-into-ims
refresh_pattern -i .swf 10 100% 20 reload-into-ims
refresh_pattern -i .png 10 100% 20 reload-into-ims
refresh_pattern -i .bmp 10 100% 20 reload-into-ims
refresh_pattern -i .css 10 100% 20 reload-into-ims
refresh_pattern -i .jpg 10 100% 20 reload-into-ims
refresh_pattern -i .txt 10 100% 20 reload-into-ims
refresh_pattern -i .rhtml 10 100% 20 reload-into-ims
refresh_pattern -i .xml 10 100% 20 reload-into-ims
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
acl to_localhost dst 127.0.0.0/8
acl to_servers dst IP
acl Safe_ports port 80
acl OverConnLimit maxconn 8
http_access deny OverConnLimit
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow to_servers
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname cache15
cache_mgr

redirect_rewrites_host_header off
half_closed_clients off
allow_underscore on
pid_filename /usr/local/squaid/var/logs/squid.pid
logfile_rotate 10
coredump_dir /var/spool/squid

 
阅读(913) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~