Running a rails app from a directory instead of a sub domain

Hey guys,
I’d like to be able to run a rails app from a directory instead of a
sub-domain (in Apache). I haven’t been able to find any resources on
the web describing how to do this.

I was wondering if anybody has any experiences doing this, or can at
least point me towards some resources that could tell me how this is
done.

Thanks,
Mike

See my articles here:

http://www.napcs.com/howto/rails/deploy/

They are centered on Windows deployment. However, the articles

Serving Multiple Rails Applications on Windows with Apache and Mongrel
and
Integrate Rails into an Existing IIS Web infrastructure using Apache and
FastCGI

both have configurations for Apache that will do exactly what you are
looking to do.

If you’re running Lighttpd, you can use something like this:

http://blog.lighttpd.net/articles/2005/11/23/lighttpd-1-4-8-and-multiple-rails-apps

You might find, however, as I did, that I want to skip the
“strip-request-uri” line in the config file, and instead include
something like this in routes.rb:

ActionController::AbstractRequest.relative_url_root = “/app_name”

Good luck,
Asa