server { listen 80; # listen [::]:80 default_server; location /.well-known { root /var/www/html; } # Everything is a 404 location / { return 404; } # You may need this to prevent return 404 recursion. location = /404.html { internal; } }