Configure rails on apache2 without virtual host

Hi, all:

I try to configure rails application on apache2 on fedora box without
using virtual host.

I can’t make it run correctly after following some ‘hints’ from the web.

Following is what I have done:

  • Apache2 already run well;
  • mod_fcgid installed by source;
  • ruby fcgi installed by source;
  • test ok using some sample test.fcgi

I guessed something wrong with the configuration of .htaccess file,
my question is how can I configure the RewriteBase and those
RewriteRules, say my rails application is on “localhost/rails_app/”?

Thank you