Welcome! Log In Create A New Profile

Advanced

Re: Get request_body in set_by_lua directive

March 19, 2012 06:02AM
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;
}
}
}
SubjectAuthorPosted

Get request_body in set_by_lua directive

rishabhMarch 15, 2012 06:59AM

Re: Get request_body in set_by_lua directive

agentzhMarch 15, 2012 10:32PM

Re: Get request_body in set_by_lua directive

rishabhMarch 19, 2012 06:02AM

Re: Get request_body in set_by_lua directive

agentzhMarch 19, 2012 06:52AM

Re: Get request_body in set_by_lua directive

maanasApril 28, 2013 03:13PM

Re: Get request_body in set_by_lua directive

agentzhApril 28, 2013 11:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready