Logging a variable set by nginx's Lua module

danslimmon nginx-forum at nginx.us
Tue Jul 16 16:22:19 UTC 2013

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":


I get "-" in the logs instead of "bar". Is it the "content"/"rewrite"

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

More information about the nginx mailing list