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
file gets created for the api.access_log, nothing gets logged to it.
Am I missing something?
Thanks in advanced.
-Jason
Posted at Nginx Forum:
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/ {
Kinda light on details, will need a more complete config as well as an
example URI being accessed.
Posted at Nginx Forum:
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/ {