Re: internal location keepalive_requests issue

2016-08-26 Thread crasyangel
if (r->keepalive) { if (clcf->keepalive_timeout == 0) { r->keepalive = 0; } else if (r->connection->requests >= clcf->keepalive_requests) { r->keepalive = 0; } else if (r->headers_in.msie6 && r->method == NGX_HTTP_POST

Re: internal location keepalive_requests issue

2016-08-26 Thread Maxim Dounin
Hello! On Fri, Aug 26, 2016 at 02:50:15PM -0400, crasyangel wrote: > location /hls { > error_page 404 = @hls; > keepalive_requests 1000; > } > > location @hls { > # Serve HLS fragments > types { > application/vnd.app

internal location keepalive_requests issue

2016-08-26 Thread crasyangel
location /hls { error_page 404 = @hls; keepalive_requests 1000; } location @hls { # Serve HLS fragments types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } root /tmp;

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
It works by adding a X-Accel-Expires header to my php output what the fastcgi_cache will follow what also then means if i use proxy_cache it would follow it too :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269212,269219#msg-269219 ___ n

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
Maxim Dounin Wrote: --- > Hello! > > On Fri, Aug 26, 2016 at 11:01:05AM -0400, c0nw0nk wrote: > > > So I have been trying to make the fastcgi_cache_valid value based on > user > > request. > > > > if ($request_uri ~ "/url1" ) { > > set $cacheti

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread Maxim Dounin
Hello! On Fri, Aug 26, 2016 at 11:01:05AM -0400, c0nw0nk wrote: > So I have been trying to make the fastcgi_cache_valid value based on user > request. > > if ($request_uri ~ "/url1" ) { > set $cachetime "any 5s"; > } > if ($request_uri ~ "/url2" ) { > set $cachetime "any 5m"; > } > > These did

Re: how to completely disable request body buffering

2016-08-26 Thread B.R.
fastcgi_request_buffering does deactivate request buffering from what I understand from the docs. client_body_buffer_size is said to be useful/used only when the previous directive is activated. >From what I read it seems your configuration attempts failed to load or to be activated where needed.

Re: keep-alive to backend + non-idempotent requests = race condition?

2016-08-26 Thread B.R.
What about marking the upstream servers you want to update as 'down' in their pool, reloading the configuration (HUP signal, gracefully shutting down old workers), and waiting for the links to those servers to be clear of any activity? ​Then upgrade and reintegrate updated servers in the pool (whil

Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
So I have been trying to make the fastcgi_cache_valid value based on user request. if ($request_uri ~ "/url1" ) { set $cachetime "any 5s"; } if ($request_uri ~ "/url2" ) { set $cachetime "any 5m"; } These did not work because it turns out your not allowed to have a dynamic variable within the fas

Re: nginx-http-concat module

2016-08-26 Thread Alt
GreenGecko Wrote: --- > answering my own question. If any of the files are missing, it returns > a > 404. Hello, I've never used nginx-http-concat, but you can disable this behavior with "concat_ignore_file_error on". Found in the doc: https:/