http.cat icon indicating copy to clipboard operation
http.cat copied to clipboard

Nginx config for custom error pages.

Open mishailovic opened this issue 4 years ago • 1 comments

I spend hour trying to create custom error pages with this cats, and finally found this gist: https://gist.github.com/mjmeyer/6cf8d3c1199d028f0921 Works awesome for me, all what you need is do download it to your nginx directory:

cd /etc/nginx/snippets && sudo wget https://gist.githubusercontent.com/mjmeyer/6cf8d3c1199d028f0921/raw/1866fb0bc75dcd8c0699bccf499bae2cb15dca17/http-cat-error-pages.conf

Then add this lines to your "server" block:

include snippets/http-cat-error-pages.conf resolver 1.1.1.1

I think this should be added to README, as I think that I was not the only one who tried to do this.

mishailovic avatar Sep 20 '21 09:09 mishailovic

~~FWIW, I notice the few lines from the linked gist don't work for 401/403...at least not for me.~~

Figured this one out. Had to deal with where my auth blocks were placed.

ghost avatar Nov 11 '21 05:11 ghost