Basic NGINX Authentication - Redirecting to Home Page on 401 Authentication Failure

I would redirect to the homepage again if the authentication failed because the authentication failed with basic authentication from ngnix, even if you canceled the cancellation and did not even try to authenticate.

If I do it as shown in the screenshot, it just loads the page; therefore redirection works, but authentication and therefore access to another page are no longer displayed. Do you know anything else that I could try?

enter image description here

+5
source share

Source: https://habr.com/ru/post/1261058/


All Articles