Skip to content

Instantly share code, notes, and snippets.

@kevinlisota
Created April 16, 2018 04:29
Show Gist options
  • Save kevinlisota/fa30555177f9fd26d21eab6e09e46cb4 to your computer and use it in GitHub Desktop.
Save kevinlisota/fa30555177f9fd26d21eab6e09e46cb4 to your computer and use it in GitHub Desktop.
nginx catch-all server block
# 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