Re: RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread kostbad
Sorry, this is the output i get: Thanks, it's probably time to update my system. nginx version: nginx/1.2.6 built by gcc 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) TLS SNI support enabled configure arguments: --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-

Re: (52) Empty reply from server

2016-05-04 Thread Pankaj Chaudhary
Hi, thank you! My module is basically for resource protection. I have already running my module on other servers also. My module follow below steps. -Generate cookie and write in response header -read from header when cookie is needed IIS have API setheader() to set header and getheader() to ge

Re: Rewrite before regex location

2016-05-04 Thread Anoop Alias
Hi , Can you try putting the rewrite in server{} block outside of all location{} blocks like rewrite "^/test/([a-z]+).php$" /test/test.php?q=$1 last; On Thu, May 5, 2016 at 5:13 AM, Joyce Babu wrote: >> If you've got a messy config with no common patterns, you've got a messy >> config with no

Re: Rewrite before regex location

2016-05-04 Thread Joyce Babu
> > If you've got a messy config with no common patterns, you've got a messy > config with no common patterns, and there's not much you can do about it. > > If you can find common patterns, maybe you can make the config more > maintainable (read: no top-level regex locations); but you don't want >

Re: Rewrite before regex location

2016-05-04 Thread Francis Daly
On Thu, May 05, 2016 at 04:22:11AM +0530, Joyce Babu wrote: Hi there, > > Possibly using "location ^~ /test/" would work? > There are over 300 rewrites under 54 location blocks. If you've got a messy config with no common patterns, you've got a messy config with no common patterns, and there's

Re: Rewrite before regex location

2016-05-04 Thread Joyce Babu
Hi Francis, Thank you for the response. Possibly using "location ^~ /test/" would work? > > http://nginx.org/r/location > > You may want to rewrite to /test.php (with the leading slash), though. > > Although, better might be to just fastcgi_pass directly, rather than > rewriting. > > Something li

Re: Rewrite before regex location

2016-05-04 Thread Francis Daly
On Thu, May 05, 2016 at 02:56:27AM +0530, Joyce Babu wrote: Hi there, > When I add a > regex location block to match .php extension, it gets higher precedence, > and my rewrite rules are not applied. > > How can I resolve this? > > location /test/ { > rewrite "^/test/([a-z]+).php$" test.php

Re: openshift-nginx docker image running as non-root

2016-05-04 Thread Francis Daly
On Wed, May 04, 2016 at 06:25:01PM -0300, Paulo Leal wrote: Hi there, Completely untested by me; and I've not used openshift or docker, but: > I have been playing around with the > https://github.com/nginxinc/openshift-nginx dockerfile and trying to find > a way to run run nginx as non-root wit

Rewrite before regex location

2016-05-04 Thread Joyce Babu
I am trying to migrate to Nginx + PHP-FPM from Apache + mod_php. I am currently using mod_rewrite to rewrite some virtual URIs ending in .php to actual PHP scripts. This works perfectly when using mod_php. But with with Nginx + FPM, since we have to use proxy_pass, this is not working. When I add a

openshift-nginx docker image running as non-root

2016-05-04 Thread Paulo Leal
Hi, I have been playing around with the https://github.com/nginxinc/openshift-nginx dockerfile and trying to find a way to run run nginx as non-root with openshift/k8/docker. I am currently getting the error: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (

Re: (52) Empty reply from server

2016-05-04 Thread Valentin V. Bartenev
On Wednesday 27 April 2016 21:51:33 Pankaj Chaudhary wrote: > Hi, > Thank you, > I got this point. > But in my case i need to set cookie value in header later read from header > the same value. > Is any example which i can follow for my requirement, can you suggest > please. > I believe there are

Re: Shared Memory Structure?

2016-05-04 Thread Maxim Dounin
Hello! On Tue, May 03, 2016 at 05:45:05AM -0400, ben5192 wrote: > I am storing things in a shared memory zone allocated with > ngx_shared_memory_add and allocating each slab with ngx_slab_alloc_locked > (as these items don’t need to be locked particularly). The problem I'm > having is that I add

Re: Trailing Slash redirection poblem

2016-05-04 Thread Muhammad Yousuf Khan
Thanks for the info. will check on that. On Wed, May 4, 2016 at 12:22 AM, Francis Daly wrote: > On Mon, May 02, 2016 at 05:48:12PM +0500, Muhammad Yousuf Khan wrote: > > Hi there, > > > Thanks for the reply, actually we have 5 categories. and then we have > > hundred plus post in each category

Re: RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread Maxim Dounin
Hello! On Wed, May 04, 2016 at 06:58:19AM -0400, kostbad wrote: > The nginx version is 1.2.6. That's not "nginx -V" output you were asked for. Nevertheless, it's probably enough to conclude you should upgrade before doing anything else. The 1.2.x branch is not supported for more than 3 year

Re: How to turn off DNS caching

2016-05-04 Thread Jim Ohlstein
Hello, On May 4, 2016, at 7:12 AM, Sem wrote: > Hi, > > I am trying to connect to my AWS RDS (mysql) instance using the AWS supplied > DNS endpoint. > > The problem is, the IP of the instance changes periodically. > > It appears that nginx does not resolve the DNS name every time, but cac

Re: HTTP2 Multiplexing

2016-05-04 Thread Valentin V. Bartenev
On Wednesday 04 May 2016 18:50:44 Muhui Jiang wrote: > Hi > > >Nginx allows multiple request and responses in multiple connections using > >HTTP/1.x as well. HTTP/2 changes nothing here (except it uses only one > >connection, but it's not important from the basic architecture point of > >view). >

How to turn off DNS caching

2016-05-04 Thread Sem9999
Hi, I am trying to connect to my AWS RDS (mysql) instance using the AWS supplied DNS endpoint. The problem is, the IP of the instance changes periodically. It appears that nginx does not resolve the DNS name every time, but caches it. Therefore nginx initially works, then at some point later,

Re: RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread kostbad
The nginx version is 1.2.6. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266590,266603#msg-266603 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: HTTP2 Multiplexing

2016-05-04 Thread Muhui Jiang
Hi >Nginx allows multiple request and responses in multiple connections using >HTTP/1.x as well. HTTP/2 changes nothing here (except it uses only one >connection, but it's not important from the basic architecture point of >view). If so, it seems there is no difference or improvement of the impl

Re: HTTP2 Multiplexing

2016-05-04 Thread Valentin V. Bartenev
On Wednesday 04 May 2016 11:25:11 Muhui Jiang wrote: > Hi > > Different from HTTP1.1 pipeline, HTTP2 allows multiple request and response > messages to be in flight at the same time. I was wondering what the > strategy Nginx adopt to implement this main feature. Nginx allows multiple request an

RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread Lukas Tribus
> When ssllabs tests for deprecated cipher suites, it stays there forever. > I have to close the ssllabs test page and then my nginx server stays down > until i restart it. Please provide the output of nginx -V. ___ ng

Re: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread kostbad
When ssllabs tests for deprecated cipher suites, it stays there forever. I have to close the ssllabs test page and then my nginx server stays down until i restart it. I also got the following error: 113 upstream prematurely closed connection while reading response header from upstream, client: ..

Re: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-04 Thread A. Schulze
kostbad: Every time i run it, my nginx server (ssl terminator) crashes and i have to restart it. I get the following error in my nginx logs: *734 SSL_do_handshake() failed (SSL: error:140A1175:SSL routines:SSL_BYTES_TO_CIPHER_LIST:inappropriate fallback) while SSL handshaking, client: ..,