Forum: Ruby eruby and DirectoryIndex

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0c629fe26befb7804ac7ffe393cb8285?d=identicon&s=25 Matt W. (mwatson)
on 2014-06-13 16:54
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 "<!DOCTYPE HTML>"
exec /usr/local/bin/erb /home/mathwats/public_html/ruby${REQUEST_URI}

=========== FILE CONTENTS: ==============
    <h1>This is index.rhtml</h1>
    Time: <%= %>.<br />

* Nagivating straight to <> outputs the
contents of index.rhtml just fine.

* Navigating to <> simply gives me a blank page, and the
server logs the following error

 > /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
This topic is locked and can not be replied to.