|
|

楼主 |
发表于 2006-10-8 15:17:38
|
显示全部楼层
我的squid.conf
----------------------------------------
http_port 8080
icp_port 0
#
hierarchy_stoplist 192.168.1.1
acl QUERY urlpath_regex 192.168.1.1
no_cache deny QUERY
redirect_program /usr/bin/squidclam
redirect_children 15
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern .gif$ 10080 100% 43200 override-expire
refresh_pattern .jpg$ 10080 100% 43200 override-expire
refresh_pattern . 960 90% 43200 reload-into-ims
visible_hostname gw
dns_nameservers 211.53.31.2 210.52.207.2 218.85.157.9 202.101.103.55
cache_mgr linpc@simlife.com
cache_mem 64 MB
cache_swap_low 70
cache_swap_high 85
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid/ 1200 16 256
cache_access_log /var/cache/squid/logs/access.log
cache_log /var/cache/squid/logs/cache.log
#unlinkd_program /var/cache/squid/unlinkd
acl bt urlpath_regex \.torrents$ \.rmvb$ .\rm$ .\avi$
acl web url_regex tk4479.com
acl all src 192.168.1.0/255.255.255.0
acl camp dstdomain 192.168.1.4 192.168.1.6
always_direct allow camp
http_access deny bt
http_access deny web
http_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
coredump_dir /var/spool/squid |
|