diff --git a/ansible/roles/nginx/files/nginx-https-redirect.conf b/ansible/roles/nginx/files/nginx-https-redirect.conf index 0b94fbe..4a2b1ec 100644 --- a/ansible/roles/nginx/files/nginx-https-redirect.conf +++ b/ansible/roles/nginx/files/nginx-https-redirect.conf @@ -2,5 +2,5 @@ server { listen 80; server_name _; access_log off; - return 308 https://$server_name$request_uri; + return 308 https://$host$request_uri; }