nginx 設置 fastcgi緩存

  

#增長調試信息
add_header X-Cache-CFC "$upstream_cache_status - $upstream_response_time" ;
fastcgi_temp_path /dev/shm/nginx_tmp;
 
#cache設置
fastcgi_cache_path   /dev/shm/nginx_cache  levels=1:2 keys_zone=cfcache:10m inactive=50m;
fastcgi_cache_key "$request_method://$host$request_uri" ;
fastcgi_cache_methods GET HEAD;
fastcgi_cache   cfcache;
fastcgi_cache_valid   any 1d;
fastcgi_cache_min_uses  1;
fastcgi_cache_use_stale error  timeout invalid_header http_500;
fastcgi_ignore_client_abort on;
相關文章
相關標籤/搜索