Ruby on Rails
SCGI

DUMMY GUIDE TO INSTALL MODSCGI WITH SCGI_RAILS ON LINUX_

→ Ruby On Rails Using SCGI
“The SCGI Rails Runner (SRR) is a very small Ruby script for running Ruby On Rails for high-speed deployment of your applications in production. SRR is intended as a replacement for the ancient FastCGI code base and bring some big advantages to Rails deployment for production operations.”
(http://www.zedshaw.com/projects/scgi_rails/)
see also the more detailed version

scgi_rails
1. gem install cmdparse
2. gem install highline
3. wget http://www.zedshaw.com/downloads/scgi_rails/scgi_rails-0.4.3.gem
4. gem install scgi_rails-0.4.3.gem

mod_scgi
5. wget http://quixote.python.ca/releases/scgi-1.12.tar.gz
6. tar xzf scgi-1.12.tar.gz
8. cd scgi-1.12/apache2
7. apxs -i -c mod_scgi.c

apache2
http://www.zedshaw.com/projects/scgi_rails/apache.html
8. add this to httpd.conf
LoadModule scgi_module /usr/lib/apache/mod_scgi.so

example for a rails app (virtualhost):

SCGIMount /wiki/public/ 127.0.0.1:9999

<Directory /home/users/parasew/parasew.net/htdocs/wiki/public>
Allowoverride All
Options +FollowSymLinks
Order allow,deny
allow from all

<LocationMatch “/(stylesheets|images|javascripts).*$”>
SCGIHandler Off

have phun,