Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

Would this help?

http://wiki.nginx.org/HttpHeadersModule - note the add_header

share|improve this answer

Your Answer

 
discard

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.