Nginx Upstream Keepalive 配置
Nginx自1.1.4以后内置支持Upstream Keepalive 配置。upstream http_backend {
server 127.0.0.1:8080;
keepalive 16;
}
server {
...
location /http/ {
proxy_pass http://http_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
...
}
}
页:
[1]