custom access_log per location /

houseofmore nginx-forum at nginx.us
Wed Sep 9 04:32:04 MSD 2009


Hello,

Just wondering if there is support for custom access logs per directory for a virtual host.

Eg:

 location /api/ {
        access_log  /var/log/nginx/api-access-log;
  }


Nginx seems to create the log file, but never adds to it.

Cheers!
-J

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,6055,6055#msg-6055






More information about the nginx mailing list