Hi,

Kent, you have been very helpful for us Windows users by putting
together mod_ruby and fastcgi in an easy to install package. Thank you
very much for that. It's like a dream coming true (ok Ruby web support
on Windows.)

Thank you. I hope you can keep it going until the community pick it up. :-)

Cheers,
Joao

On Fri, 17 Dec 2004 04:42:11 +0900, Kent Sibilev <ksibilev / bellsouth.net> wrote:
> Oh, This is quite easy. I assume you have Ruby and RubyForApache
> installed.
> 
> 1. Edit Apache's httpd.conf file by adding the following:
> 
> LoadModule fastcgi_module modules/mod_fastcgi.so
> 
> <IfModule mod_fastcgi.c>
>    AddHandler fastcgi-script .fcgi
> </IfModule>
> 
> 2. Create test.fcgi file in (for example) c:\Program Files\Apache
> Group\Apache2\cgi-bin directory with this content:
> 
> #!c:\ruby\bin\rubyw.exe
> require 'fcgi'
> counter = 0
> FCGI.each_cgi('html3') do |cgi|
>    counter += 1
>    cgi.out {
>      cgi.html {
>        cgi.body {
>          cgi.h1 { "Hello World!" } +
>          cgi.p { "Counter: #{counter}" }
>        }
>      }
>    }
> end
> 
> 3. Hit http://localhost/cgi-bin/test.fcgi
> 
> Cheers,
> Kent.
> 
> On Dec 16, 2004, at 1:47 PM, Sarah Tanembaum wrote:
> 
> > How do you test if fastcgi is working? I know that the apache loaded
> > the  fastcgi modules correctly. Now, how do you configure fastcgi in
> > Apache2 so it will work with ruby. Using just standard cgi, I can run
> > ruby.cgi with no probs, except the startup time a bit longer than
> > usual.
> >
> > Thanks.
> >
> 
>