From d5751cfc18e6c434701ec833b5c15621a50b5a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Sun, 1 Jan 2017 20:35:59 +0000 Subject: [PATCH] Enable IPv6 for no-default --- sites-available/no-default | 7 ++++--- sites-available/ssl.no-default | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sites-available/no-default b/sites-available/no-default index fef75fb..cbec805 100644 --- a/sites-available/no-default +++ b/sites-available/no-default @@ -1,12 +1,13 @@ # Drop requests for unknown hosts # # If no default server is defined, nginx will use the first found server. -# To prevent host header attacks, or other potential problems when an unknown -# servername is used in a request, it's recommended to drop the request +# To prevent host header attacks, or other potential problems when an unknown +# servername is used in a request, it's recommended to drop the request # returning 444 "no response". server { - listen 80 default_server; + listen [::]:80 default_server deferred; + listen 80 default_server deferred; server_name _; return 444; } diff --git a/sites-available/ssl.no-default b/sites-available/ssl.no-default index 78e0f94..3f2880d 100644 --- a/sites-available/ssl.no-default +++ b/sites-available/ssl.no-default @@ -6,6 +6,7 @@ # returning 444 "no response". server { + listen [::]:443 ssl default_server; listen 443 ssl default_server; server_name _; include h5bp/directive-only/ssl.conf;