auth_request, HTTP 401 and missing header WWW-Authenticate

agentzh agentzh at
Thu Feb 10 13:25:01 MSK 2011

On Wed, Feb 2, 2011 at 3:45 PM, Maxim Dounin <mdounin at> wrote:
> It may not be trivial to add such header within nginx itself
> though, as add_header a) doesn't work on subrequests and b)
> doesn't work on 401 replies.

And that's why I created the ngx_headers_more module more than a year ago ;)


More information about the nginx mailing list