stub_status always give me 0 Reading when upgraded to 1.4.1

2013-07-16 Thread Tsz Ming WONG
Hi, We have upgraded one of our nginx from 0.7.65 to 1.4.1 (keeping existing configuration) and the stub_status module now always give me "0 Reading" 0.7.65 Active connections: 4798 server accepts handled requests 169096 1690415734 1814927218 Reading: 573 Writing: 184 Waiting: 4041 1.4.1 Ac

Re: 502 errors while running elgg social network app.. used the common solutions already

2013-07-16 Thread tunist
looks like i found the answer to this.. i needed to increase the fast_cgi_connect_timeout to 120 seconds as my server is not so quick. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240922,240927#msg-240927 ___ nginx mailing list nginx@nginx

Re: SSL Reverse Proxy issues

2013-07-16 Thread Francis Daly
On Mon, Jul 15, 2013 at 11:54:24AM -0400, mosiac wrote: Hi there, > Basically what happens is you can goto the > server name that is set and the proxy pass works for that first site, but > that site is also a login page that after authentication forwards the user > to another page and what I'd li

Re: Reg: SCGI application running error in NGINX server

2013-07-16 Thread Francis Daly
On Mon, Jul 15, 2013 at 08:16:42PM +0530, P Amarnath wrote: Hi there, > /Error/: *upstream timed out ... > upstream: "scgi://172.16.8.180:9000" What's unclear? nginx was waiting for the scgi server to respond, then nginx gave up waiting. What do your scgi server logs say about this request?

Re: logs show massive spam of "proxy.php" access

2013-07-16 Thread Francis Daly
On Tue, Jul 16, 2013 at 10:34:17AM -0400, dfumagalli wrote: Hi there, > since I have installed nxginx on my Ubuntu LTS, I see the logs absolutely > full of text like this: > > 2013/07/16 11:07:43 [error] 24590#0: *445 rewrite or internal redirection > cycle while internally redirecting to "/inde

502 errors while running elgg social network app.. used the common solutions already

2013-07-16 Thread tunist
greetings! does anyone here have a reliable way of accurately calculating all the various parameters that are used in the .conf files for nginx hosted sites - that may cause 502 errors if set inaccurately? i am running an elgg social network (php code + mysql - http://www.elgg.org) and recently i

Re: Logging a variable set by nginx's Lua module

2013-07-16 Thread Marcin Deranek
On Tue, 16 Jul 2013 12:22:19 -0400 "danslimmon" wrote: > Thanks for the reply. > > My first thought was to put a "set foo '-'" in the config, but when I > use this pared-down example that emulates the documentation except to > replace "content_by_lua" with "rewrite_by_lua": > > https://gist.git

Re: Logging a variable set by nginx's Lua module

2013-07-16 Thread danslimmon
Thanks for the reply. My first thought was to put a "set foo '-'" in the config, but when I use this pared-down example that emulates the documentation except to replace "content_by_lua" with "rewrite_by_lua": https://gist.github.com/danslimmon/1ba367780f0efdd2afc5 I get "-" in the logs instead

Re: Logging a variable set by nginx's Lua module

2013-07-16 Thread Marcin Deranek
On Tue, 16 Jul 2013 11:26:29 -0400 "danslimmon" wrote: > However, nginx won't start with this configuration. It complains > thusly: https://gist.github.com/danslimmon/f5f789d8af8bbb06b224 http://wiki.nginx.org/HttpLuaModule#ngx.var.VARIABLE "Note that only already defined nginx variables can be

Re: Nginx returns HTTP 200 with Content-Length: 0

2013-07-16 Thread bruiselee
we just encountered the same problem at 0.002% level, solved it by removing following line in conf file: "gzip_http_version 1.0" very wired problem, still not understand the true reason Posted at Nginx Forum: http://forum.nginx.org/read.php?2,205826,240918#msg-240918 __

Logging a variable set by nginx's Lua module

2013-07-16 Thread danslimmon
I am trying to use the Lua module in nginx to set a variable ("foo") based on JSON in the body of a request. Then I want to log the value of that variable to the access log. Like so: https://gist.github.com/danslimmon/17f5bf4736566737cc65 However, nginx won't start with this configuration. It com

logs show massive spam of "proxy.php" access

2013-07-16 Thread dfumagalli
Hello, since I have installed nxginx on my Ubuntu LTS, I see the logs absolutely full of text like this: 2013/07/16 11:07:43 [error] 24590#0: *445 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 91.237.249.99, server: www.[my host name].com, request: "P

Reverse Proxy Stats

2013-07-16 Thread Flatfender
All, I'm wondering what people are doing for Reverse Proxy stats. Most project seem to be incomplete or may have bit rot. I'm looking to see the following. 1. Active sessions to upstream servers 2. Request distribution to upstream servers 3. Upstream health status. 4. Upstream server stats, re

Re: Nginx worker processors D state and high I/O utilization !!

2013-07-16 Thread edogawaconan
On Tue, Jul 16, 2013 at 5:41 PM, Igor Sverkos wrote: > > Yes, you should buy real SAS server disks. Don't ever use green SATA > disks in servers :) > Or SSDs for good IOPS :) -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org ___ nginx

Re: Nginx worker processors D state and high I/O utilization !!

2013-07-16 Thread Igor Sverkos
Hi, can you tell use the HDD modell you are currently using? And are you using real dedicated servers or some kind of virtualization? Current SATA disks (Seagate ST1000DM-003 for example) are able to provide an avg speed of 190MB/s (keep in mind: It's their avg speed. So when the disk is full, th

Re: Nginx worker processors D state and high I/O utilization !!

2013-07-16 Thread shahzaib shahzaib
What should be my next step ? Should i buy SAS Drive with hard-raid-10 ? On Tue, Jul 16, 2013 at 12:34 PM, Sergey Kandaurov wrote: > On Jul 16, 2013, at 8:59 AM, shahzaib shahzaib > wrote: > > Hello, > > > > We're using nginx-1.2.8 to serve large static files for video > streaming. Howeve

Re: Nginx worker processors D state and high I/O utilization !!

2013-07-16 Thread Sergey Kandaurov
On Jul 16, 2013, at 8:59 AM, shahzaib shahzaib wrote: > Hello, > > We're using nginx-1.2.8 to serve large static files for video > streaming. However all nginx worker_processes are in "D" state and HDD I/O > utilization is 99%. > […] > [root@DNTX010 ~]# iostat -x -d 3 > Linux 2.6.32-358.6