Cool, thanxs for your support and great software.

I get about 40 requests per second on a 1.7 gb instance with the db on the same 
host. Thats awesome!

Well, i think so..

Alex

On 17 Feb 2010, at 23:35, Eric Wong wrote:

> 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

Reply via email to