nginx: Actually set default server for port 80

Our previous setup did not ensure that the default server was actually
the default (though doing this for port 443 remains an open question).
In addition, we now have Nginx close the connection immediately rather
than respond with a 204.
This commit is contained in:
Alex Palaistras 2021-11-27 17:44:03 +00:00
parent 290068e759
commit 79e742d4b7

View File

@ -1,6 +1,6 @@
# Default service, when no other service host matches. # Default service, when no other service host matches.
server { server {
listen 80; listen 80 default_server;
server_name localhost; server_name _;
return 204; return 444;
} }