# Catch-all: requests naming no hostname we serve - the bare IP, an unknown # name, a stale DNS record, a scanner dialling the address directly. # # This file exists so that Debian's /etc/nginx/sites-available/default never # has to be edited. That file is a dpkg CONFFILE owned by nginx-common, and a # modified conffile makes every future nginx upgrade stop and ask about a # three-way merge - a small tidy-up turning into an interactive prompt during # an unattended upgrade. It is left byte-for-byte as the package shipped it and # simply not symlinked into sites-enabled. Nothing here is package-owned, so # upgrades never touch it. The same rule applies to /var/www/html, which still # holds the stock Debian page: it is not edited, it is just never served. server { listen 80 default_server; listen [::]:80 default_server; server_name _; include /etc/nginx/snippets/branded-errors.conf; # The root gets the landing text rather than the generic "not found", but # still answers 404: nothing is published here, and a 200 would say # otherwise to every monitor and crawler that asks. location = / { error_page 404 /_brand/landing.html; return 404; } location / { return 404; } }