Last active
February 19, 2016 16:57
-
-
Save ndrut/8690408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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