Created
July 13, 2015 10:13
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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