2019-02-01 13:04:01 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# | Default behavior for unknown hosts |
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
2020-12-29 19:20:35 +01:00
|
|
|
# Drop requests for unknown hosts.
|
2016-06-08 09:35:40 +02:00
|
|
|
#
|
2019-05-14 19:02:21 +02:00
|
|
|
# If no default server is defined, Nginx will use the first found server.
|
2016-06-30 14:32:40 +02:00
|
|
|
# To prevent host header attacks, or other potential problems when an unknown
|
2019-05-15 18:38:05 +02:00
|
|
|
# server name is used in a request, it's recommended to drop the request
|
|
|
|
# returning 444 "No Response".
|
2016-06-08 09:35:40 +02:00
|
|
|
|
|
|
|
server {
|
2019-02-11 19:12:17 +01:00
|
|
|
listen [::]:443 ssl http2 default_server;
|
|
|
|
listen 443 ssl http2 default_server;
|
2019-02-01 13:04:01 +01:00
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
2021-06-14 12:43:22 +02:00
|
|
|
include h5bp/tls/ssl_engine.conf;
|
|
|
|
include h5bp/tls/certificate_files.conf;
|
|
|
|
include h5bp/tls/policy_balanced.conf;
|
2019-02-01 13:04:01 +01:00
|
|
|
|
2016-06-08 09:35:40 +02:00
|
|
|
return 444;
|
|
|
|
}
|