FWIW, I don't have access to the Apache conf files on rubyxml.com, so directory-specific .htaccess files help out.

A typical file would have:

  <Files ~ "\.(rbx|rb)" >
   SetHandler cgi-script
  </Files>
  DirectoryIndex index.rbx  index.html

and the *.rbx & *.rb files just need the path to the ruby binary.
This lets me set what file extensions get treated as ruby CGI scripts, and lets me have a ruby script as the directory's index page.

Stuff like this is handy if you want to disguise how pages are served; invent a file extension, or force *.html files (or whatever)
to get processed as scripts.

(Unfortunately, these .htaccess files do not help performance ...)

You can also serve up Ruby-generated SVG files this way.  Set up a directory where anything ending in .svg gets processed as a ruby
script; just make sure they *are* ruby scripts.   The files may need to emit the correct content-type info.


James