From: Michael Neumann Date: 2002-01-06T07:32:37+09:00 Subject: [ruby-talk:30310] Re: FastCGI - no go. Holden Glova wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I have no idea how to get this FastCGI module to work. More then > likely it is an Apache configuration issue. Here a small section of > my /etc/apache/httpd.conf file: > > # URIs that begin with /fcgi-bin/, are found in /var/www/fcgi-bin/ > Alias /fcgi-bin/ /var/www/fcgi-bin/ > > # Anything in here is handled as a "dynamic" server if not defined > as "static" or "external" > > SetHandler fastcgi-script > Options +ExecCGI > > > # Anything with one of these extensions is handled as a "dynamic" > server if not defined as > # "static" or "external". Note: "dynamic" servers require ExecCGI > to be on in their directory. > AddHandler fastcgi-script .fcgi .frb > > FastCgiServer /home/synack/public_html/fcgi/test.frb > > SetHandler fastcgi-script > > > > The example I used is the exact one given from the fastcgi.rb source > file. > > And I type this in my browser: > http://localhost/test.frb > > and I get an Internal Server Error with the following message in > /var/log/apache/error.log > > [Thu Jan 3 20:34:21 2002] [error] [client 127.0.0.1] FastCGI: > invalid (dynamic) server "/var/www/helloworld.frb": script not found > or unable to stat() > > Why is it referring to /var/www ? I thought my directives above > would change that? I cut and pasted most of the above from the > FastCGI website as their 'typical' configuration file. test.frb probably resides in directory /var/www/fcgi-bin. Your directives do not tell Apache that script test.frb can be found in /var/www. You must also place it there! However, this should work: http://localhost/fcgi-bin/test.frb Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de