Hosting a web application from a subsite

2014-07-06 Thread Ron Scott-Adams
I’m not having much luck trying to configure this site the way I want. I’m modifying http://wiki.nginx.org/Piwik to suit a case in which it is served out of a subsite location, e.g. example.com/stats. I’ve created 2 configuration files. One is included outside the server sections of the main si

Re: Send 502 when all php-fpm workers are in use

2014-07-06 Thread justink101
Maxim, If I set the php-fpm pool listen.backlog to 0, will this accomplish what I want. I.e. fill up workers, once all the workers are used, fail requests. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251476,251488#msg-251488 ___ nginx mai

Re: Send 502 when all php-fpm workers are in use

2014-07-06 Thread itpp2012
The only way around this would be some kind of counter keeping track of whats available and if max is reached create a file where you test on in a nginx config, maybe Lua can do this counting part. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251476,251478#msg-251478

Re: Send 502 when all php-fpm workers are in use

2014-07-06 Thread Maxim Dounin
Hello! On Sat, Jul 05, 2014 at 10:47:43PM -0400, justink101 wrote: > I have a php-fpm pool of workers which is 6. There are long running requests > being sent, so I have the following fastcgi directives set: > > fastcgi_connect_timeout 15; > fastcgi_send_timeout 1200; > fastcgi_read_timeout 1200