On Thu, 2 Nov 2006 08:25:41 -0600
"Joey Geiger" <[EMAIL PROTECTED]> wrote:

> Whoops,
> I removed the line below.
> proxy_set_header         X-Forwarded-For $proxy_add_x_forwarded_for;
> 
> I believe what was happening, was that apache was proxying the request
> to nginx, and adding the x_forwarded_for as the real ip (192.168.1.21)
> then, nginx was passing the proxy request to mongrel, and was adding
> the ip that it was forwarding for (127.0.0.1) so the address that was
> passed to REMOTE_ADDR ended up as 192.168.1.21, 127.0.0.1.

Uh, why do you have apache->nginx->mongrel when you can just do nginx->mongrel 
instead?

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://safari.oreilly.com/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to