February 2018
Beginner to intermediate
348 pages
9h 40m
English
Context: http, server, and location
This directive defines the number of seconds the server will wait before closing a keep-alive connection. The second (optional) parameter is transmitted as the value of the Keep-Alive: timeout= <HTTP response header>. The intended effect is to let the client browser close the connection itself after this period has elapsed. Note that some browsers ignore this setting. Internet Explorer, for instance, automatically closes the connection after around 60 seconds.
Syntax: keepalive_timeout time1 [time2];
Default value: 75
keepalive_timeout 75; keepalive_timeout 75 60;
Read now
Unlock full access