Hey guys,
What would be the best way to set up nginx fastcgi cache for all sites? We have the fastcgi cache settings in nginx.conf below:
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
We now need to enter the directives for the "server" section and do not know where is the default template to enter these settings so that fast cgi cache can be enabled for all sites.
Please advise, thanks.
What would be the best way to set up nginx fastcgi cache for all sites? We have the fastcgi cache settings in nginx.conf below:
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
We now need to enter the directives for the "server" section and do not know where is the default template to enter these settings so that fast cgi cache can be enabled for all sites.
Please advise, thanks.