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

2010年(3)

2009年(17)

2008年(10)

我的朋友

分类: 系统运维

2009-03-31 08:42:01

Changes with nginx 0.7.45                                        30 Mar 2009

    *) Feature: the ngx_http_fastcgi_module preliminary cache support.
 
http {
    ...
    fastcgi_cache_path /path/to/cache levels=1:2 keys_zone=NAME:10m inactive=5m max_size=2m;
    ...

server {
    location / {
    fastcgi_pass localhost:9000;

    fastcgi_cache NAME;
    fastcgi_cache_key  localhost:9000$request_uri;

    fastcgi_cache_valid 200 302 1h;
    fastcgi_cache_valid 301 1d;
    fastcgi_cache_valid any 1m;

    #fastcgi_cache_min_uses 1;
    }
}
阅读(1477) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~