[Rails] Re: scgi apache routes help needed

Dennis Wilson
Fri, 20 Jan 2006 09:24:14 -0000

Kelly Dwight Felkins wrote:

>    1. httpd.conf
- setting up a new directory section
- define the SCGI Mountpoint in it
- additionally add some alias commands to it, so you''ll be able to
access the _public_ directory of your rails application

>    2. myapp/public/.htaccess
There''s nothing to change here, since SCGI doesn''t access the
dispatcher
by apache.

>    3. myapp/config/routes.rb
- when you application is designed to be located at the servers root,
then you probably have to add the directory prefix to you routes like
this

  PREFIX = ''/myapp/''
  map.connect PREFIX + '':controller/:action/:id''

You also should have a look to my website. I''ve written a how-to(1)
about apache + ror + mod_scgi (currently german only, sorry). Perhabs
the listings may help you.

Best regards,
Dennis Wilson

(1)
http://www.knowdennis.de/show/projekte__%26__arbeiten/dokumente/rails__on__scgi

--
Posted via http://www.ruby-forum.com/.