6 messages in ru.sysoev.nginxSetting remote addr to contents of he...
FromSent OnAttachments
Paul DlugApr 15, 2009 3:37 pm 
Maxim DouninApr 15, 2009 3:52 pm 
Paul DlugApr 15, 2009 9:51 pm 
Anton YuzhaninovApr 16, 2009 12:38 am 
Maxim DouninApr 16, 2009 1:19 am 
Paul DlugApr 16, 2009 1:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Setting remote addr to contents of headerActions...
From:Paul Dlug (paul@gmail.com)
Date:Apr 15, 2009 3:37:13 pm
List:ru.sysoev.nginx

I'm running nginx beyind a L7 proxy (haproxy), I have haproxy setting the X-Forwarded-For header and I'm using this to log the real IP of the client and pass it to other processes that I'm proxying with nginx (mongrels, apache, etc.). This works just great but I would like to be able to use nginx directives to control access (allow, deny, etc.). These don't work since nginx itself sees the remote_addr as the IP of the haproxy server.

Any suggestions? I would think a solution like mod_rpaf for apache would be ideal.

Thanks, Paul