Created
April 16, 2018 04:29
-
-
Save kevinlisota/fa30555177f9fd26d21eab6e09e46cb4 to your computer and use it in GitHub Desktop.
nginx catch-all server block
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
# Catch-all server block, resulting in a 444 response for unknown domains. | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 444; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment