proxy_set_header Connection "";

Robert Paprocki rpaprocki at
Fri Sep 30 16:19:01 UTC 2016

By default the Connection header is passed to the origin. If a client sends
a request with Connection: close, Nginx would send this to the upstream,
effectively disabling keepalive. By clearing this header, Nginx will not
send it on to the upstream source, leaving it to send its own Connection
header as appropriate.

On Fri, Sep 30, 2016 at 9:16 AM, Grant <emailgrant at> wrote:

> Does anyone know why this is required for upstream keepalive?
> - Grant
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list