diff --git a/nginx.tmpl b/nginx.tmpl index f121019..2156dd5 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -206,7 +206,7 @@ server { listen [::]:80 {{ $default_server }}; {{ end }} access_log /var/log/nginx/access.log vhost; - return 301 https://$server_name$request_uri; + return 301 https://$host$request_uri; } {{ end }}