server-configs-nginx/conf.d/.default.conf

24 lines
763 B
Nginx Configuration File
Raw Permalink Normal View History

# ----------------------------------------------------------------------
# | Default behavior for unknown hosts |
# ----------------------------------------------------------------------
#
2020-12-29 19:20:35 +01:00
# Drop requests for unknown hosts.
#
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
# server name is used in a request, it's recommended to drop the request
# returning 444 "No Response".
server {
listen [::]:443 ssl http2 default_server;
listen 443 ssl http2 default_server;
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;
return 444;
}