2013-11-20 21:40:02 +01:00
|
|
|
# Drop requests for unknown hosts
|
|
|
|
#
|
|
|
|
# If no default server is defined, nginx will use the first found server.
|
2017-01-01 21:35:59 +01: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
|
2013-11-20 21:40:02 +01:00
|
|
|
# returning 444 "no response".
|
|
|
|
|
2013-11-20 18:58:49 +01:00
|
|
|
server {
|
2017-01-01 21:35:59 +01:00
|
|
|
listen [::]:80 default_server deferred;
|
2018-05-24 19:09:12 +02:00
|
|
|
listen :80 default_server deferred;
|
2013-11-20 18:58:49 +01:00
|
|
|
return 444;
|
|
|
|
}
|