Skip to content

Instantly share code, notes, and snippets.

@ndrut
Last active February 19, 2016 16:57
Show Gist options
  • Save ndrut/8690408 to your computer and use it in GitHub Desktop.
Save ndrut/8690408 to your computer and use it in GitHub Desktop.
fastcgi_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=c5:10m inactive=5m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_pass unix:/tmp/the_domain_name.php5-fpm.sock;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache c5;
fastcgi_cache_valid any 1m;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment