From: Daniel Sheppard Date: 2007-02-01T15:19:29+09:00 Subject: Re: Can't get Apache2 to i interpret my ruby file http://httpd.apache.org/docs/1.3/howto/cgi.html > -----Original Message----- > From: laredotornado@zipmail.com [mailto:laredotornado@zipmail.com] > Sent: Thursday, 1 February 2007 3:55 PM > To: ruby-talk ML > Subject: Can't get Apache2 to i interpret my ruby file > > Hi, > > I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I > created this file, "test.rb" at my public document root > > #!/usr/local/bin/ruby > print "Content-type: text/html\r\n\r\n" > print "Hello everybody!!!!\r\n" > > and when i visit http://mydomain.com/test.rb, the output is > > #!/usr/local/bin/ruby > print "Content-type: text/html\r\n\r\n" > print "Hello SAm and Lisa!!!!\r\n" > > That's right, it's just the same file. So my question is, what > directives to I need to add to my "httpd.conf" file to make this file > interpret? I am surprised by how little documentation there is on how > to do this. > > Thanks, - Dave > > >