Re: High CPU Usage and NGINX Hangup

2014-03-04 Thread Igor Sysoev
On Mar 4, 2014, at 9:07 , loki wrote: > I am seeing my NGINX server randomly hangup. Multiple worker processes > utilizing 100% CPU. I see the hangups in strace, but not quite sure what > would be causing the issue. > > 0.81 futex(0x7f563c893068, FUTEX_WAIT, 0, NULL) = ? ERESTARTSYS (To be >

Re: High CPU Usage and NGINX Hangup

2014-03-04 Thread Yichun Zhang (agentzh)
Hello! On Mon, Mar 3, 2014 at 9:07 PM, loki wrote: > I am seeing my NGINX server randomly hangup. Multiple worker processes > utilizing 100% CPU. 100% CPU occupancy usually happen on the userland code, so strace is usually not help by providing info on the syscall level. It'll be ideal if you ca

Re: High CPU Usage and NGINX Hangup

2014-03-04 Thread loki
I am now seeing a bunch of epoll_waits in the strace. Multiple master processes spawn. 4519 0.00 epoll_wait(143, {}, 512, 500) = 0 4519 0.500833 epoll_wait(143, {}, 512, 500) = 0 4519 0.500785 epoll_wait(143, {}, 512, 500) = 0 4519 0.500756 epoll_wait(143, {}, 512, 500)

Re: nginx as front end cache for WMS

2014-03-04 Thread tt5430
Hi Anton, I followed your suggestion and modified my conf files. I also added some new stuff but still could not get it to work. I did not see any message written to the access log and did not see anything written to the cache. I included my new conf files and a request/response block that I c

Re: Nginx postgres problem

2014-03-04 Thread Yichun Zhang (agentzh)
Hello! On Tue, Mar 4, 2014 at 7:15 AM, arunh wrote: > But when I try to print the value of "$1" variable and also after assigning > it to the variable "$tenantID" I do get the value. > I guess in the eval block the postgres_escape is not getting set. > The "eval" directive always runs before the

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-04 Thread Francis Daly
On Tue, Mar 04, 2014 at 03:51:36PM -0500, talkingnews wrote: Hi there, continuing from my previous mail... > > There is no such DOCUMENT_URI server variable in PHP > > The nginx wiki has not the reputation of being a trustable source > > I know you say not to trust the wiki (it appears in > ht

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-04 Thread Francis Daly
On Mon, Mar 03, 2014 at 04:11:52PM -0500, talkingnews wrote: Hi there, > I'd call myself very much a beginner with NGiNX, but I've been looking > further through the documentation, particularly the > http://wiki.nginx.org/Pitfalls page, and now I'm left with confusion! The wiki is pretty much fr

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-04 Thread talkingnews
Hi BR and thank you for your reply. You said: > Where does the 'sites-available' directory of nginx came from? Standard "apt-get install nginx" on Ubunutu. Stable and mainline. Like Apache, 'sites-available' contains all sites, then you can symlink to 'sites-enabled' for running sites. It's just

Re: redirect 301 alias domain

2014-03-04 Thread Francis Daly
On Tue, Mar 04, 2014 at 08:27:39AM -0500, zuckbin wrote: Hi there, this... > curl -i "http://www.aaa.com/"; > Location: http://www.aaa.com/ says that the config that you think nginx is using is not the config that nginx is using. You have a few other recent mails which probably have the same

Re: Worker dies with a segfault error

2014-03-04 Thread Maxim Dounin
Hello! On Tue, Mar 04, 2014 at 10:07:28AM -0500, greekduke wrote: > Hello > > Below is the backtrace. I have seen the behaviour without eval and Postgres > and I will try to take a trace tomorrow. In the debug log actually there is > no error. Since I have only one worker the PID just changes to

nginx-1.4.6

2014-03-04 Thread Maxim Dounin
Changes with nginx 1.4.6 04 Mar 2014 *) Bugfix: the "client_max_body_size" directive might not work when reading a request body using chunked transfer encoding; the bug had appeared in 1.3.9. Thanks to Lucas Molas. *) Bugfix: a

nginx security advisory (CVE-2014-0088)

2014-03-04 Thread Maxim Dounin
Hello! A bug in the experimental SPDY implementation in nginx 1.5.10 was found, which might allow an attacker to corrupt worker process memory by using a specially crafted request, potentially resulting in arbitrary code execution (CVE-2014-0088). The problem only affects nginx 1.5.10 on 32-bit p

nginx-1.5.11

2014-03-04 Thread Maxim Dounin
Changes with nginx 1.5.1104 Mar 2014 *) Security: memory corruption might occur in a worker process on 32-bit platforms while handling a specially crafted request by ngx_http_spdy_module, potentially resulting in arbitrary code execu

