All checks were successful
CI / Build nginx docker images (push) Successful in 16s
18 lines
429 B
Plaintext
18 lines
429 B
Plaintext
# 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
|
|
# returning 444 "no response".
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
return 444;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl default_server;
|
|
http2 on;
|
|
ssl_reject_handshake on;
|
|
}
|