nginx ignores access_log directive when post_action specifie
rishabh
nginx-forum at nginx.us
Mon Feb 20 12:28:52 UTC 2012
Hi,
I am trying to log into two files. one default and one custom via
post_action.
http {
access_log /var/log/nginx/access.log;
server {
location @postactionlocation {
set_by_lua_file $logdata /var/www/log.lua;
access_log /var/log/nginx/access2.log '$logdata';
return 444;
}
location / {
#someproxypass here
}
post_action @postactionlocation;
}
In this case only access2.log(via post_action) is written and not the
default access.log(in http)
What would be an optimal solution.
Thanks
--
Rishabh
Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Fri, Feb 10, 2012 at 01:29:26AM -0500, rishabh
> wrote:
>
> > I am facing the same problem, is there any
> update on this issue ?
>
> Logging happens in a location where request
> completes, and with
> post_action it's the location where post_action
> processed.
> So the problem looks like configuration one.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,92464,222714#msg-222714
More information about the nginx
mailing list