Zoltan Zaikosz asked:
I’d like to log the same access.log entries to separate files, so when a request comes in it should populate a.log and b.log. Is there any way to do this with nginx?
Yes, just have two
access_log directives in the same block.
access_log in one block overrides any such directives in outer blocks, you have to copy and paste the directive from the outer block into the inner block if you need to log twice in an inner bock.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.