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 {