- 论坛徽章:
- 7
|
acl all src all
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow all
icp_access deny all
# Squid normally listens to port 3128
http_port 3128 intercept
http_port 3129 intercept
#http_port 8080
nonhierarchical_direct off
access_log /var/log/access.log squid
#Default:
# logfile_daemon /usr/lib/squid/logfile-daemon
logfile_daemon /var/log/logfile-daemon
# TAG: cache_log
# Cache logging file. This is where general information about
# your cache's behavior goes. You can increase the amount of data
# logged to this file with the "debug_options" tag below.
#
#Default:
cache_log /var/log/cache.log
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# Don't upgrade ShoutCast responses to HTTP
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
#upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
#Default:
cache_effective_user nobody
coredump_dir /var/cache
#acl NCACHE method GET
#no_cache deny NCACHE
debug_options ALL,1
#delay_pools 1
#delay_class 1 1
#delay_parameters 1 200000/200000
#delay_access 1 allow all
#logfile_rotate 4
########### Cache Config #########################
#### Disable Cache, memory cache included ########
acl NCACHE method GET
no_cache deny NCACHE
#cache_replacement_policy lru
#memory_replacement_policy lru
#cache_dir aufs /tmp/squid 20 16 256 max-size=2048
#cache_mem 512 MB # 1/3 of whole memory
#cache_swap_low 85
#cache_swap_high 95
#maximum_object_size 4096 KB
#maximum_object_size_in_memory 512 KB
#cache_mgr richard.qian@magicwifi.com.cn
cache_log /var/log/cache.log
access_log none
########### Cache Config End #####################
negative_ttl 0 minutes
negative_dns_ttl 0 minutes
positive_dns_ttl 10 minutes
half_closed_clients off
#memory_pools on
#memory_pools_limit 64MB
via off
|
|