> I have installed fcgi-ruby extension, and I tried this little example:
> 
> #!/usr/local/bin/ruby
> require "fcgi"
> 
> FCGI.each_request do |req|
>   puts "Content-type: text/html\n\n"
>   puts "<html><body><ul>"
>   ENV.each {|k,v| puts "<li><b>#{k}: </b> #{v}</li>" }
>   puts "</ul></body></html>"
> end
> 
> but I get this error: "Internal Server Error ..."
> 
> What's wrong with it?
> 
> Thanks.
> 
> ps
> Ruby-1.6.2 on Linux with fast-cgi module installed and works fine with
> examples written in C.
I have just changed the extension of the scrips ".rb" to ".cgi" and it
is working now.