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).
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).