From 1ffc4eebc9759bf6865dc435ac998883c690e924 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 25 Apr 2016 21:48:36 +0300 Subject: [PATCH] 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 --- roles/nginx/templates/blank-vhost.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/nginx/templates/blank-vhost.conf.j2 b/roles/nginx/templates/blank-vhost.conf.j2 index 39b396f..f026e5c 100644 --- a/roles/nginx/templates/blank-vhost.conf.j2 +++ b/roles/nginx/templates/blank-vhost.conf.j2 @@ -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!)