From f215aa23e3b067f6ac525534906826ca953787b5 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 19 Jun 2013 12:02:09 +0530 Subject: [PATCH] Fastcgi Cache For Nginx --- etc/nginx/conf.d/fastcgi.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 etc/nginx/conf.d/fastcgi.conf diff --git a/etc/nginx/conf.d/fastcgi.conf b/etc/nginx/conf.d/fastcgi.conf new file mode 100644 index 00000000..73885ab5 --- /dev/null +++ b/etc/nginx/conf.d/fastcgi.conf @@ -0,0 +1,11 @@ +# Fastcgi Cahe Settings + +fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; +fastcgi_cache_key "$scheme$request_method$host$request_uri"; +fastcgi_cache_use_stale error timeout invalid_header http_500; + +fastcgi_buffers 16 16k; +fastcgi_buffer_size 32k; + +fastcgi_param SERVER_NAME $http_host; +fastcgi_ignore_headers Cache-Control Expires Set-Cookie;