Open
Description
At the moment when you put multiple domains into server_name
and you have HTTP -> HTTPS redirecting on, you get a broken vhost like this example from NGINX:
server {
listen 80 default_server;
server_name dummy-test2.codeenigma.net bar.dummy-test2.codeenigma.net;
rewrite ^ https://dummy-test2.codeenigma.net bar.dummy-test2.codeenigma.net$request_uri? permanent;
...
If we had server_name
as a list of server names instead of just a string, we could loop over it and create a rewrite line per domain provided.