Left Over
Left Over

Reputation: 251

Nginx proxy_pass_header

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?

Upvotes: 0

Views: 1364

Answers (1)

Tarun Lalwani
Tarun Lalwani

Reputation: 146510

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;

Upvotes: 1

Related Questions