Nginx Windows | Keepalive timeouts location based

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;
}

Posted at Nginx Forum:

You should be able to test this with curl -k, see the curl manpage.

Posted at Nginx Forum:

On Tuesday, August 26, 2014 12:50:08 PM c0nw0nk wrote:

keepalive_timeout 3600s;
}

Posted at Nginx Forum:
Nginx Windows | Keepalive timeouts location based


nginx mailing list
[email protected]
nginx Info Page

Yes, we can:
http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout

Context: http, server, location

Best regards,
Styopa S…

Hello!

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

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 D.
http://nginx.org/