From 1614afeaf4d5e62f840732c5920a32422550f6de Mon Sep 17 00:00:00 2001 From: Hannes Happle Date: Fri, 31 Jul 2020 15:32:40 +0200 Subject: [PATCH] don't redirect http aliases in final config --- nginx.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index 2f7fde2..1551362 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -487,7 +487,9 @@ server { include /etc/nginx/vhost.d/default; {{ end }} - return 301 https://{{ $first_host }}$request_uri; + location / { + return 301 https://{{ $first_host }}$request_uri; + } } {{ end }}