Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
2015-08-26 18:20 GMT+02:00 Edho Arief : > On Thu, Aug 27, 2015 at 12:52 AM, Etienne Champetier > wrote: > > > > > > 2015-08-26 17:36 GMT+02:00 Edho Arief : > >> > >> On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier > >> wrote: > >>

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
2015-08-26 17:36 GMT+02:00 Edho Arief : > On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier > wrote: > > Hi, > > > > I have this setup > > browser -> ssl proxy -> nginx > > browser to ssl proxy is https only > > ssl proxy to nginx is http only

disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
Hi, I have this setup browser -> ssl proxy -> nginx browser to ssl proxy is https only ssl proxy to nginx is http only now i browse to "https://exemple.com/aaa";, where aaa is a directory, so nginx send back a 301 redirect with "Location: http://exemple.com/aaa/"; Is it possible to send https in

fastcgi retry upstream (transparent php-fpm restart)?

2015-07-08 Thread Etienne Champetier
Hi, I'm using nginx with 1 php-fpm (via unix socket), and i'm wondering if there is a way to make nginx retry on error, something like fastcgi_next_upstream but for the same upstream. I would like to be able to transparently restart php-fpm and not send some 502 to the clients So, is there a way

Re: Intermittent SSL Handshake Errors

2015-01-31 Thread Etienne Champetier
Hi Le 31 janv. 2015 20:02, "Richard Stanway" a écrit : >> >> ... >> 2015/01/13 12:22:59 [crit] 11871#0: *140260577 SSL_do_handshake() >> failed (SSL: error:1408A0D7:SSL >> routines:SSL3_GET_CLIENT_HELLO:required cipher missing) while SSL >> handshaking, client: *.*.*.*, server: 0.0.0.0:443 >> > >

Re: X-Real-Proto ?

2014-04-22 Thread etienne . champetier
hi - Mail original - > De: "Igor Sysoev" > À: nginx@nginx.org > Envoyé: Lundi 21 Avril 2014 13:56:41 > Objet: Re: X-Real-Proto ? > > On Apr 21, 2014, at 15:47 , Igor Sysoev wrote: > > > On Apr 21, 2014, at 15:03 , etienne.champet...@free.fr wrote: > > > >> Hi, > >> > >> There is ngx_h

X-Real-Proto ?

2014-04-21 Thread etienne . champetier
Hi, There is ngx_http_realip_module to have the real ip in nginx when you are behind a load balancer If the load balancer is also terminating the ssl, and connecting to nginx with http, how to set the real proto ? Thanks in advance Etienne ___ nginx

fastcgi_response_time ?

2014-03-10 Thread etienne . champetier
Hi I'm using nginx in front of fastcgi servers (fastcgi_pass ...), I would like to have in my logs the response_time and the fastcgi_response_time (which doesn't exist), is it possible? I've tried upstream_response_time but it's always the same value as fastcgi_response_time, even with slow con

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: Nginx convert UTF8 request to ISO-8859-1

2013-09-25 Thread etienne . champetier
Hi, - Mail original - > De: "Francis Daly" > À: nginx@nginx.org > Envoyé: Mardi 24 Septembre 2013 23:47:41 > Objet: Re: Nginx convert UTF8 request to ISO-8859-1 > > On Tue, Sep 24, 2013 at 10:19:51PM +0200, etienne.champet...@free.fr > wrote: > > Hi there, > > > If you put "http:///?te

Nginx convert UTF8 request to ISO-8859-1

2013-09-24 Thread etienne . champetier
Hi, IE8 (maybe also IE9/IE10) doesn't auto encode url (firefox do), and can make utf8 requests If you put "http:///?test=ééé" in the address bar, the é will not be html encoded, and will be sent encoded in utf8 (c3a9 in hex, i've checked with wireshark) The problem is that the fastcgi backend (

goto @loc; / return @loc;

2013-09-10 Thread etienne . champetier
Hi Here is a simplified example of my nginx config location /loc1 { location ~ \.(css|js)$ { try_files $uri @loc1; } return 599; error_page 599 = @loc1; } location @loc1 { fastcgi_index index.aspx; # Page par defaut fastcgi_pass unix:/tmp/loc1.sock; } The idea is