Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

auth_request own error_page

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>