Eruby and DirectoryIndex

I am having issues with .htaccess and DirectoryIndex pointing at
index.rhtml. Below, I have pasted the contents of the three pertintent

============ FILE CONTENTS: ===============
Action eruby-script /cgi-bin/eruby
AddHandler eruby-script .rhtml
DirectoryIndex index.rhtml

========== FILE CONTENTS: =============
echo “Content-type: text/html”
echo “”
exec /usr/local/bin/erb /home/mathwats/public_html/ruby${REQUEST_URI}

=========== FILE CONTENTS: ==============

This is index.rhtml

Time: <%= %>.

/usr/local/bin/erb:118:in `read’: Is a directory -
/home/domain/public_html/ruby/ (Errno::EISDIR)

  • Removing the third line “DirectoiryIndex index.rhtml” from .htaccess
    and navigating to <> gives me the “Index of /” directory
    listing page.

Any help would be very appreciated.

  • Matt