文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>squid 配置实例

squid 配置实例

时间:2010-06-01  来源:mzg

 

# WELCOME TO SQUID 2

# ------------------

#

# This is the default Squid configuration file. You may wish

# to look at the Squid home page (http://www.squid-cache.org/)

# for the FAQ and other documentation.

#

# 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, while in other cases it refers to a valid

# option - the comments for that keyword indicate if this is the

# case.

#

# http_port 3128



acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY


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 SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

#Default:

# sleep_after_fork 0


http_port 192.168.0.254:3128

cache_mgr [email protected]
error_directory /usr/share/squid/errors/Simplify_Chinese
dns_nameservers 202.98.0.68 202.98.5.68
visible_hostname proxy.com
httpd_accel_uses_host_header on
httpd_accel_host virtual
httpd_accel_with_proxy on
cache_mem 28 MB
maximum_object_size 1024 KB
#minimum_object_size 10 KB

maximum_object_size_in_memory 30 KB
#minimum_object_size_in_memory 10 KB

cache_dir ufs /tmp 100 16 256
#reference_age 3 months

cache_swap_low 85%
cache_swap_high 95%
httpd_accel_port 80
half_closed_clients off
refresh_pattern -i .html 1440 100% 129600 reload-into-ims
refresh_pattern -i .shtml 1440 100% 129600 reload-into-ims
refresh_pattern -i .hml 1440 100% 129600 reload-into-ims
refresh_pattern -i .gif 1440 100% 129600 reload-into-ims
refresh_pattern -i .swf 1440 100% 129600 reload-into-ims
refresh_pattern -i .jpg 1440 100% 129600 reload-into-ims
refresh_pattern -i .png 1440 100% 129600 reload-into-ims
refresh_pattern -i .bmp 1440 100% 129600 reload-into-ims
refresh_pattern -i .js 1440 100% 129600 reload-into-ims


#run xu te ding wang duan shang wang

acl all src 0.0.0.0/0.0.0.0
acl work0_client src 192.168.0.0/24
#acl work1_client src 192.168.1.0/24
%

相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载