Prevent NGINX from rerouting to a backend that was previously down

2013-06-02 Thread meltzerj
I'm using NGINX's ip_hash directive to ensure that client requests always end up at the same backend server. In the case of a backend server outage, NGINX will reroute to the available server, and since I can listen for a disconnection event on my client application, I can have my client-side appli

Re: fastcgi_read_timeout with PHP backend

2013-06-02 Thread Maxim Dounin
Hello! On Sat, Jun 01, 2013 at 01:23:03PM -0400, B.R. wrote: > Hello, > > I do not know if my private emails on the matter to Maxim went through. > Non-broken resources were included. Non-broken tcpdump just confirms what was already said based on error log: nothing is seen from php after 18:4

Re: rewrite utf8 : why lower case

2013-06-02 Thread Francis Daly
On Sun, Jun 02, 2013 at 03:33:34PM +0200, optimum.dulo...@laposte.net wrote: Hi there, > I have some routes that was previously with uppercase for language and now I > want lowrcase. here is a route : /Ka/განცხადებები that should simply become > /ka/განცხადებები > > in my conf if ($uri ~ ^/K(.

rewrite utf8 : why lower case

2013-06-02 Thread optimum . dulopin
Hi I have some routes that was previously with uppercase for language and now I want lowrcase. here is a route : /Ka/განცხადებები that should simply become /ka/განცხადებები in my conf if ($uri ~ ^/K(.+)){ set $bb $1; rewrite ^(.*)$ $scheme://$host/k$bb permanent; } and I cant understand why b

Re: Need help on proxy passing

2013-06-02 Thread Maxim Dounin
Hello! On Sat, Jun 01, 2013 at 10:42:37AM +0530, chamith Jayaweera wrote: > I experience an issue on missing some part of the page (Long page) on > passing proxy requests. Please help me to solve this. Thank You. My > configuration file is as follow. By "missing some part" do you mean the page i

Re: HTTP status code 499 from long running requests

2013-06-02 Thread Maxim Dounin
Hello! On Sat, Jun 01, 2013 at 09:09:55PM -0400, justin wrote: > Hello, I have long running requests upwards of five minutes that are called > via ajax (jQuery) (XHR), and hitting a backend PHP script. > > I am seeing very strange behavior, intermittently calling the script twice, > even though

Re: if statement + ssl_certificate?

2013-06-02 Thread natostanco
I know I would need a wildcard ssl yet...every application of SNI I have found uses different TLD, and never only different subdomains...anyway I have control over all the clients. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239732,239764#msg-239764 _