Hi all. I'm trying to log request to a specific directory to an alternate access_log. The docs suggest the access_log can be specified in the http, server, or location level. eg: server { access_log /var/log/nginx/access_log; location /api/ { access_log /var/log/nginx/api.access_log; } } In my case, everything is logged the main access_log, and although the fby houseofmore - Nginx Mailing List - English
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! -Jby houseofmore - Nginx Mailing List - English