From 406a1408430793fc44f3d978298b4352b5f4d4ad Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Tue, 11 Mar 2025 16:59:08 +0100 Subject: [PATCH] catch_all redirects to https --- dockerized/first-level-nginx/configs/node.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dockerized/first-level-nginx/configs/node.conf b/dockerized/first-level-nginx/configs/node.conf index 909ae83..4f5031c 100644 --- a/dockerized/first-level-nginx/configs/node.conf +++ b/dockerized/first-level-nginx/configs/node.conf @@ -103,15 +103,10 @@ http { } - - #Default Catch-all serving + #Default Catch-all redirects to https server { listen 80 default_server; server_name _; - root /var/www/default; - - location /{ - try_files $uri /$uri /index.html; - } + return 301 https://$host$request_uri; } }