Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
disable pagespeed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed May 1, 2019
1 parent 53f53b9 commit 240b4e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rootfs/etc/nginx/nginx.new
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
1 change: 1 addition & 0 deletions rootfs/sysprepz/nginx-templates/wordpress.stpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions rootfs/sysprepz/nginx-templates/wordpress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 240b4e5

Please sign in to comment.