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.
|
|
|
|
# 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".
|
|
|
|
|
2013-11-20 18:58:49 +01:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
return 444;
|
|
|
|
}
|