Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to use nginx to serve as the proxy on our existing host when we migrate to a new server/ip address. Everywhere I've been says to use nginx for its speed.

However the documentation appears to be nearly non-existent. Lots of application guides, but nothing in depth on the nginx wiki for:

  • syntax
  • the set command

If it's any interest, I'm looking specifically to learn how to send requests to the new host so that it knows what the original host requested was. Possibly via a new header, possibly by setting a query string param.n

share|improve this question
I think you might be confused. The set command is incredibly simple and very rarely used. For proxying decumentation you should check the proxy_pass directive, which should (ought to) talk a bit about passing headers. For syntax see the primer linked on the Configure page. – Martin Fjordvald Nov 27 '10 at 5:50

Would this help? - note the add_header

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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