Alex Barlow <[email protected]> wrote: > Fixed it! > > Rails was considering all requests to be local. As the request was > coming from the local ip (from nginx i assume)
Awesome. Good to know, I've been setting these headers for so long that it's become second nature and I've forgotten about side effects with Rails error messages :x > i put these headers in nginx > > proxy_set_header X-Real-IP $remote_addr; You probably don't need X-Real-IP, actually, it's quite nginx-specific and X-Forwarded-For covers you. > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; > > proxy_set_header Host $http_host; > > proxy_redirect false _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
