Forum: Ruby on Rails How does lighttpd/fcgi/rails work?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Paul B. (Guest)
on 2006-05-07 17:10
(Received via mailing list)
I'm trying to understand how the lighttpd/fcgi/rails process works.  It
seems like there are two ways to start lighttpd for:

1.  script/server (only starts lighttpd if you have lighttpd in your
otherwise starts webrick)

2.  lighttpd -f /path/to/lighttpd.conf

It seems like #1 is for development and #2 is for production, but I
actually know what the difference between the two is.  I think in either
case, somebody stop me if I'm wrong, there will be a lighttpd process
running and a ruby process running (which is rails).  The lighttpd
talks to the ruby process using fcgi.  Is that correct?  And is that
the case with method #1?

In method #2, how does the ruby process get started?  By lighttpd?

And for extra credit, how does it work if you use Apache/fcgi, same as

Dave T., if you're listening, it would be great if the Deployment
section of AWDwR2 included this :)
This topic is locked and can not be replied to.