[Rails] Re: Re: routing failures

Craig White
2006-02-15T16:58:54Z

On Wed, 2006-02-15 at 11:13 +0100, Alan Francis wrote:
> 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)
----
Gotcha - it worked

Thanks a lot...

Craig