Jilani Khaldi <jilanik / tin.it> writes:

> > Ruby comes with a CGI library that makes doing this easier--it handles
> > parsing the request, formatting the reply, forms, cookies, sessions
> > and the like.
> 
> I have written this simple example:#!/usr/local/bin/ruby
> print "contex-type: text/plain\n\n"
> print "Hello Ruby...!\n"
> 
> I named it simple.rb and put it in /../cgi-bin
> When I call it from the browser I receive this message:
> ===
> Forbidden
> You don't have permission to access /cgi-bin/simple.rb on this server.
> ===

I assume that inthe real file your have 'content-type'.

Did you make the file executable, and does it run when you type
./simple.rb in the cgi-bin directory?

What's in the log/error file?


Dave