Nginx has never had a problem setting X-Forwarded-For ever since I have been using it. Just use these settings as part of the config:
# needed for HTTPS only proxy_set_header X_FORWARDED_PROTO https; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; You can see a full config file for nginx/mongrel here: http://brainspl.at/nginx.conf.txt -Ezra On Dec 29, 2006, at 8:18 PM, Vishnu Gopal wrote: > Nginx cannot correctly set X-Forwarder-For headers right? Which means > all your requests seem to end up coming from localhost. Is this still > true or has something changed? > > Vish > > On 12/30/06, Zed A. Shaw <[EMAIL PROTECTED]> wrote: >> On Fri, 29 Dec 2006 17:12:13 -0800 >> "Eden Li" <[EMAIL PROTECTED]> wrote: >> >>> Apologies if this has been mentioned before, but is there an updated >>> comparison of all the different mongrel implementation methods out >>> there? >>> >>> I've been on lighty+pen+mongrel for awhile and I don't really see a >>> compelling to switch to nginx... unless someone else has experience >>> with both and can elaborate on the goodness of nginx vs lighty/ >>> pen... >> >> Well, nginx would be one component less than your current combo, >> and has a equally simple configuration. Unless you have a lighty >> specific component the lowered complexity would be a main motive. >> nginx also supports fcgi. >> >> Otherwise, if it ain't broke, don't fix it. >> >> -- >> Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu >> http://www.zedshaw.com/ >> http://www.awprofessional.com/title/0321483502 -- The Mongrel Book >> http://mongrel.rubyforge.org/ >> http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help. >> _______________________________________________ >> Mongrel-users mailing list >> Mongrel-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/mongrel-users >> > _______________________________________________ > Mongrel-users mailing list > Mongrel-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- [EMAIL PROTECTED] -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users