Nginx log entries to multiple files
Yes, just have two access_log
directives in the same block.
Since 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.