[Mongrel] Error : No protocol handler was valid for the URL...
ezmobius at gmail.com
Fri Dec 29 23:40:52 EST 2006
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;
You can see a full config file for nginx/mongrel here:
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?
> On 12/30/06, Zed A. Shaw <zedshaw at zedshaw.com> wrote:
>> On Fri, 29 Dec 2006 17:12:13 -0800
>> "Eden Li" <eden.li at gmail.com> wrote:
>>> Apologies if this has been mentioned before, but is there an updated
>>> comparison of all the different mongrel implementation methods out
>>> 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/
>> 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.awprofessional.com/title/0321483502 -- The Mongrel Book
>> http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
>> Mongrel-users mailing list
>> Mongrel-users at rubyforge.org
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
-- Ezra Zygmuntowicz
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
More information about the Mongrel-users