Welcome! Log In Create A New Profile

Advanced

Re: nginx http auth module query

Maxim Dounin
February 17, 2012 06:28AM
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
Subject Author Posted

nginx http auth module query

karanj February 16, 2012 10:49PM

Re: nginx http auth module query

António P. P. Almeida February 16, 2012 11:02PM

Re: nginx http auth module query

karanj February 16, 2012 11:08PM

Re: nginx http auth module query

António P. P. Almeida February 16, 2012 11:30PM

Re: nginx http auth module query

karanj February 17, 2012 03:53AM

Re: nginx http auth module query

karanj February 17, 2012 03:57AM

Re: nginx http auth module query

Maxim Dounin February 17, 2012 06:28AM

Re: nginx http auth module query

karanj February 17, 2012 08:30AM

Re: nginx http auth module query

karanj February 17, 2012 08:38AM

Re: nginx http auth module query

Maxim Dounin February 17, 2012 09:20AM

Re: nginx http auth module query

karanj February 17, 2012 10:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready