Re: Nginx - PHP FPM Server load is very high

2014-03-06 Thread wishmaster
--- Original message --- From: "agriz" Date: 6 March 2014, 21:18:05 > Hi > > The server is struggling to handle the traffic. > I have 8GB ram. Quad core server. > > I have changed the config file for nginx and i have default config for php > fpm. > Please advice the best config. > >

Re: Nginx - PHP FPM Server load is very high

2014-03-06 Thread Jonathan Matthews
On 6 March 2014 19:18, agriz wrote: > The server is struggling to handle the traffic. > I have 8GB ram. Quad core server. [snip] > Right now, the load is about 50 I very much doubt your problem is a simple one which can be solved by tweaking your nginx config. I say this because you have (50/4 ==

Re: map or not map?

2014-03-06 Thread Jonathan Matthews
On 6 March 2014 18:24, wrote > Is using map the only solution (i'm looking for a simple regexp)? For this, a map is the /best/ solution! J ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Transforming nginx for Windows

2014-03-06 Thread tonyschwartz
There is definitely some issue doing proxying. At some point, the connection to the back end appears to go bad. The request from the browser to nginx just spins and spins. This occurs against (ahem...) IIS6 and also against the Cassini local visual studio development environment exhibits this be

Re: Advice on max_ranges for specific location block

2014-03-06 Thread sephreph
Sorry to reply to my own post, but for anyone else who come across this, it looks like the easiest thing to do is to just add the max_ranges directive inside the location block containing the XSendFile alias - so in my case, I made the location that the free.php script uses different from the other

Re: vbulletin vbseo rewrite rule

2014-03-06 Thread Pierre Hureaux
AHMA, you have two options : - think yourself to find solutions - give us some configuration informations. p/ Le 4 mars 2014 à 11:11, zuckbin a écrit : > i try this and it doesn't work for me. > > maybe because i got some custom urls in vbseo. > > and why all my urls are with httpS ?! > > b

Re: Advice on max_ranges for specific location block

2014-03-06 Thread sephreph
Hi Maxim! Maxim Dounin Wrote: --- > Hello! > > Generally I would recommend adding a "location = /free.php" with > settings specific to a particular script. > > On the other hand, in this case there is no real reason to do > anything as nginx

Re: Memory usage doubles on reload

2014-03-06 Thread PetrHolik
Hello Maxim, thanks for reply. Is there possibility to purge allocated buffer(RAM) in old(gracefully) worker processes? IMO worker thread have allocated all memory till last clients disconnects. That is really isue for us - we have currently 32Gigs of spare RAM to be able to handle reload under lo

Nginx - PHP FPM Server load is very high

2014-03-06 Thread agriz
Hi The server is struggling to handle the traffic. I have 8GB ram. Quad core server. I have changed the config file for nginx and i have default config for php fpm. Please advice the best config. Right now, the load is about 50 user nginx; worker_processes 4; error_log /var/log/nginx/error

Re: Transforming nginx for Windows

2014-03-06 Thread itpp2012
tonyschwartz Wrote: --- > How ready is this for production? I seem to be getting a lot of > intermittent timeouts/dropped connections to the backend or something > doing upstream proxying. Just wondering before I go digging into this > any more.

map or not map?

2014-03-06 Thread etienne . champetier
Hi, To help with debbuging, I'm adding an header like this (multiple nginx behind a load balancer) add_header X-Served-By $hostname $hostname are like 'myserverXX', how can i put only the XX instead of full $hostname (to put less informations) Is using map the only solution (i'm looking for a s

Re: Redirect host

2014-03-06 Thread Igor Sysoev
On Mar 6, 2014, at 21:38 , Tommy Berglund wrote: > I have a question, is this the best way to perform this action? > > Only allow https://webmail.exampel.com in the server block ssl > and redirect any host that isn't webmail.example.com to the example.com > > if ($host !~* 'webmail.example.com'

Redirect host

2014-03-06 Thread Tommy Berglund
I have a question, is this the best way to perform this action? Only allow https://webmail.exampel.com in the server block ssl and redirect any host that isn't webmail.example.com to the example.com if ($host !~* 'webmail.example.com' ) { rewrite ^/(.*)$ http://example.com/$1 permanent;

Re: Transforming nginx for Windows

2014-03-06 Thread tonyschwartz
Actually, this may be my issue: http://forum.nginx.org/read.php?15,239760,239760 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242426,248193#msg-248193 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Transforming nginx for Windows

2014-03-06 Thread tonyschwartz
How ready is this for production? I seem to be getting a lot of intermittent timeouts/dropped connections to the backend or something doing upstream proxying. Just wondering before I go digging into this any more. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242426,248190#msg-248190

FastCGI + fork

2014-03-06 Thread Yasser Zamani
Hi there, I rewrote FastCGI's echo_cpp.cpp example to ridirect another process e.g. ls output DIRECTLY (to achieve high performance) to client but unfortunately does not work as expected! P.S. if I simply read the pipe I get output but I lost performance. So, I need to directly redirect the

Re: Removing a request header in an access phase handler

2014-03-06 Thread David Pesce
Jan Algermissen wrote in post #1114756: > Hi, > > I developing a handler for the access phase. In this handler I intend to > remove a certain header. > > It seems that this is exceptionally hard to do - the only hint I have is > how it is done in the headers_more module. > > However, I wonder, whet

Re: Advice on max_ranges for specific location block

2014-03-06 Thread Maxim Dounin
Hello! On Thu, Mar 06, 2014 at 06:21:22AM -0500, sephreph wrote: > Hi, > > Hopefully this question isn't too basic, I just want to check if I'm missing > something obvious. > > I'm setting up a basic nginx installation with php-fpm behind it running on > 127.0.0.1:9000 - that's working fine. I

[ANNOUNCE] Tengine-2.0.1 is released

2014-03-06 Thread Chuanwen Chen
Hi folks, We are glad to announce that Tengine-2.0.1 (development version) has been released. You can either checkout the source code from github: https://github.com/alibaba/tengine or download the tarball directly: http://tengine.taobao.org/download/tengine-2.0.1.tar.gz The changelog is as follo

Advice on max_ranges for specific location block

2014-03-06 Thread sephreph
Hi, Hopefully this question isn't too basic, I just want to check if I'm missing something obvious. I'm setting up a basic nginx installation with php-fpm behind it running on 127.0.0.1:9000 - that's working fine. I'm using max_ranges set to 5 globally in the server block (example below), but I