From: Dave Thomas Date: 2000-06-07T16:48:33-05:00 Subject: [ruby-talk:03169] Re: Doing CGI with Ruby & Apache Jilani Khaldi 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