lanying56123 发表于 2018-11-9 07:15:50

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]
查看完整版本: Nginx Upstream Keepalive 配置