log_subrequest and auth_request

jstangroome nginx-forum at nginx.us
Mon Nov 2 22:37:00 UTC 2015


Hi,

I have set `log_subrequest on;` at the http level and I am using to
`auth_request` to a location that does a `proxy_pass` but I am not seeing
the details of the auth subrequest in the access.log. Should this work?

Conf:

> log_subrequest on;
> server{
>   location / {
>     auth_request /authorize;
>     # ...
>   }
>   location /authorize {
>     proxy_pass http://authserver/doauth;
>   }
> }

Regards,

Jason

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262567,262567#msg-262567



More information about the nginx mailing list