How TextDrive does both PHP and Rails FCGI in one thing-a-ma-bob
fastcgi.server = (
".fcgi" =>
( "localhost" =>
(
"socket" => "/tmp/textdrive-new.socket",
"bin-path" => "/users/home/website/web/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" => "production" )
)
),
".php" =>
( "localhost" =>
(
"socket" => "/tmp/textdrive-php5-fcgi.socket",
"bin-path" => "/usr/local/www/cgi-bin/php5-fcgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "5000"
)
)
)
)