Logging of mirror requests

Maxim Dounin mdounin at mdounin.ru
Tue May 8 19:15:22 UTC 2018


Hello!

On Mon, May 07, 2018 at 07:59:10PM -0700, Joe Doe wrote:

> I have used ngx_http_mirror_module to create mirrors. I would like to log
> these requests as well? So in the /mirror location, I added access_log
> directive, but the log file was created, but no logs were produced.
> 
> Is logging currently limited to only the original request?

By default, subrequests are not logged.  If you want them to be 
logged, consider the "log_subrequest" directive 
(http://nginx.org/r/log_subrequest).

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list