From 2b6c8b6fa9095c4725237870293a96d22287bba2 Mon Sep 17 00:00:00 2001 From: Marco <62901164+treasuryesc@users.noreply.github.com> Date: Fri, 24 Jun 2022 03:29:27 -0300 Subject: [PATCH] Update nginx-template.conf (#828) --- images/nginx/nginx-template.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/nginx/nginx-template.conf b/images/nginx/nginx-template.conf index 3f2ee17f..9ce62e7b 100644 --- a/images/nginx/nginx-template.conf +++ b/images/nginx/nginx-template.conf @@ -60,10 +60,10 @@ server { location ~ ^/files/.*.(htm|html|svg|xml) { add_header Content-disposition "attachment"; - try_files /sites/$http_host/public/$uri @webserver; + try_files /sites/${FRAPPE_SITE_NAME_HEADER}/public/$uri @webserver; } - try_files /sites/$http_host/public/$uri @webserver; + try_files /sites/${FRAPPE_SITE_NAME_HEADER}/public/$uri @webserver; } location @webserver {