From: Justin Collins Date: 2006-07-15T09:09:52+09:00 Subject: Re: Configuring eruby with apache Eric DUMINIL wrote: > Hi everybody! > > Sorry if this not the right place to post, please tell me where I > should ask such a question if it's not the right place to post here. > > I just would like to enable .rhtml files to be automatically converted > by eruby using apache2, but I didn't managed to do it so far. > How did you succeed in doing so? > I use Ubuntu 6.06, with > eruby 1.0.5-1 > libapache2-mod-ruby 1.2.5-1 > ruby1.8.4 > apache2 2.0.55 > > Any success story corresponding to my configuration? > > Thanks for your attention, > > Eric. > Have you set up your httpd2.conf file? First, there has to be this up with the other modules: LoadModule ruby_module /usr/lib/apache2/mod_ruby.so Then, below, there is something like: #lots of other stuff here #just showing the stuff for .rhtml files # # for Apache::ERubyRun RubyRequire apache/eruby-run # handle *.rhtml as eruby files. SetHandler ruby-object RubyHandler Apache::ERubyRun.instance Does that help? -Justin