From: Roger Pack Date: 2008-04-29T01:24:23+09:00 Subject: Re: Apache2 conf and mod_ruby (mac os x 10.4.11) I'm not too familiar with it, but it may be an additional Option you need to add or an AddHandler. -R On Mon, Apr 28, 2008 at 6:00 AM, Une Bévue wrote: > > in my httpd.conf i have : > > LoadModule ruby_module libexec/httpd/mod_ruby.so > ... > AddModule mod_ruby.c > > > and : > > # for Apache::RubyRun > RubyRequire apache/ruby-run > > # exec files under /ruby as ruby scripts. > > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > Options +ExecCGI > > > # for rbx files > > Options +ExecCGI > > > # exec *.rbx as ruby scripts. > > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > > > # # for Apache::ERubyRun > RubyRequire apache/eruby-run > # > # # handle files under /eruby as eRuby files by eruby. > > SetHandler ruby-object > RubyHandler Apache::ERubyRun.instance > > # > # # handle *.rhtml as eruby files. > > SetHandler ruby-object > RubyHandler Apache::ERubyRun.instance > > > # # for Apache::ERbRun > # RubyRequire apache/erb-run > # > # # handle files under /erb as eRuby files by ERb. > # > # SetHandler ruby-object > # RubyHandler Apache::ERbRun.instance > # > > # # for debug > #RubyRequire auto-reload > > > DirectoryIndex index.html index.rhtml > > > AddType application/x-httpd-eruby .rhtml > Action application/x-httpd-eruby /cgi-bin/eruby > > > > > however any attempt to read a *.rbx or *.rhtml gave me the text content > of the script itself. > > i've checked the syntax of httpd.conf, according to apachectl -t, it is > correct. > > i'm running Mac 0S 10.4.11 with : > ruby 1.8.6 (2007-09-24 patchlevel 111) [powerpc-darwin8.11.0] > eRuby version 1.0.5 > > how could i debugg this stuff ? > -- > Une Bévue > >