From: Dick Davies Date: 2004-04-26T20:18:13+09:00 Subject: Re: cant get mod-ruby working on apache2 * David Harris [0425 11:25]: > Apache is treating my script as a text file rather than running > it.Permission are correct, ruby and mod-ruby are both > installed (according to apache diagnostics). > > ' > ##!/usr/bin/ruby > #print "HTTP/1.1 200 OK\r\n" > #print "Content-Type: text/plain\r\n\r\n" > puts "" > puts "" > puts "Test page" > puts "" > puts "" > puts "foobar" > puts "" > puts "" > ' > > My http.conf is the one specified by modruby.net: > > " > [snip] > # If the ruby module is installed, this will be enabled. > > # for Apache::RubyRun > RubyRequire apache/ruby-run > > # exec files under /ruby as ruby scripts. > # > # SetHandler ruby-object > # RubyHandler Apache::RubyRun.instance > # Options ExecCGI > # > > # exec *.rbx as ruby scripts. > > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > # Options ExecCGI ^^^ Why is this uncommented? > > > " > > If I run it as a straight cgi script it runs fine. -- When you make your mark in the world, watch out for guys with erasers. -- The Wall Street Journal Rasputin :: Jack of All Trades - Master of Nuns