For what it's worth, I have a method that handles the logic for sending 
the file.  If the rails environment == 'production' it just sets the 
headers to trigger apache x_send_file.  Otherwise I just use the default 
sendfile that comes with rails...

-Steven


Alex Egg wrote:
> I believe this functionality doesn't exist in mongrel.
>
> On Jan 8, 2008 9:20 AM, Jeremy Wilkins <[EMAIL PROTECTED]> wrote:
>   
>> Hi
>>
>> I'm currently trying to use X-Sendfile to take some load off my rails
>> app, unfortunately in my development environment mongrel is happily
>> passing through the x-sendfile header, presumably for the (non-
>> existant) proxy to handle the header.
>>
>> Is there some way to make mongrel process the x-sendfile header itself?
>>
>> Thanks
>>
>> jebw
>> _______________________________________________
>> 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
>   

_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to