Update nginx.ssl.conf.template

use nginx $host variable intead of $ssl_server_nam (which may be *.example.com) which does bogus redirects
This commit is contained in:
Kirushanth Sakthivetpillai
2015-06-05 15:01:22 -04:00
parent daeea6ba13
commit db6e71b7d6

View File

@@ -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 {