Enable IPv6 for no-default
This commit is contained in:
parent
b59fbada2c
commit
d5751cfc18
sites-available
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue