Hello!
On Fri, Feb 17, 2012 at 03:57:50AM -0500, karanj wrote:
> One additional question here -
>
> In this as I understand it redirects to error_page on receiving a 4xx
> status code. Is it possible that nginx reads the value of error page
> from a custom header which comes along with the response (with 4xx
> status code) and then assign the value of error_page to that value.
You may use use auth_request_set to make headers available as
variables in main request.
See docs here:
http://mdounin.ru/hg/ngx_http_auth_request_module/file/tip/README#l23
Sample usage may be seen in tests here:
http://mdounin.ru/hg/ngx_http_auth_request_module/file/tip/t/auth-request-set.t
Maxim Dounin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx