From: Tobin Harris Date: 2005-05-04T19:45:01+09:00 Subject: Re: mod_ruby and Rails configuration files I'm not expert at Apache + Rails, but I've seen enough of the docs to point you in the right direction possibly. Have you tried the following? http://wiki.rubyonrails.com/rails/search/?query=apache Hope this helps Tobin "Andrew Arnott" wrote in message news:1115177581.832307.169020@f14g2000cwb.googlegroups.com... >I walked through Curt Hibbs' tutorial > (http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1) for > Ruby on Rails and was very impressed. So far though, I've only gotten > my Rails web site running through WEBrick. I'd like to get it running > through Apache. I have mod_ruby installed, and Apache's configuration > files now get Apache to correctly handle *.rhtml pages through eRuby. > But I haven't been able to figure out the Apache configuration to get > my Rails cookbook/recipe app to run from within Apache. > > Below is the configuration section relevant to the discussion. Can > anyone please tell me what I am doing wrong, and how I can get Rails > running through Apache? (I believe I'm running the latest ruby and > rails available--from Gentoo Portage) > > Thanks in advance. Configuration follows. > > LoadModule ruby_module ../apache2-extramodules/mod_ruby.so > > # Ruby scripts (.rbx) support > > RubyRequire apache/ruby-run > > # Execute *.rbx files as Ruby scripts > > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > > > > # eRuby (.rhtml) support > > RubyRequire apache/eruby-run > > # Handle *.rhtml files as eRuby files > > SetHandler ruby-object > RubyHandler Apache::ERubyRun.instance > > > > Alias /cookbook "/home/ala55/rails/cookbook/public" > > Order allow,deny > Allow from all > > Options ExecCGI > SetHandler ruby-object > RubyHandler Apache::RubyRun.instance > >