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;
}
}
阅读(1515) | 评论(0) | 转发(0) |