Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx config for custom error pages. #126

Open
mishailovic opened this issue Sep 20, 2021 · 1 comment
Open

Nginx config for custom error pages. #126

mishailovic opened this issue Sep 20, 2021 · 1 comment

Comments

@mishailovic
Copy link

mishailovic commented Sep 20, 2021

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.

@ghost
Copy link

ghost commented Nov 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant