From db6e71b7d6809c70ddda3cfd14336d06682eeecd Mon Sep 17 00:00:00 2001 From: Kirushanth Sakthivetpillai Date: Fri, 5 Jun 2015 15:01:22 -0400 Subject: [PATCH] Update nginx.ssl.conf.template use nginx $host variable intead of $ssl_server_nam (which may be *.example.com) which does bogus redirects --- plugins/nginx-vhosts/templates/nginx.ssl.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/templates/nginx.ssl.conf.template b/plugins/nginx-vhosts/templates/nginx.ssl.conf.template index 5cde7484a..e30a6a82d 100644 --- a/plugins/nginx-vhosts/templates/nginx.ssl.conf.template +++ b/plugins/nginx-vhosts/templates/nginx.ssl.conf.template @@ -2,7 +2,7 @@ server { listen [::]:80; listen 80; server_name $NOSSL_SERVER_NAME; - return 301 https://$SSL_SERVER_NAME\$request_uri; + return 301 https://\$host\$request_uri; } server {