Amrita and mod_ruby?

L

Lloyd Zusman

As of a year or so ago, the excellent amrita package did not work under
mod_ruby. Does anyone know if there's now a more recent version of
amrita that indeed will function in the mod_ruby environment?

The wiki at the amrita site seems to be down, so I can't ask this
question there.

Thanks in advance.
 
G

Guillaume Marcais

As of a year or so ago, the excellent amrita package did not work under
mod_ruby. Does anyone know if there's now a more recent version of
amrita that indeed will function in the mod_ruby environment?

The wiki at the amrita site seems to be down, so I can't ask this
question there.

Thanks in advance.

From Amrita (1.0.2) RDoc documentation:

using amrita-script under mod_ruby

LoadModule ruby_module /usr/lib/apache/mod_ruby.so
Alias /amrita/cgi-bin/ /home/tnaka/cvswork/amrita/sample/cgi/
RubyRequire amrita/handlers
SetEnv AmritaCacheDir /tmp/bookmark
<Files *.ams>
Options ExecCGI
SetHandler ruby-object
RubyHandler Amrita::AmsHandler.instance
</Files>


So I guess it does.

Guillaume.
 
L

Lloyd Zusman

Guillaume Marcais said:
As of a year or so ago, the excellent amrita package did not work under
mod_ruby. Does anyone know if there's now a more recent version of
amrita that indeed will function in the mod_ruby environment?

[ ... ]

From Amrita (1.0.2) RDoc documentation:

using amrita-script under mod_ruby

LoadModule ruby_module /usr/lib/apache/mod_ruby.so
Alias /amrita/cgi-bin/ /home/tnaka/cvswork/amrita/sample/cgi/
RubyRequire amrita/handlers
SetEnv AmritaCacheDir /tmp/bookmark
<Files *.ams>
Options ExecCGI
SetHandler ruby-object
RubyHandler Amrita::AmsHandler.instance
</Files>


So I guess it does.

Guillaume.

I forgot to mention that I'm talking about Apache 2.0.x, where the exact
example that you mention here did not work last year.

However, upon retrying this with the latest mod_ruby, it does indeed
work now. The Amrita version 1.0.2 is the same one I tested before, so
the problem must have been in the old mod_ruby code interacting with
Apache 2.0.x. Other ruby code ran last year under
mod_ruby/Apache-2.0.x, but not amrita.

But now, all is well.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top