Skip to content

Instantly share code, notes, and snippets.

@sstorholm
Forked from felixhummel/418.conf
Last active February 2, 2018 19:46
Show Gist options
  • Save sstorholm/e0511553f4a837ec6a18113986a613fb to your computer and use it in GitHub Desktop.
Save sstorholm/e0511553f4a837ec6a18113986a613fb to your computer and use it in GitHub Desktop.
The Last nginx Config You Will Ever Need
server {
listen 80 default_server;
location / {
return 418;
}
error_page 418 /custom_418.html;
location = /custom_418.html {
root /var/www/html/errors;
internal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment