Seth Brundle
3/30/2006 5:02:00 PM
As a mod_perl developer, I have been looking into Ruby/Rails lately.
I am a little confused as to what people are using for a production
webserver environment.
From what I understand, WEBBrick is an easy to use development environment
but not really robust enough for production use.
lighthttpd is fast but not as full featured or stable as apache.
mod_fastcgi is depricated for Apache 2.2 and not maintained.
Apache cgi seems to be the stable option, and ok for development, but I much
prefer having a persistant interpreter - especially since Rails seems to
have a lot of files to open on a request. I have a massive mod_perl site,
and nearly drove the disk into the ground by turning on Apache Reload All, I
had forgotten how much mod_perl had been holding up my server farm!
So I guess the two remaining options are mod_fcgid and mod_proxy_fcgid.
I tried mod_fcgid but couldnt get it to work. I got mod_fcgid to compile and
install with a patch for Apache 2.2, but when I test a cgi with it, it 404's
yet according to Apache's access and error logs the request was successful!
(!!!??)
Also, I couldnt find any documentation about anything special you need to do
to the CGI to make mod_fcgi or mod_fastcgi work - I noticed Perl has a FCGI
module - is that required? And does Ruby have an equivilent?
I havent tried mod_proxy_fcgid yet.
I would appreciate all input from anyone who is working with production
rails, and especially anyone who has mod_fcgid or mod_proxy_fcgid working in
Apache 2.2!
I cant find a lot of information about mod_ruby - what state is this project
in, and where can I find good documentation?
Thanks Ruby peeps!