I create this file to set fcgi configuration, but I don't know where is it called from in php-fcgi.conf case for example.
#ruby-fcgi.conf
Server = cgi-fcgi -start -connect :2005 /var/www/rails/app/public/dispatch.fcgi
php-fcgi.conf is used by php-fcgi, which comes with Hiawatha. php-fcgi is a tool to start PHP as a FastCGI daemon. ruby-fcgi.conf is not used by Hiawatha, but I will think of something to support FastCGI programs other that PHP.
For now: you'll have to start cgi-fcgi manually.
#httpd.conf
FastCGIserver {
FastCGIid = RUBY
ConnectTo = localhost:2005
Extension = rb
SessionTimeout = 30
}
VirtualHost {
Hostname = www.app.dev
WebsiteRoot = /var/www/rails/app/public
StartFile = dispatch.fcgi
AccessLogfile = /usr/local/var/log/hiawatha/access.log
ErrorLogfile = /usr/local/var/log/hiawatha/error.log
ExecuteCGI = yes
FastCGI = RUBY
}
This looks good, but maybe you want to add 'fcgi' to the Extension in the FastCGIserver block:
FastCGIserver {
...
Extension = rb, fcgi
}
Note that the SessionTimeout is only necessary when you use more than one ConnectTo parameter (load balanced FastCGI), but it will not harm if you don't (it will be ignored by Hiawatha in this configuration).
I really like to know what you think of Hiawatha. Things you like and especially things you don't like. So I can improve Hiawatha. Please give me some feedback about your Hiawatha experiences. Thanks in advance.