roles/nginx: Use default_server instead of default

Seems to be the new keyword for quite some time now, despite not
causing an error:

    http://nginx.org/en/docs/http/server_names.html
This commit is contained in:
Alan Orth 2016-04-25 21:48:36 +03:00
parent 03519831cb
commit 1ffc4eebc9
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 3 additions and 3 deletions

View File

@ -3,14 +3,14 @@
# clients asking for "example.com" should only get a response if we have
# a vhost serving that domain.
server {
listen 80 default;
listen [::]:80 default;
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 444;
}
server {
listen 443 ssl http2 default;
listen 443 ssl http2 default_server;
server_name _;
# "snakeoil" certificate (self signed!)