webinoly/templates/nginx/conf.d/fastcgi.conf
Cristhian Martínez Ochoa e0f7aeaf03 templates and conf updated
Nginx Conf updated.
More protection to prevent DOS attacks.
Skip cache for more cart and sitemap plugins.
2018-06-22 08:53:29 -06:00

13 lines
565 B
Plaintext

# FastCGI cache settings
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m max_size=100m inactive=7d;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
fastcgi_cache_valid 200 30d;
fastcgi_cache_valid 301 302 307 404 1m;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SERVER_NAME $http_host;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
fastcgi_keep_conn on;
fastcgi_cache_background_update on;
fastcgi_read_timeout 30s;