9

I'm just starting on NGINX, and I have seen in several example configs that people use

proxy_pass_header    Server;

when proxy-ing the request to an upstream server? What exactly does it do here? What are the possible use cases?

7

It's telling the nginx service to pass the upstream's Server header instead of putting its own in the response. It's essentially cosmetic.

3

This is required for compliance with HTTP/1.1 which states that Server is an origin header:

If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header. Instead, it SHOULD include a Via field

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.