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; # 秒
...
}