Leopardでerubyを使用してrhtmlファイルを表示する。

/private/etc/apache2/users/userName.confの中身を下記のように変更


Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all


Options +ExecCGI
AllowOverride FileInfo AuthConfig Limit
AddHandler cgi-script .cgi .rb

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

apache2のCGIファイル(/Library/WebServer/CGI-Executables)にeRubyをコピーする。

apache2を再起動する。