proxy_set_header Connection "";

Grant emailgrant at gmail.com
Fri Sep 30 16:24:36 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.


That makes perfect sense.  Is there a way to test if keepalive is
active between nginx and the upstream server?

- Grant


>> Does anyone know why this is required for upstream keepalive?
>>
>> - Grant



More information about the nginx mailing list