Re: reverse proxy and nested locations

2013-10-07 Thread Wolfgang Hennerbichler
On Oct 8, 2013, at 01:02 , Maxim Dounin wrote: > Hello! Hi and thanks for your quick response, > On Mon, Oct 07, 2013 at 10:31:15PM +0200, Wolfgang Hennerbichler wrote: > >> Hi list, >> >> I'd like to have an elegant reverse proxy configuration, where I >> allow specific sub-URIs behind th

Re: Doubt regarding Windows 7, MP4 module and HTML5.

2013-10-07 Thread sandrex
Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243465,243496#msg-243496 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread Maxim Dounin
Hello! On Mon, Oct 07, 2013 at 03:22:15PM -0400, Ben Johnson wrote: [...] > Sorry to bump this topic, but I feel as though I have exhausted the > available information on this subject. > > I'm pretty much in the same boat as Roger from > http://stackoverflow.com/questions/4870697/php-flush-that

Re: reverse proxy and nested locations

2013-10-07 Thread Maxim Dounin
Hello! On Mon, Oct 07, 2013 at 10:31:15PM +0200, Wolfgang Hennerbichler wrote: > Hi list, > > I'd like to have an elegant reverse proxy configuration, where I > allow specific sub-URIs behind the reverse-proxy-URL for > specific IP Adresses. My intended configuration looks like this: > >

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread B.R.
Hello, On Mon, Oct 7, 2013 at 5:35 PM, Francis Daly wrote: > Run the fastcgi server like this: > > env -i php-cgi -d cgi.fix_pathinfo=0 -q -b 9009 > > Use an nginx config which includes something like this: > ​I would recommend being careful about that experiment since there is a high probab

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread Francis Daly
On Mon, Oct 07, 2013 at 03:22:15PM -0400, Ben Johnson wrote: > On 9/16/2013 1:19 PM, Ben Johnson wrote: Hi there, > > For whatever reason, nginx *always* buffers the output, even when I set > > Is it possible to disable PHP output buffering completely in nginx? Have you shown that the initial p

reverse proxy and nested locations

2013-10-07 Thread Wolfgang Hennerbichler
Hi list, I'd like to have an elegant reverse proxy configuration, where I allow specific sub-URIs behind the reverse-proxy-URL for specific IP Adresses. My intended configuration looks like this: # TRAC location /trac { proxy_pass https://my.web.server:443/trac/; location /trac/p

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread itpp2012
Have you seen this one; http://stackoverflow.com/questions/8882383/how-to-disable-output-buffering-in-php Also try php NTS, it might also be that a flush only works with non-fcgi. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242895,243487#msg-243487 _

Re: How to disable output buffering with PHP and nginx

2013-10-07 Thread Ben Johnson
On 9/16/2013 1:19 PM, Ben Johnson wrote: > Hello, > > In an effort to resolve a different issue, I am trying to confirm that > my stack is capable of servicing at least two simultaneous requests for > a given PHP script. > > In an effort to confirm this, I have written a simple PHP script that

Re: Using add_header at server level context

2013-10-07 Thread Thijs Koerselman
Thanks. So using add_header in the location scope omits any earlier add_header statements used in the parent scope. I am surprised that it works like that, but it's definitely good to know. On Mon, Sep 30, 2013 at 4:30 PM, Francis Daly wrote: > On Mon, Sep 30, 2013 at 03:42:50PM +0200, Thijs K

Re: Graceful backend shutdown

2013-10-07 Thread Maxim Dounin
Hello! On Mon, Oct 07, 2013 at 10:08:48AM +0200, Aivaras La wrote: > Hi all! > > I'm using Nginx as a reverse proxy and loadbalancer with 2 backends. > Sometimes I need to turn off one of the apps server. And I need to do it > gracefully, that when I comment one server in Nginx config, Nginx ma

Re: Doubt regarding Windows 7, MP4 module and HTML5.

2013-10-07 Thread Maxim Dounin
Hello! On Sun, Oct 06, 2013 at 04:18:44PM -0400, sandrex wrote: > Hello, > > I've runned nginx under Win7 and MP4 videos embed with HTML5 and BubblesJS > due to compatibility issues with SRT subtitles. > I'd like to know how to enable ngx_http_mp4_module using Windows (I've just > found out in L

How to setup nginx to follow 302

2013-10-07 Thread Anatoli Marinov
Hello colleagues, Last week I tried to configure nginx to follow 302 through upstream instead of relay it to the client. My config now is like the next one: http { proxy_cache_path /home/toli/nginx/run/cache keys_zone=zone_c1:256m inactive=5d max_size=30g; upstream up_cdn_cache_l2 {

Graceful backend shutdown

2013-10-07 Thread Aivaras La
Hi all! I'm using Nginx as a reverse proxy and loadbalancer with 2 backends. Sometimes I need to turn off one of the apps server. And I need to do it gracefully, that when I comment one server in Nginx config, Nginx master process starts to send new requests to new server, but old requests and se