Rails at a different document root?

Hi,

I need my Rails app to not create internal URLs that begin with “/”,
but rather something like “/rails”. Does anyone know where this would
be configured?

Basically, I’m building a setup with Rails behind Apache, and Apache
using mod_proxy to route requests to the Rails server instance. So
for example, Apache is doing this:

https://server/rails —> http://localhost:3000

Thanks,
Robb

You can also look a Mongrels prefix setting to get your app running
under a /something url.

Would work great with mod_proxy

RewriteEngine On
RewriteRule ^/my_app1(.*)$ http://localhost:8000%{REQUEST_URI}
[P,QSA,L]

this in you mongrel_config.yml

prefix: /my_app1
port: “8000”
environment: production
address: 127.0.0.1

Hmm. This appears to answer my question:

Peak Obsession