Mongrel + Lighttpd

Hi guys,

I’ve been chasing a problem in my web-stack: Lighttpd -> Mongrel ->
Rails, and found a problem with the interaction of Lighttpd and Mongrel.

If a request takes more than 5 seconds, Lighty will retry it - and
then the requests / responses get mixed up in Lighty and it returns a
bad response to the client. Not good.

I’m convinced that the problem is completely on the Lighttpd side.

Why I’m posting to the group:

  1. I was wondering if anyone has had success using Lighttpd’s 1.5.0
    mod_proxy_core to talk to pack of Mongrels. (Maybe there is a
    different setting I need in Mongrel or in Lighty)

  2. I’m also considering nginx and wanted to see if anyone recommended
    using this with Mongrel in a production environment. For me, a
    crucial capability is X-Sendfile (or something similiar).

Thanks for the help,
Pete

On Dec 17, 2007, at 5:42 PM, Pete DeLaurentis wrote:

I’m convinced that the problem is completely on the Lighttpd side.

Thanks for the help,
Pete

Nginx works much better then lighttpd for proxying to mongrels. Nginx
has X-Accell-Redirect which is basically same thing as X-Send_file.

Cheers-

We ditched apache for nginx (didn’t consider lighttpd as the ruby guys
on the team said the rails community had move away from it) and can’t
recommend it highly enough.

nginx has sendfile support, its slightly different to xsendfile,

http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/

Cheers

Dave

Hi Dave and Ezra,

Thanks for the advice. Time to start reading up on Nginx and X-
Accell-Redirect…

Cheers,
Pete

On Dec 17, 2007, at 6:23 PM, Dave C. wrote:

Dave

Nginx works much better then lighttpd for proxying to mongrels. Nginx
has X-Accell-Redirect which is basically same thing as X-Send_file.

Cheers-