I only added "AddHandler fastcgi-script" to my .htaccess.
really? i needed to
....
LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir logs/fastcgi
....
....
ScriptAlias /fcgi-bin/ "/usr/local/httpd-2.0.47//fcgi-bin/"
....
....
<Directory "/usr/local/httpd-2.0.47//fcgi-bin">
AllowOverride All
Options None
Order allow,deny
Allow from all
SetHandler fastcgi-script
</Directory>
....
....
AddHandler fastcgi-script .fcgi
....
i suppose the only pertinent bits are the first and last ones... did you
compile the fastcgi module in statically? if not it would need loaded...
Even then it would be much faster.
yeah - for me, using
#!/usr/local/ruby-1.8.0/bin/ruby
require 'cgi'
require 'fcgi'
FCGI.each_cgi do |cgi|
content = ''
env = []
cgi.env_table.each do |k,v|
env << [k,v]
end
env.sort!
env.each do |k,v|
content << %Q(#{k} => #{v}<br>\n)
end
cgi.out{content}
end
i get around 20 requests per second from a very slow machine, uploading on a
cable connection, to a machine behind some serious pack sniffing software in a
government firewall... you've definitely got something wrong... are you
perhaps using the pure ruby fastcgi version? i seem to recall there is one...
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL ::
http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================