Skip to content

Commit bd64dab

Browse files
committed
Fix bug in modx.(s)tpl
1 parent 551a4b3 commit bd64dab

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

install/deb/templates/web/nginx/php-fpm/modx.stpl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ server {
5858
fastcgi_index index.php;
5959
include /etc/nginx/fastcgi_params;
6060
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
61-
if ($request_uri ~* "/manager/|index.php") {
62-
set $no_cache 1;
63-
}
64-
if ($http_cookie ~ SESS) {
65-
set $no_cache 1;
66-
}
61+
62+
if ($request_uri ~* "/manager/|index.php") {
63+
set $no_cache 1;
64+
}
65+
if ($http_cookie ~ SESS) {
66+
set $no_cache 1;
67+
}
68+
}
6769
}
6870

6971
location /error/ {

install/deb/templates/web/nginx/php-fpm/modx.tpl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ server {
5353
fastcgi_index index.php;
5454
include /etc/nginx/fastcgi_params;
5555
include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*;
56-
if ($request_uri ~* "/manager/|index.php") {
57-
set $no_cache 1;
58-
}
59-
if ($http_cookie ~ SESS) {
60-
set $no_cache 1;
61-
}
56+
57+
if ($request_uri ~* "/manager/|index.php") {
58+
set $no_cache 1;
59+
}
60+
if ($http_cookie ~ SESS) {
61+
set $no_cache 1;
62+
}
63+
}
6264
}
6365

6466
location /error/ {

0 commit comments

Comments
 (0)