日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網(wǎng)站首頁 編程語言 正文

nginx中的超時設置,請求超時、響應等待超時等

作者:沉、睡 更新時間: 2022-01-31 編程語言

nginx中的超時設置,請求超時、響應等待超時等

請求超時

http {
    include       mime.types;
    server_names_hash_bucket_size  512;     
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;  #保持
    tcp_nodelay on;
    client_header_timeout 15;
    client_body_timeout 15;
    send_timeout 25;
    include vhosts/*.conf;
}

后端服務器處理請求的時間設置(頁面等待服務器響應時間)

location / {
        ...
        proxy_read_timeout 150;  # 秒
        ...
}

原文鏈接:https://blog.csdn.net/zz975896590/article/details/119990840

欄目分類
最近更新