# How do I deploy a rails app in a subdirectory using mod\_rails?

**URL:** <https://www.ruby-forum.com/t/how-do-i-deploy-a-rails-app-in-a-subdirectory-using-mod-rails/157857>\
**Category:** Rails\
**Created:** [January 16, 2009, 1:43am UTC](https://www.ruby-forum.com/t/how-do-i-deploy-a-rails-app-in-a-subdirectory-using-mod-rails/157857 "2009-01-16T01:43:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaphi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e274bd/32.png) [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Post date:** [January 16, 2009, 1:43am UTC](https://www.ruby-forum.com/t/how-do-i-deploy-a-rails-app-in-a-subdirectory-using-mod-rails/157857/1 "2009-01-16T01:43:43Z")

</div>

Hello,

I’m launching a small web app that my client wants deployed to  
[domain.com/app](http://domain.com/app). They don’t want to do a subdomain. I am trying to  
figure out how to set the vhost file to tell mod\_rails that [domain.com/](http://domain.com/)  
app is a rails app without effecting the regular website. Any  
suggestions?

Thank you.
