From 6c3e8336c9835cd8e02c06c6c261ecb7048cbc52 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Wed, 20 Mar 2019 10:23:12 +0100 Subject: [PATCH] Role service-nginx: use $host instead of $server_name for redirects --- roles/service-nginx/files/redirect-to-ssl.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/service-nginx/files/redirect-to-ssl.conf b/roles/service-nginx/files/redirect-to-ssl.conf index 60245f0..7cf185d 100644 --- a/roles/service-nginx/files/redirect-to-ssl.conf +++ b/roles/service-nginx/files/redirect-to-ssl.conf @@ -1 +1 @@ -return 301 https://$server_name$request_uri; +return 301 https://$host$request_uri;