Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 52b00ffa57d663a8f0ee3f3b40636d1f > files > 1

apache2-mod_ruby-2.0.44_1.0.6-1mdk.ppc.rpm

<IfDefine HAVE_RUBY>
  <IfModule !mod_ruby.c>
    LoadModule ruby_module    extramodules/mod_ruby.so
  </IfModule>
</IfDefine>

# taken from the example file
# If the ruby module is installed, this will be enabled.
<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>

  # 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
  #   Options ExecCGI 
  # </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
  #   Options ExecCGI 
  # </Location>

  # # for debug
  # RubyRequire auto-reload
</IfModule>