Hi,
I just installed mod_ruby1.2.5 with Apache 2.2.3 on Fedora Core 5
Linux. Triumphant, I downloaded this test script to my web root
(public_html/test.rbx)
#!/usr/local/bin/ruby
print “HTTP/1.0 200 OK\r\n”
print “Content-type: text/html\r\n\r\n”
print “Hello World!\r\n”
I restarted my web server but when I load the page in IE, I get
HTTP/1.0 200 OK Content-type: text/html Hello World!
and on Firefox …
HTTP/1.0 200 OK
Content-type: text/html
What is wrong? Below is what I added to my httpd.conf file …
LoadModule ruby_module /usr/local/apache2/modules/mod_ruby.so
On Linux (FC3) this becomes
LoadModule ruby_module /usr/lib/httpd/modules/mod_ruby.so
ClearModuleList
AddModule mod_ruby.c
RubyRequire apache/ruby-runExecute files under /ruby as Ruby scripts
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Execute *.rbx files as Ruby scripts
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Thanks, - Dave