Skip to content

Instantly share code, notes, and snippets.

@sstorholm
Forked from felixhummel/418.conf
Last active February 2, 2018 19:46

Revisions

  1. sstorholm revised this gist Feb 2, 2018. No changes.
  2. sstorholm revised this gist Feb 2, 2018. 1 changed file with 10 additions and 6 deletions.
    16 changes: 10 additions & 6 deletions 418.conf
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,12 @@
    server {
    listen 80 default_server;

    location / {
    default_type text/plain;
    return 418 "418 I'm a teapot\n";
    }
    listen 80 default_server;

    location / {
    return 418;
    }

    error_page 418 /custom_418.html;
    location = /custom_418.html {
    root /var/www/html/errors;
    internal;
    }
  3. @felixhummel felixhummel created this gist Feb 23, 2016.
    8 changes: 8 additions & 0 deletions 418.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    server {
    listen 80 default_server;

    location / {
    default_type text/plain;
    return 418 "418 I'm a teapot\n";
    }
    }