Logging a variable set by nginx's Lua module

danslimmon nginx-forum at nginx.us
Tue Jul 16 15:26:29 UTC 2013

I am trying to use the Lua module in nginx to set a variable ("foo") based
on JSON in the body of a request. Then I want to log the value of that
variable to the access log.

Like so: https://gist.github.com/danslimmon/17f5bf4736566737cc65

However, nginx won't start with this configuration. It complains thusly:

Here is my "nginx -V" output:

Thoughts? Thanks in advance.

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

More information about the nginx mailing list