Re: Having trouble with mod_ruby on OpenBSD 3.3
Adam Olsen <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Shugo, Yeah, I have it working on my Debian machine too - just not the OpenBSD box. The version of Apache is Apache/1.3.27. Here are the relavent sections of my httpd.conf: LoadModule ruby_module /usr/lib/apache/modules/mod_ruby.so <IfModule mod_ruby.c> RubyRequire apache/ruby-run # Excucute files under /ruby as Ruby scripts <Location /ruby> SetHandler ruby-object RubyHandler Apache::RubyRun.instance </Location> # Execute *.rbx files as Ruby scripts <Files *.rbx> SetHandler ruby-object RubyHandler Apache::RubyRun.instance </Files> </IfModule> <IfModule mod_ruby.c> RubyRequire apache/eruby-run # Handle files under /eruby as eRuby files <Location /eruby> SetHandler ruby-object RubyHandler Apache::ERubyRun.instance </Location> # Handle *.rhtml files as eRuby files <Files *.rhtml> RubyRequire apache/eruby-run SetHandler ruby-object RubyHandler Apache::ERubyRun.instance </Files> </IfModule> Thanks for your help, Adam Olsen Shugo Maeda wrote: >Hi, > >At Tue, 23 Dec 2003 21:55:53 -0700, >Adam Olsen <[email protected]> wrote: > > >>I just installed ruby 1.8, mod_ruby 1.0.7, and eruby 1.0.5 on my OpenBSD >>3.3 box (all compiled from source in the order: ruby, mod_ruby, eruby). >>Ruby scripts run by themselves, but an attempt to run an eruby script >>fails. The script only containts this: >> >><% >> print "Hello World" >>%> >> >>I get an "Internal Server Error" when trying to hit it with my browser. >>The log says this: >> >>[Tue Dec 23 21:39:55 2003] [error] mod_ruby: error in ruby >>(eval):45: (eval):45:in `instance': wrong argument type Proc (expected >>Data) (TypeError) >> from (eval):45:in `value' >> >> > >Sorry, I couldn't reproduce the problem on my Debian machine. >Can you tell me the version of Apache and show me your httpd.conf? > >Shugo > > >