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 have a setup where I'm looking at running nginx behind a varnish cache. I currently use apache instead of varnish and use x-forwarded-for to have apache tricked into thinking the remoteip is the client ip address and not the proxy address.

I've been trying to google if this is possible with nginX, but so far I've not found any solid leads. Please tell me it is indeed possible!

share|improve this question
up vote 4 down vote accepted

This sounds like it:

share|improve this answer
There is a link in the answer. – iny May 6 '11 at 11:41

Your Answer


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