http {
keepalive_timeout 65;
client_header_timeout 10;
client_body_timeout 10;
send_timeout 10;
釋:
keepalive_timeout:設(shè)置客戶端連接保持活動的超時時間。在超過這個時間之后,服務(wù)器會關(guān)閉該連接。
client_header_tomeout:設(shè)置客戶端請求頭讀取超時時間。如果超過這個時間,客戶端還沒有發(fā)送任何數(shù)據(jù),Nginx將返回“Request time out(408)”錯誤。
client_body_timeout:設(shè)置客戶端請求主體讀取超時時間。如果超過這個時間,客戶端還沒有發(fā)送任何數(shù)據(jù),Nginx將返回“Request time out(408)”錯誤,默認值是60。
send_timeout:設(shè)定響應(yīng)客戶端的超時時間。這個超時僅限于兩個鏈接活動之間的時間,如果超過這個時間,客戶端沒有任何活動,Nginx將會關(guān)閉連接。