I have installed nginx 1.6 and I want to know how to read an authorization request header from nginx.
If the authorization header is present, then I need to forward to success page success.html
.
If authorization header it is not present in the request, then I need to forward to error.html
.
How can we do this in nginx?