I have done this by patching auth_request module to pass 441 and 443 custom http status codes throu, and then I defined "error_page 441 =401 /unauth.html" in nginx config. I make subrequest url to return "Status: 441" instead of 401, nginx error_page directive turns it to 401.by bAndie91 - How to...
How to make an own error_page for auth_request? I configurest nginx to check access for page "/something.php" (auth_request /auth). I want to return a custom error page when auth subrequest denies access (error_page 401 /unauth.html), AND I want keep the response body and headers when something.php denies access itself (php sets Status header).by bAndie91 - How to...
![]() |
![]() |
![]() |
![]() |
|