Skip to content

Commit d1005ab

Browse files
author
Maxime Jobin
committed
Rename a variable to avoid conflicts.
1 parent 36dd069 commit d1005ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rocket-nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set $rocket_encryption ""; # Is GZIP accepted by client ?
2424
set $rocket_file ""; # Filename to use
2525
set $rocket_is_bypassed "No"; # Header text added to check if the bypass worked or not. Header: X-Rocket-Nginx-Bypass
2626
set $rocket_reason ""; # Reason why cache file was not used. If cache file is used, what file was used
27-
set $https_prefix ""; # HTTPS prefix to use when cached files are using HTTPS
27+
set $rocket_https_prefix ""; # HTTPS prefix to use when cached files are using HTTPS
2828

2929

3030
###################################################################################################
@@ -38,11 +38,11 @@ if ($http_accept_encoding ~ gzip) {
3838

3939
# Is SSL request ?
4040
if ($https = "on") {
41-
set $https_prefix "-https";
41+
set $rocket_https_prefix "-https";
4242
}
4343

4444
# File/URL to return IF we must bypass WordPress
45-
set $rocket_url "/wp-content/cache/wp-rocket/$http_host/$request_uri/index$https_prefix.html$rocket_encryption";
45+
set $rocket_url "/wp-content/cache/wp-rocket/$http_host/$request_uri/index$rocket_https_prefix.html$rocket_encryption";
4646
set $rocket_file "$document_root$rocket_url";
4747

4848

0 commit comments

Comments
 (0)