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 ( instead of or, 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. Scott Wolff says


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

Some HTML is OK

or, reply to this post via trackback.