U
Une Bévue
in my httpd.conf i have :
LoadModule ruby_module libexec/httpd/mod_ruby.so
....
AddModule mod_ruby.c
and :
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options +ExecCGI
</Location>
# for rbx files
<Directory /Users/yt/Sites/*>
Options +ExecCGI
</Directory>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# # for Apache::ERubyRun
RubyRequire apache/eruby-run
#
# # handle files under /eruby as eRuby files by eruby.
<Location /eruby>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Location>
#
# # handle *.rhtml as eruby files.
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
# # for Apache::ERbRun
# RubyRequire apache/erb-run
#
# # handle files under /erb as eRuby files by ERb.
# <Location /erb>
# SetHandler ruby-object
# RubyHandler Apache::ERbRun.instance
# </Location>
# # for debug
#RubyRequire auto-reload
<IfModule mod_dir.c>
DirectoryIndex index.html index.rhtml
</IfModule>
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
</IfModule>
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 ?
LoadModule ruby_module libexec/httpd/mod_ruby.so
....
AddModule mod_ruby.c
and :
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options +ExecCGI
</Location>
# for rbx files
<Directory /Users/yt/Sites/*>
Options +ExecCGI
</Directory>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# # for Apache::ERubyRun
RubyRequire apache/eruby-run
#
# # handle files under /eruby as eRuby files by eruby.
<Location /eruby>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Location>
#
# # handle *.rhtml as eruby files.
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
# # for Apache::ERbRun
# RubyRequire apache/erb-run
#
# # handle files under /erb as eRuby files by ERb.
# <Location /erb>
# SetHandler ruby-object
# RubyHandler Apache::ERbRun.instance
# </Location>
# # for debug
#RubyRequire auto-reload
<IfModule mod_dir.c>
DirectoryIndex index.html index.rhtml
</IfModule>
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
</IfModule>
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 ?