Files
WPIQ/wo/cli/templates/wprocket.mustache

21 lines
794 B
Plaintext
Raw Permalink Normal View History

# WPROCKET NGINX CONFIGURATION - WordOps {{release}}
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
# $cache_uri variable set in /etc/nginx/conf.d/map-wp.conf
# Use cached or actual file if they exists, Otherwise pass request to WordPress
location / {
2019-08-19 18:15:07 +02:00
try_files /wp-content/cache/wp-rocket/$http_host/$cache_uri/index${mobile_prefix}${https_prefix}.html /wp-content/cache/wp-rocket/$http_host/$cache_uri/index${https_prefix}.html $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
2019-08-08 08:40:03 +02:00
try_files $uri =404;
include fastcgi_params;
2019-08-19 18:15:07 +02:00
fastcgi_pass {{upstream}};
}
location ~ /wp-content/cache/wp-rocket/*\.html$ {
2019-08-08 08:40:03 +02:00
etag on;
gzip_static on;
2019-08-08 08:40:03 +02:00
add_header Vary "Accept-Encoding, Cookie";
access_log off;
log_not_found off;
2019-08-08 08:40:03 +02:00
expires 10h;
}