配置nginx过滤不良访问提高squid命中率

十一月 27th, 2009 | 2 Comments | Posted in Nginx | 阅读次数: 540 次

原文:http://sudone.com/nginx/nginx_strip_args.html 1、对静态内容加以问号的访问 例如http://www.sudone.com?abc,这样的请求会透过squid缓存,直达后端服[......]

Read more

Tags: ,

nginx防盗链配置

十一月 27th, 2009 | 5 Comments | Posted in Nginx | 阅读次数: 314 次

原文:http://sudone.com/nginx/nginx_valid_referers.html 以下配置一般可称为图片防盗链配置,如果是mp3这种文件,我现在是用的cookie防盗链方式。 location /img/ {[......]

Read more

Tags: ,