Welcome! Log In Create A New Profile

Advanced

Re: Nginx Windows | Keepalive timeouts location based

Maxim Dounin
August 26, 2014 01:04PM
Hello!

On Tue, Aug 26, 2014 at 12:50:08PM -0400, c0nw0nk wrote:

> I can't tell if this is working or not so i thought i would just ask and
> perhaps someone can inform me but with nginx keep alive timeouts can we set
> different timeout values per each location or file type being accessed ?
>
> Example :
> location ~ \.flv$ {
> flv;
> keepalive_timeout 60s;
> }
> location ~ \.mp4$ {
> keepalive_timeout 3600s;
> }

Yes, this will work. The keepalive timer is set when nginx
finishes processing of a request and switches the connection to
the keepalive state. The request configurations determines the
timeout value to be used. Most notably, this allows to disable
keepalive after some specific requests.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Windows | Keepalive timeouts location based

c0nw0nk August 26, 2014 12:50PM

Re: Nginx Windows | Keepalive timeouts location based

itpp2012 August 26, 2014 12:58PM

Re: Nginx Windows | Keepalive timeouts location based

Styopa Semenukha August 26, 2014 01:00PM

Re: Nginx Windows | Keepalive timeouts location based

Maxim Dounin August 26, 2014 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready