nginx 404 logs to all virtualhosting logs

Posted by Dr.D on Server Fault See other posts from Server Fault or by Dr.D
Published on 2012-09-24T18:36:41Z Indexed on 2012/09/25 9:39 UTC
Read the original article Hit count: 489

Filed under:
|
|

I am using nginx and i have two sites running:

site1 = /1/access.log site2 = /2/access.log

when a user get 404 images not found on site2 nginx writes to access.log of site1 & site2 reporting the not found error, i tried everything to get separated logs without luck, i want everything that happen on site1 logged on /1/access.log and everything that happens on site2 logged on /2/access.log

any help ?

© Server Fault or respective owner

Related posts about nginx

Related posts about logging