Chinaunix首页 | 论坛 | 博客
  • 博客访问: 90390
  • 博文数量: 30
  • 博客积分: 2061
  • 博客等级: 大尉
  • 技术积分: 310
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-23 21:42
文章分类
文章存档

2010年(3)

2009年(17)

2008年(10)

我的朋友

分类: 系统运维

2009-03-24 15:21:57

Changes with nginx 0.7.44                                        23 Mar 2009

    *) Feature: the ngx_http_proxy_module preliminary cache support.
 
 
Get the lastest nginx (0.7.50) and use

proxy_cache_path /path/to/cache levels=1:2 keys_zone=one:10m inactive=7d max_size=200m;

proxy_temp_path /path/to/temp; # must be on the same filesystem
# as cache

server {

location / {
proxy_pass ;

proxy_cache one;
proxy_cache_key backend$request_uri;
proxy_cache_valid 200 1h;
proxy_cache_use_stale error timeout invalid_header;
}
阅读(1224) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~