Nginx postgres problem

2014-03-04 Thread arunh
Hello All, I am newbie to Nginx and I am using Nginx with PostgreSQL database. When there is a http request to the server I want to extract one of the input variables in the request, query the Database and retrun the result, the variable inside the postgres_query is empty. But when I try to prin

Re: Worker dies with a segfault error

2014-03-04 Thread greekduke
Hello Below is the backtrace. I have seen the behaviour without eval and Postgres and I will try to take a trace tomorrow. In the debug log actually there is no error. Since I have only one worker the PID just changes to the new worker without any info. Since I am using nginx as proxy only I am su

Re: Worker dies with a segfault error

2014-03-04 Thread Maxim Dounin
Hello! On Tue, Mar 04, 2014 at 09:33:56AM -0500, greekduke wrote: > Hello > > Finally I managed to get a core dump and below is the output: > > [root@ape-01 nginx]# gdb /usr/local/nginx/sbin/nginx > /var/log/nginx/core.31000 > GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) [...] >

Re: Worker dies with a segfault error

2014-03-04 Thread greekduke
Hello Finally I managed to get a core dump and below is the output: [root@ape-01 nginx]# gdb /usr/local/nginx/sbin/nginx /var/log/nginx/core.31000 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
i forgot to say that i used pound on my server before to send traffic to nginx Maybe, there is a conflict with it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248071#msg-248071 ___ nginx mailing list nginx@nginx.org http://mailman.n

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
curl -i "http://www.aaa.com/"; HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 04 Mar 2014 13:25:24 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Keep-Alive: timeout=5 Location: http://www.aaa.com/ 301 Moved Permanently 301 Moved Permanently nginx Posted at Ng

Re: redirect 301 alias domain

2014-03-04 Thread Francis Daly
On Tue, Mar 04, 2014 at 06:10:31AM -0500, zuckbin wrote: Hi there, > in firebug i can see this many times: > > GET www.aaa.com 301 Moved Permanently aaa.com > > it seem this is not redirect well This seems to say the when you ask for http://www.aaa.com/, you are redirected to http://aaa.com/.

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
i got this error The page isn't redirecting properly in firebug i can see this many times: GET www.aaa.com 301 Moved Permanently aaa.com it seem this is not redirect well Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248068#msg-248068 ___

Re: [alert] could not add new SSL session to the session cache while SSL handshaking

2014-03-04 Thread Maxim Dounin
Hello! On Tue, Mar 04, 2014 at 09:22:48AM +0100, Alex wrote: > Hi! > > On 2014-03-03 18:45, Maxim Dounin wrote: > > Note well that configuring ssl_buffer_size to 1400 isn't a good > > idea unless you are doing so for your own performance testing. > > See previous discussions for details. > >

Re: HttpLimitReqModule should return 429 not 503

2014-03-04 Thread justink101
Thanks, did not see this directive, exactly what is needed. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248049,248065#msg-248065 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

server block conflict

2014-03-04 Thread zuckbin
hi, got multiples server block for different domains, but it seem for fastcgi_param PHP_VALUE; they are in conflict all together here an exemple: server{ server_name aaa; ... location ~ \.php$ { try_files $uri =404; fastcgi_split_path

Re: nginx as front end cache for WMS

2014-03-04 Thread Anton Yuzhaninov
On 03/04/14 02:26, tt5430 wrote: How do I know if nginx caches my WMS responses? It will be useful to log $upstream_cache_status and $upstream_response_time in access_log. Also check, that geoserver return code is 200 (and not redirect to some other URI). _

Re: vbulletin vbseo rewrite rule

2014-03-04 Thread zuckbin
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 ?! boring... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248039,248062#msg-248062 ___ nginx mailing list nginx@ngin

Re: Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-04 Thread B.R.
​​ On Mon, Mar 3, 2014 at 10:11 PM, talkingnews wrote: > This page http://wiki.nginx.org/PHPFcgiExample says > "This guide run fine on php.ini cgi.fix_pathinfo = 1 (the default). Some > guide insist to change it to cgi.fix_pathinfo = 0 but doing that make > PHP_SELF variable broken (not equal to

Re: [alert] could not add new SSL session to the session cache while SSL handshaking

2014-03-04 Thread Alex
Hi! On 2014-03-03 18:45, Maxim Dounin wrote: > Note well that configuring ssl_buffer_size to 1400 isn't a good > idea unless you are doing so for your own performance testing. > See previous discussions for details. Maxim, I remember the discussion that was started by Ilya. From what I underst