On 7 Apr 2009, at 17:52, Alberto Perdomo wrote:

>
>> That but use X-Sendfile or X-accel-redirect: this makes apache/nginx
>> send the file, rather than funnelling it through ruby. All your rails
>> controller does (assuming the person is  authorized) is set a header
>> in the response saying 'send them this file')
>
> How does X-Sendfile behave when turned on and using mongrel for
> development on the local machine?
> Will mongrel serve the file or not?

Mongrel will ignore that. Personally I run via apache in development,  
so it all works as in production
>
> Maybe it makes sense to turn X-Sendfile off in config/environments/
> development.rb to have mongrel serve the files when developing?

Sounds reasonable if it doesn't match your development setup.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to