From 8b4e0b2f1d951881262106057dbbcf8ee17a2fbc Mon Sep 17 00:00:00 2001 From: Byju Abraham Date: Tue, 12 Apr 2022 15:39:09 +0000 Subject: [PATCH] Add the base URL to the rewrite rules in the nginx config template --- images/nginx/nginx-template.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/nginx/nginx-template.conf b/images/nginx/nginx-template.conf index be55ac47..087a2d9b 100644 --- a/images/nginx/nginx-template.conf +++ b/images/nginx/nginx-template.conf @@ -54,9 +54,9 @@ server { } location / { - rewrite ^(.+)/$ $1 permanent; - rewrite ^(.+)/index\.html$ $1 permanent; - rewrite ^(.+)\.html$ $1 permanent; + rewrite ^(.+)/$ https://$http_host$1 permanent; + rewrite ^(.+)/index\.html$ https://$http_host$1 permanent; + rewrite ^(.+)\.html$ https://$http_host$1 permanent; location ~ ^/files/.*.(htm|html|svg|xml) { add_header Content-disposition "attachment";