I am having an NGINX emergency where multiple websites are correctly defined as hosts with their URL set. The problem is when I make a default handler in NGINX all the SSL connections get redirected and fail. HTTP still works correctly with the default handler. I have specifically set server_name and yet it still redirects to default_sever.
server {
listen 80 default_server;
server_name _;
return 444;
}
server {
listen 443 ssl default_server;
server_name _;
return 444;
}