Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.

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:
http://forum.nginx.org/read.php?2,252851,252851#msg-252851

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