I have setup nginx in my server as a reverse proxy to haproxy. I have configured my own log_format and assigned it to every virtual host I have. However I have not turned off main access_log in nginx.conf.
The majority of my website logs 99.99% go to my custom access_log file, but some logs are making their way to main access_log file defined nowhere but in nginx.conf.
Why is this happening? What is so special about these request that do not get caught by our virtual hosts' access_log?
Thanks a lot
locationblock whereaccess_logis not specifically set. This may happen due to internal rewrites (e.g. to internallocations) because logging is done at the very end of request processing (after rewriting, content serving etc.).