From a7eb372899f98be61c3e98013281cad0206f0db5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 21 Dec 2023 14:58:19 +0000 Subject: [PATCH] Fix HTTPS redirect hostname --- ansible/roles/nginx/files/nginx-https-redirect.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }