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


See my articles here:

They are centered on Windows deployment. However, the articles

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

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:

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,