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:
@@ -2,7 +2,7 @@ server {
|
|||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name $NOSSL_SERVER_NAME;
|
server_name $NOSSL_SERVER_NAME;
|
||||||
return 301 https://$SSL_SERVER_NAME\$request_uri;
|
return 301 https://\$host\$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|||||||
Reference in New Issue
Block a user