Forum: NGINX Nginx Windows | Keepalive timeouts location based

2974d09ac2541e892966b762aad84943?d=identicon&s=25 c0nw0nk (Guest)
on 2014-08-26 18:50
(Received via mailing list)
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
different timeout values per each location or file type being accessed ?

Example :
location ~ \.flv$ {
keepalive_timeout  60s;
location ~ \.mp4$ {
keepalive_timeout  3600s;

Posted at Nginx Forum:,252851,252851#msg-252851
2974d09ac2541e892966b762aad84943?d=identicon&s=25 itpp2012 (Guest)
on 2014-08-26 18:58
(Received via mailing list)
You should be able to test this with curl -k, see the curl manpage.

Posted at Nginx Forum:,252851,252852#msg-252852
A50067f6308bd5d0a61cf2986a21cb2f?d=identicon&s=25 Styopa Semenukha (Guest)
on 2014-08-26 18:58
(Received via mailing list)
On Tuesday, August 26, 2014 12:50:08 PM c0nw0nk wrote:
> keepalive_timeout  3600s;
> }
> Posted at Nginx Forum:
> _______________________________________________
> nginx mailing list

Yes, we can:
> Context:  http, server, location
Best regards,
Styopa Semenukha.
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2014-08-26 19:02
(Received via mailing list)

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 Dounin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.