diff --git a/sites-available/no-default b/sites-available/no-default index 908b468..436645d 100644 --- a/sites-available/no-default +++ b/sites-available/no-default @@ -1,11 +1,11 @@ # 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; return 444; } diff --git a/sites-available/ssl.no-default b/sites-available/ssl.no-default index bb8be6b..e0d60b0 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; include h5bp/directive-only/ssl.conf; return 444;