So the Nginx documentation says this http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
For HTTP, the proxy_http_version directive should be set to “1.1” and the “Connection” header field should be cleared:
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 "";
...
}
}
But does it also apply for HTTPS/HTTP2 because proxy_http_version gets set to 1.1 ?
Example :
upstream https_backend {
server 127.0.0.1:443;
keepalive 16;
}
server {
listen 443 ssl http2;
location /https/ {
proxy_pass https://https_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
}
http://www.networkflare.com/