Skip to content

Instantly share code, notes, and snippets.

@herrbischoff
Created July 13, 2015 10:13
Show Gist options
  • Save herrbischoff/74459d52000857b7f022 to your computer and use it in GitHub Desktop.
Save herrbischoff/74459d52000857b7f022 to your computer and use it in GitHub Desktop.
Set nginx default site to "Gone". Avoids always serving the lexicographically first site in the nginx config stack.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 410;
log_not_found off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment