Achieve connection timeout configuration nginx

Configuring nginx achieve connection timeout
in the enterprise, in order to avoid prolonged occupation with a client connection, resulting in waste server resources, set the appropriate connection timeout parameters to achieve control connection access.
keepalived_timeout : holding connection timeout provided, generally only the parameter set, the default is 65 seconds, can be set according to the situation of the site; http segment may be closed, server segment, location setting section.
client_header_timeout : Specifies the time the client sends a request header penalty time
client_body_timeout : setting the timeout period read request

Modifying the master configuration file
vim /usr/local/nginx/conf/nginx.conf
add items:

60 keepalive_timeout;
 client_header_timeout 60;
 client_body_timeout 60;
reload configuration item
killall -HUP nginx

Guess you like

Origin www.cnblogs.com/990114-jhc/p/11540413.html