免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2544 | 回复: 1
打印 上一主题 下一主题

[proxy] squid proxy sever problem. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-27 16:52 |只看该作者 |倒序浏览
我刚做了个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

论坛徽章:
0
2 [报告]
发表于 2010-08-27 16:55 |只看该作者
求高手帮忙呀, 可能是refresh_pattern 问题,请高手指点
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP