From affc21819be92a0d19541a14184ceea7218c4ce8 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Thu, 29 Oct 2020 12:02:25 +0100 Subject: T3029 Correct generated nginx content The redirection was using the wrong variable ($server_name), making the browser going to https://_ instead of the right variable. --- data/templates/https/nginx.default.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/https/nginx.default.tmpl') diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl index a20be45ae..855ebff4f 100644 --- a/data/templates/https/nginx.default.tmpl +++ b/data/templates/https/nginx.default.tmpl @@ -5,7 +5,7 @@ server { listen 80 default_server; listen [::]:80 default_server; server_name _; - return 301 https://$server_name$request_uri; + return 301 https://$host$request_uri; } {% for server in server_block_list %} -- cgit v1.2.3