I'm trying to proxy_pass_header Connection;
to my node.js server.
But my response header getting overwritten Connection : keep-alive
Even when I explicitly changed the Connection : close
.
What I'm doing wrong?
That is because you have nginx in front and that will respond based on its own settings. You should use below directive in your nginx conf if you don't want to keep connection alive
keepalive_timeout 0;