Can't get mod_ruby to work
Arnold Daniels <[email protected]> Thu, 15 Nov 2007 16:10:25 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm trying to use mod_ruby to serve a Ruby On Rails application. The applications currently works with dispatch.cgi. I'm running Ubuntu Gutsy and installed ruby, mod_ruby and rails using apt-get. This package only comes with a ruby.load configuration file, which loads mod_ruby, but does nothing more. I've created a ruby.conf file, based on the information on the site. However as soon as I add 'RubyRequire apache/ruby-run', the server stops responding. It accepts the connection, but never handles the request. This is not only for ruby scripts, but for all requests, even for static content. I do not get any report in the error log. Does this make sense to someone? I can't retrieve info, so I'm stuck. Any help would be highly appreciated. Best regards, Arnold Daniels ------------------- root@arnold-laptop:/var/log/apache2# apache2 -v Server version: Apache/2.2.4 (Ubuntu) Server built: Oct 7 2007 22:17:24 root@arnold-laptop:/etc/apache2/mods-enabled# cat ruby.load LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so root@arnold-laptop:/etc/apache2/mods-enabled# cat ruby.conf <IfModule mod_ruby.c> RubyRequire apache/ruby-run # Execute files under /ruby as Ruby scripts # <Location /ruby> # SetHandler ruby-object # RubyHandler Apache::RubyRun.instance # </Location> # Execute *.rb files as Ruby scripts <Files *.rb> SetHandler ruby-object RubyHandler Apache::RubyRun.instance </Files> </IfModule>