Get request_body in set_by_lua directive

rishabh nginx-forum at nginx.us
Mon Mar 19 10:02:56 UTC 2012


thanks have figured it out. 

Another concern is, Say the processing time of LUA file is 10 seconds
and the request completes in 4 seconds. So will the total time NGINX
take will be 10 secs or 14 secs ?


Here is how i have structured my conf

http {
	
       server {
              		
              location / {
                     proxy_pass http://upstream123;
                     post_action @loglua;
              }
		
              location @loglua {
                     set $log '';
                     rewrite_by_lua_file /nginx/mylua.lua;
                     logformat format1 '$log';
                     access_log /var/log/nginx/newlog.log format1;
              }
       }
}

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



More information about the nginx mailing list