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

24 lines
765 B
Nginx Configuration File
Raw Normal View History

# ----------------------------------------------------------------------
# | Default behavior for unknown hosts |
# ----------------------------------------------------------------------
#
# 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
# servername 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 _;
2018-11-25 19:13:33 +01:00
include h5bp/ssl/ssl_engine.conf;
include h5bp/ssl/certificate_files.conf;
2018-11-25 19:13:33 +01:00
include h5bp/ssl/policy_intermediate.conf;
return 444;
}