tighten / jigsaw-site

Jigsaw Documentation Site

Home Page:https://jigsaw.tighten.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 documentation could be improved

tnorthcutt opened this issue · comments

When setting up a custom 404 page, in addition to following the docs, I had to add to my location block as per this answer: https://serverfault.com/a/580038

My end result was:

location ~ \.php$ {
        try_files  $uri =404; // Added this line
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

Happy to PR an addition for this; to do so should I just edit this page and not worry about a build step, or something else?

This is specific to PHP, though; a server that's setup to serve only static HTML wouldn't need this.