2019-08-05 19:17:59 +02:00
|
|
|
# WPSC NGINX CONFIGURATION - WO v3.9.7
|
2018-11-13 21:55:59 +01:00
|
|
|
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
2019-03-06 15:32:07 +01:00
|
|
|
# $cache_uri variable set in /etc/nginx/conf.d/map-wp.conf
|
2019-03-05 20:11:05 +01:00
|
|
|
|
2018-11-13 21:55:59 +01:00
|
|
|
# Use cached or actual file if they exists, Otherwise pass request to WordPress
|
|
|
|
|
location / {
|
|
|
|
|
# If we add index.php?$args its break WooCommerce like plugins
|
|
|
|
|
# Ref: #330
|
|
|
|
|
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php;
|
|
|
|
|
}
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
|
try_files $uri =404;
|
|
|
|
|
include fastcgi_params;
|
2019-08-05 19:17:59 +02:00
|
|
|
fastcgi_pass {{upstream}};
|
2018-11-13 21:55:59 +01:00
|
|
|
# Following line is needed by WP Super Cache plugin
|
|
|
|
|
fastcgi_param SERVER_NAME $http_host;
|
|
|
|
|
}
|