include SSL_VHOSTS in NOSSL_SERVER_NAME so we can redirect from http to https on the secure hostname as well
This commit is contained in:
1 parent
1b208778f3
commit
59f047bb45
2 files changed
+3
-4
No files matched your search
@@ -2,7 +2,7 @@ server {
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
server_name $NOSSL_SERVER_NAME;
|
||||
return 301 https://\$host\$request_uri;
|
||||
return 301 https://$SSL_SERVER_NAME\$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
Reference in new issue
Block a user