Ruby on openSUSE 12.1
Options +ExecCGI
RubyRequire apache/ruby-run
#RubySafeLevel 0
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
in the vhost results in a 403 Forbidden error with the error "[error] access to /srv/www/example.com/web/hello_world.rb failed for (null), reason: Options ExecCGI is off in this directory" in the error log, while
<IfModule mod_ruby.c>
<Directory /srv/www/example.com/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
works (/srv/www/clients/client0/web1/web vs. /srv/www/example.com/web).