[Rails] Re: Re: routing failures

Alan Francis
2006-02-15T10:13:31Z

Craig White wrote:

> I had uncommented this line...
>
> #   RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>
> as I am certain that one of the instruction pages had told me to
> uncomment it...and of course, commenting it out once again and
> restarting apache seems to have fixed it.

Hi Craig,

By commenting back out again, you''re using cgi for Rails instead of
fcgi.  If you want fastcgi instead of cgi, instead of uncommenting that
line, change that last rule in the block from dispatch.cgi to
dispatch.fcgi.

I suspect there must be an order dependency and by cuncommenting the
line above the rest of the rules, you route EVERYTHING to the FCGI
instead of passing through the index.html / *.html / filesystem rules
before finally routing to rails.

Does that make sense ?

I''m suspecting that the dispatch line must be last (whether or not
it''s
for cgi or fcgi)

A.


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