Hi, Is there a variable which stores entire header & cookie in a single string ? I want to log the entire request header. But dont want to specify each $http_HEADER.by rishabh - Nginx Mailing List - English
rishabh Wrote: ------------------------------------------------------- > Thanks, post_action works like a charm. > > Just one problem. Nothing is getting logged > access_log if i use post_action ! whats the > co-relation ? That logging issue was a mistake. All the access_log directive need to be in a single location/server block. After a lot of testing. I found anotheby rishabh - Nginx Mailing List - English
That logging issue was a mistake. All the access_log directive need to be in a single location/server block. After a lot of testing. I found an issue. The processing time of post_action is added to the response time. hence delaying the response. Here is how i have used post_action to log. http { server { location / { proxy_pass http://upstream123; post_action @loglua; }by rishabh - Nginx Mailing List - English
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; pby rishabh - Nginx Mailing List - English
I wont to parse the request_body in a lua script file but am unable to access the request_body in set_by_lua_file directive. Is there any way to access the headers/cookies/get/post ? my conf structure is like http{ server { ... set_by_lua_file $myContent myFile.lua; location @abcd { ... } } }by rishabh - Nginx Mailing List - English
Hi, I am trying to log into two files. one default and one custom via post_action. http { access_log /var/log/nginx/access.log; server { location @postactionlocation { set_by_lua_file $logdata /var/www/log.lua; access_log /var/log/nginx/access2.log '$logdata'; return 444; } location / { #someproxypass here } post_action @postactionlocation; }by rishabh - Nginx Mailing List - English
I tried using post_action but it was causing delay: I think this is how post_action works, please correct if am wrong. 1-> Nginx get the REQUEST 2-> Nginx receives the RESPONSE generated by PHP 3-> Nginx sends a SUB_REQUEST to 2nd server (using post_action then proxy_pass) 4-> Nginx recieves the RESPONSE from the 2nd server 5-> Nginx shows RESPONSE to user. Here at stageby rishabh - Nginx Mailing List - English
I am facing the same problem, is there any update on this issue ?by rishabh - Nginx Mailing List - English
Thanks, post_action works like a charm. Just one problem. Nothing is getting logged access_log if i use post_action ! whats the co-relation ?by rishabh - Nginx Mailing List - English
I have nginx as the HTTP server. I wanted to write a module which asynchronously send all the traffic to another IP or PORT where my analytics server will be running. I dont want to create any lag in serving HTTP requests. Is there any existing module which I can use as a base and modify to meet my requirements. Any help would be greatly appreciated. Thanksby rishabh - Nginx Mailing List - English