- 论坛徽章:
- 0
|
我刚做了个Squid 给公司代理上网.用了几天却发现上一些sina,shou等网站时,刷新页面时居然还是一二天前的数据,比方今天8月27号访问sina.com.cn时
却显示25号的主页(我25号访问过sina.com.cn主页),进入sina 体育网页时却又是27号的数据( 25号没访问过sina体育网页).25号访问过sina新闻网页,
27号访问时仍然是25号的数据,.但访问其它网站如163.yahoo.com.cn的数据都是新鲜的.
以下是我的squid.conf
[root@szproxy ~]# cat /usr/local/squid/etc/squid.conf |grep -v ^#
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8
acl localnet src fc00::/7
acl localnet src fe80::/10
acl SSL_ports port 443 # RFC1918 possible internal network
acl Safe_ports port 80 # RFC1918 possible internal network
acl Safe_ports port 21 # RFC1918 possible internal network
acl Safe_ports port 80 # RFC 4193 local private network range
acl Safe_ports port 443 # RFC 4291 link-local (directly plugged) machines
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535 # http
acl Safe_ports port 280 # ftp
acl Safe_ports port 488 # https
acl Safe_ports port 591 # gopher
acl Safe_ports port 777 # wais
acl CONNECT method CONNECT # unregistered ports
acl Safe_ports port 800 # http-mgmt
acl Safe_ports port 631 # gss-http
acl Safe_ports port 700
acl Safe_ports port 82
acl Safe_ports port 8888
acl no_work_file urlpath_regex -i \.mp3$ \.mpeg$ \.ram$ \.rm$ \.mpg$ \.avi$ \
$ \.pif$ \.vbs$ \.eml$ \.bat$ \.td$ \.wmv$ \.mp4$ \.msi$ \.rmvb$
acl msn_app rep_mime_type application/x-msn-messager$
acl msn url_regex -i gateway.dll
http_port 8080
hierarchy_stoplist cgi-bin ?
cache_dir ufs /usr/local/squid/var/cache 4000 16 256
cache_dir ufs /usr/local/squid/var/cache1 2000 16 256
coredump_dir /usr/local/squid/var/cache
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
cache_effective_user squid
cache_effective_group squid
cache_mem 1 GB
cache_swap_high 95
cache_swap_low 90
ipcache_high 95
ipcache_low 90
maximum_object_size 2048 KB
cache_mgr bai@163.com
cache_access_log /usr/local/squid/var/logs/access.log
cache_log /usr/local/squid/var/logs/cache.log
offline_mode on
half_closed_clients on
redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuar
onf
redirect_rewrites_host_header on
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny badsite
http_access deny no_work_file
http_access allow baidu
http_access allow localhost
http_access allow localnet
http_access deny all
always_direct deny Intranet
always_direct allow all
never_direct allow Intranet
never_direct deny all
visible_hostname szproxy
dns_children 20
redirect_children 20
icp_port 3130 |
|