From: David Harris Date: 2004-04-26T19:24:04+09:00 Subject: cant get mod-ruby working on apache2 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 " If I run it as a straight cgi script it runs fine.