I am new to nginx server, i am trying to validate all request through auth_request module it is working as expected, but in error page configuration it is not working, I have 2 error page configuration 1 for 401 and 1 for 403
error_page 401 = @error401;
location @error401 {
return 302 /login?state=secure;
}
error_page 403 =@error403;
location = @error403 {
return 302 /accessDenied;
}
but when server return 401 it is working perfectly, and when server return 403 then it show default 403 page, i wanted it to land on /accessDenied page. can you please help!!!
error_page 403
is missing a space!!