Use $host in the http -> https redirection.

This commit is contained in:
Andrea Dell'Amico 2021-06-07 13:44:50 +02:00
parent e4f15849a3
commit fab506601d
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ server {
{% endif %}
location / {
return 301 https://{{ item.virthost }}$request_uri;
return 301 https://$host$request_uri;
}
}