Re: Request big JS file very slow if enable gzip on

2014-10-28 Thread Valentin V. Bartenev
On Tuesday 28 October 2014 21:45:10 colky wrote: > Does anybody knows how to resolve the issue? Thanks very much if can got > your help~ > It looks like a network problem. Without additional information and investigation what's happening on the wire, it's really hard to suggest something. wb

Re: Request big JS file very slow if enable gzip on

2014-10-28 Thread colky
Does anybody knows how to resolve the issue? Thanks very much if can got your help~ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254292,254395#msg-254395 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Trying to Understand Upstream Keepalive

2014-10-28 Thread newnovice
Maxim, http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive I would like to know what is the keepalive timeout for this connection pool? Is it static? Also i want to understand - if there is a marriage between number of connections nginx gets vs how many it opens to upstream?

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-28 Thread itpp2012
NaZz Wrote: --- > If its unrelated to nginx why are people suggesting to edit various > settings in nginx.conf to fix this particular problem? You can only do so much with config, the real problem here is the upstream (=backend). nginx talks Engl

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread itpp2012
c0nw0nk Wrote: --- > I dont think 8 php process can take that much traffic ? Depends on what php has to do which needs to be tuned towards expected traffic, a good cache and pre-coding some php in Lua and deliver that via co-sockets can do wonder

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-28 Thread NaZz
If its unrelated to nginx why are people suggesting to edit various settings in nginx.conf to fix this particular problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254279,254389#msg-254389 ___ nginx mailing list nginx@nginx.org http://m

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread c0nw0nk
I dont think 8 php process can take that much traffic ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254012,254388#msg-254388 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Rotating Access Logs with $date_local

2014-10-28 Thread itpp2012
rotatelogs.cmd @echo off ::Parse the time variable into timeStamp FOR /F "tokens=1-4 delims=/:., " %%J IN ("%time%") DO SET timeStamp=%%J%%K%%L ::Parse the date variable into dateStamp, MMDD FOR /F "tokens=2-4 delims=/:.- " %%J IN ("%date%") DO SET dateStamp=%%L%%K%%J set datename=%dateStamp%

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread itpp2012
Whatever your system can handle, but anywhere between 4 and 20 should be ok, using more would only be useful when you make more pools and geoip split them up. ea. divide the world into 20 portions and have a pool of 8 for each. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254012,2543

Re: Rotating Access Logs with $date_local

2014-10-28 Thread Igal @ getRailo.org
On 10/28/2014 10:18 AM, Igal @ getRailo.org wrote: > You mentioned multiple maps but why can't it be done with a single one? > > I managed to extract the year via > > map $time_local $date { > ~(?P\d\d\d\d) $year; > } > > so this is much progress, but shouldn't I be able to do s

Re: Rotating Access Logs with $date_local

2014-10-28 Thread Igal @ getRailo.org
On 10/28/2014 10:12 AM, Francis Daly wrote: > The thread starting at http://forum.nginx.org/read.php?2,254210 is not > entirely dissimilar to this one. You may find useful answers there. > The most useful is probably "don't do that"; but since you want to do > that, you can probably use one "if" or

Re: Rotating Access Logs with $date_local

2014-10-28 Thread Francis Daly
On Tue, Oct 28, 2014 at 09:48:32AM -0700, Igal @ getRailo.org wrote: Hi there, > > It is possible - you can use construct appropriate variable, e.g., > > by using map{} and $time_local. (The $date_local won't work for > > you as you won't be able to set format without SSI.) > Thank you for you

Re: Rotating Access Logs with $date_local

2014-10-28 Thread Igal @ getRailo.org
Hello Maxim, > It is possible - you can use construct appropriate variable, e.g., > by using map{} and $time_local. (The $date_local won't work for > you as you won't be able to set format without SSI.) Thank you for your prompt reply. I do not have much experience with nginx configuration so I

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread c0nw0nk
itpp2012 with the PHP multi run you supply with your builds. start /min multi_runcgi.cmd 9000 start /min multi_runcgi.cmd 9001 start /min multi_runcgi.cmd 9002 start /min multi_runcgi.cmd 9003 start /min multi_runcgi.cmd 9004 start /min multi_runcgi.cmd 9005 start /min multi_runcgi.cmd 9006 start

Re: Rotating Access Logs with $date_local

2014-10-28 Thread Maxim Dounin
Hello! On Tue, Oct 28, 2014 at 08:39:04AM -0700, Igal @ getRailo.org wrote: > How can I format the $date_local string? I want it to be date only, > like 20141028, and then use it in the filename for access log. > > Is that possible? and if not, why? seems like a simple s

Rotating Access Logs with $date_local

2014-10-28 Thread Igal @ getRailo.org
How can I format the $date_local string? I want it to be date only, like 20141028, and then use it in the filename for access log. Is that possible? and if not, why? seems like a simple solution to a problem that many users face and resort to external tools etc. I'm running Windows if

nginx-1.7.7

2014-10-28 Thread Maxim Dounin
Changes with nginx 1.7.7 28 Oct 2014 *) Change: now nginx takes into account the "Vary" header line in a backend response while caching. *) Feature: the "proxy_force_ranges", "fastcgi_force_ranges", "scgi_force_ranges", and "uwsgi_forc

Denying illegal host headers blocks bots sometimes

2014-10-28 Thread Grozdan
Hi, I've set my conf to deny illegal host headers, as per below option. However, I've noticed that bots from Google, Bing, Baidu, etc, when trying to fetch /robots.txt, often get blocked by nginx as it just terminates the connection with 444 response. Sometimes they succeed but more often they get