Thanks for the reply. My first thought was to put a "set foo '-'" in the config, but when I use this pared-down example that emulates the documentation except to replace "content_by_lua" with "rewrite_by_lua": https://gist.github.com/danslimmon/1ba367780f0efdd2afc5 I get "-" in the logs instead of "bar". Is it the "content"/"by danslimmon - Nginx Mailing List - English
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: https://gist.github.com/danslimmon/f5f789d8af8bbb06b224 Here is my &qby danslimmon - Nginx Mailing List - English