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 "";
        }
    }

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,272601,272601#msg-272601

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to