Re: Nginx logging phase

2020-10-29 Thread Vikas Kumar
Do you have a recommendation on what handlers are suitable for my use case? Thanks. On Wed, Oct 28, 2020 at 6:59 PM Maxim Dounin wrote: > Hello! > > On Wed, Oct 28, 2020 at 02:14:40PM +0530, Vikas Kumar wrote: > > > I'm writing an Nginx plugin (using Openresty

Nginx logging phase

2020-10-28 Thread Vikas Kumar
I'm writing an Nginx plugin (using Openresty Lua) which increments a counter when a request is received (in ACCESS phase) and decrements the counter when request is processed (in LOG phase) in order to keep track of in-flight requests. I've seen some cases where the counter increments but does not

Re: Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Thanks for your promot response. location /x { error_log /var/log/nginx/contenttroubleshooterror.log debug; #chunked_transfer_encoding off; #proxy_http_version 1.1; #proxy_buffering on; #proxy_pass_header Content-Length; proxy_pass http://tomcat:8080/x; proxy_cache my_cache; #

Nginx caching no header content-length

2016-03-02 Thread Vikas Parashar
Hi, I am using nginx(caching server) in front my tomcat. My tomcat is serving header(content-length). But my nginx is not serving header content-length. However, i can put that header in my config with some static value then it will serve. But, in my case, the content length is coming from tomcat

Re: setting max active connection

2013-07-18 Thread vikas
This is the php-fastcgi file, /usr/bin/spawn-fcgi -s /tmp/php.sock -M 0666 -C 9 -u nginx -g nginx -U nginx -G nginx -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid And in this file I didn't restrict parallel connections to 520. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240989,240

setting max active connection

2013-07-18 Thread vikas
How to increase max active connection limits from default 520. System configuration CentOS release 5.8 (Final) with whm. nginx conf file is user nginx root; worker_processes 16; worker_rlimit_nofile 20; worker_connections 10240; error_log /var/log/nginx/error.log; error_log /var/log/nginx/e