From bc7b4915ce414e9dcd03ede43c666d2caabc247c Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 16 Feb 2025 23:59:42 -0800 Subject: [PATCH] wip Signed-off-by: Tamal Saha --- default.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.conf b/default.conf index 60a420beff..cce1b8139d 100644 --- a/default.conf +++ b/default.conf @@ -8,6 +8,8 @@ server { root /usr/share/nginx/html; index index.html index.htm; # try_files $uri $uri/ =404; + + rewrite ^([^.\?]*[^/])$ https://$http_host$1/ permanent; } #error_page 404 /404.html;