Enable IPv6 for no-default
This commit is contained in:
parent
391375e1e7
commit
c96e0adf12
|
@ -1,11 +1,11 @@
|
||||||
# Drop requests for unknown hosts
|
# Drop requests for unknown hosts
|
||||||
#
|
#
|
||||||
# If no default server is defined, nginx will use the first found server.
|
# 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
|
# 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
|
# servername is used in a request, it's recommended to drop the request
|
||||||
# returning 444 "no response".
|
# returning 444 "no response".
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen [::]:80 default_server deferred;
|
||||||
return 444;
|
return 444;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# returning 444 "no response".
|
# returning 444 "no response".
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen [::]:443 ssl default_server;
|
||||||
listen 443 ssl default_server;
|
listen 443 ssl default_server;
|
||||||
include h5bp/directive-only/ssl.conf;
|
include h5bp/directive-only/ssl.conf;
|
||||||
return 444;
|
return 444;
|
||||||
|
|
Loading…
Reference in New Issue