2008年5月4日星期日

试验squid的方向代理

访问blogspot的服务器有点慢,试验一下方向代理
#建立 squid 反向代理
http_port 61.178.231.xx:80 vhost vport

#设置一下原始的web服务器地址
cache_peer 72.14.207.191 parent 80 0 no-query originserver name=blog

#OK 允许access cache
cache_peer_access blog allow all

That's all

LOG看看
1209841524.331 1006 60.165.17.143 TCP_REFRESH_HIT/304 406 GET http://abird-blog.blogspot.com/search/label/Linux - FIRST_UP_PARENT/blog -
1209841544.107 1077 60.165.17.143 TCP_REFRESH_HIT/304 406 GET http://abird-blog.blogspot.com/search/label/Music - FIRST_UP_PARENT/blog -

没有评论:

发表评论