Skip to content


Deploying Rails Application to a Subdirectory

If you’re using mongrel and want to deploy Rails to a subdirectory instead of a sub/domain (example.com/my_app instead of my_app.example.com or my_app.com), then you can use --prefix=/my_app in your mongrel startup command. Then using Apache as a proxy, ProxyPass /my_app http://localhost:3000/my_app

Posted in Uncategorized.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Tamer,

    Funny… I was searching for exactly this last night, and Google pointed me to your website. Nice post!

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.