[Mongrel] XSendFile in development environment

pedro mg seti at tquadrado.com
Fri Feb 29 10:57:55 EST 2008


unrelated, but on Lighttpd, I had to use
@headers['X-LIGHTTPD-Send-file']

-- 
pedro g

On 1/11/08, Steven Hansen <runner at berkeley.edu> wrote:
>
>
>  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 <jeremy at ibexinternet.co.uk> 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


More information about the Mongrel-users mailing list