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

401 error page not loaded, set auth_basic off; #2

Open
pgassmann opened this issue Jan 20, 2022 · 0 comments
Open

401 error page not loaded, set auth_basic off; #2

pgassmann opened this issue Jan 20, 2022 · 0 comments
Labels
will accept PR Will accept pull request

Comments

@pgassmann
Copy link

if auth_basic is enabled, the default 401 error page will be shown, not the styled one.

to fix this, the error locations should have auth_basic off;

nginx-errors.conf:

...

location ^~ /nginx-errors/errors/ {
    auth_basic off;
    ssi on;
    internal;
    root /usr/share/nginx/html;
}

location ^~ /assets/css/style.css {
    auth_basic off;
    root /usr/share/nginx/html/nginx-errors/errors;
}

location ~* montserrat-(400|700).(eot|woff2|woff|ttf|svg) {
    auth_basic off;
    root /usr/share/nginx/html/nginx-errors/errors;
}
@bartosjiri bartosjiri added the will accept PR Will accept pull request label Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
will accept PR Will accept pull request
Projects
None yet
Development

No branches or pull requests

2 participants