mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
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:
parent
290068e759
commit
79e742d4b7
@ -1,6 +1,6 @@
|
||||
# Default service, when no other service host matches.
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
return 204;
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
return 444;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user