From 240b4e58c5f6a541a6c1fe603d76674f1357a6ea Mon Sep 17 00:00:00 2001 From: noogen Date: Wed, 1 May 2019 17:51:30 -0500 Subject: [PATCH] disable pagespeed by default --- rootfs/etc/nginx/nginx.new | 5 ++--- rootfs/sysprepz/nginx-templates/wordpress.stpl | 1 + rootfs/sysprepz/nginx-templates/wordpress.tpl | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rootfs/etc/nginx/nginx.new b/rootfs/etc/nginx/nginx.new index e24fa53..14c4ede 100644 --- a/rootfs/etc/nginx/nginx.new +++ b/rootfs/etc/nginx/nginx.new @@ -146,15 +146,14 @@ http { # Cache bypass map $http_cookie $no_cache { default 0; - ~SESS 1; ~wordpress_logged_in 1; - ~CONCRETE5 1; ~wp-postpass 1; ~comment_author 1; } - # Pagespeed + # Pagespeed (unplugged or disable by default) + pagespeed unplugged; pagespeed FileCachePath /var/ngx_pagespeed_cache; diff --git a/rootfs/sysprepz/nginx-templates/wordpress.stpl b/rootfs/sysprepz/nginx-templates/wordpress.stpl index 7df4165..91f0cc7 100644 --- a/rootfs/sysprepz/nginx-templates/wordpress.stpl +++ b/rootfs/sysprepz/nginx-templates/wordpress.stpl @@ -15,6 +15,7 @@ server { set $site "%docroot%"; } root $site; + pagespeed on; # captures wp-login and xmlrpc requests and set rate limit location ~ (wp-login|xmlrpc)\.php { diff --git a/rootfs/sysprepz/nginx-templates/wordpress.tpl b/rootfs/sysprepz/nginx-templates/wordpress.tpl index 375ae2d..3720364 100644 --- a/rootfs/sysprepz/nginx-templates/wordpress.tpl +++ b/rootfs/sysprepz/nginx-templates/wordpress.tpl @@ -14,6 +14,7 @@ server { set $site "%docroot%"; } root $site; + pagespeed on; # captures wp-login and xmlrpc requests and set rate limit location ~ (wp-login|xmlrpc)\.php {