# Apache/FastCGI with Ruby on Windows

**URL:** <https://rubytalk.org/t/apache-fastcgi-with-ruby-on-windows/7678>\
**Category:** ruby-talk\
**Created:** [28 August 2003 17:35 UTC](https://rubytalk.org/t/apache-fastcgi-with-ruby-on-windows/7678 "2003-08-28T17:35:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Youngblood3](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@Carl\_Youngblood3](https://rubytalk.org/u/Carl_Youngblood3)\
**Post date:** [28 August 2003 17:35 UTC](https://rubytalk.org/t/apache-fastcgi-with-ruby-on-windows/7678/1 "2003-08-28T17:35:40Z")

</div>

I’ve compiled fastcgi support into my windows version of Ruby (1.6.8),  
and I’ve compiled Apache 2.0 for Windows with support for the fastcgi  
module. Now I’m trying to test it and see if I can run a simple fastcgi  
ruby script. I got a sample script from Ara Howard that seems to work  
fine when I run it in offline mode from the command line. However, when  
I try to pull it up in a browser Apache can’t do it. Here is the error  
line in the Apache log:

[Thu Aug 28 11:02:55 2003] [crit] (OS 193)%1 is not a valid Win32  
application. : FastCGI: can’t start (dynamic) server  
"C:/Apache2/htdocs/pt/fcgiapp.rb": spawn\_fs\_process() failed

It seems to be calling fastcgi correctly, but for some reason it doesn’t  
recognize the ruby script as a win32 app. In case it is helpful, here  
is my httpd.conf directive for this subdir:

\<Location /pt\>  
SetHandler fastcgi-script  
Options +Indexes +ExecCGI

Any input would be greatly appreciated. Has anyone else gotten  
apache/fastcgi/ruby working on windows or am I entering uncharted  
territory here?

Many thanks,  
Carl Youngblood
