server-configs-nginx/sites-available/no-default

13 lines
397 B
Plaintext
Raw Normal View History

# 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
# returning 444 "no response".
server {
2017-01-01 21:35:59 +01:00
listen [::]:80 default_server deferred;
listen :80 default_server deferred;
return 444;
}