From fab506601d33e08dbbd0a4816dac989fb1cc9b4b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 7 Jun 2021 13:44:50 +0200 Subject: [PATCH] Use $host in the http -> https redirection. --- templates/nginx_wordpress.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx_wordpress.conf.j2 b/templates/nginx_wordpress.conf.j2 index 52da128..565a9e9 100644 --- a/templates/nginx_wordpress.conf.j2 +++ b/templates/nginx_wordpress.conf.j2 @@ -56,7 +56,7 @@ server { {% endif %} location / { - return 301 https://{{ item.virthost }}$request_uri; + return 301 https://$host$request_uri; } }