diff --git a/roles/reverse_proxy/templates/http.conf.j2 b/roles/reverse_proxy/templates/http.conf.j2 index 78e87bf..e2fd87d 100644 --- a/roles/reverse_proxy/templates/http.conf.j2 +++ b/roles/reverse_proxy/templates/http.conf.j2 @@ -15,8 +15,8 @@ server { # Redirect to HTTPS all non-ACME requests location / { if ($request_method = POST) { - return 307 https://$server_name$request_uri; + return 307 https://$host$request_uri; } - return 301 https://$server_name$request_uri; + return 301 https://$host$request_uri; } }