# Is it possible to have nested rails apps for completely diff

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871>\
**Category:** Rails\
**Created:** [February 26, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871 "2007-02-26T16:51:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [February 26, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871/1 "2007-02-26T16:51:07Z")

</div>

OK,

I have a host (A2 Hosting) that allows me to point different domains  
at sub-folders for sub-domain hosting. I’d like to be able to run  
diferent rails apps in each of those folders and one in the root also.  
I figure I just need to make sure that the first url framgment never  
has the name of a sub-folder/site set as a route name.

Any advice for me? It’s Mongrel and I seriously don’t know much about  
that. Is this even possible?

- matt

---

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [February 26, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871/2 "2007-02-26T17:18:19Z")

</div>

I don’t think it would be a problem to use a subdomain-name as a route:

If someone hits [bob.mysite.com](http://bob.mysite.com), the host will route the web-request to  
the  
application at /bob  
If someone hits [www.mysite.com/bob](http://www.mysite.com/bob), it will route the request to the  
application at , and pass /bob to the routing mechanism.

I don’t see where you’re going to run into routing problems.

---

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [February 26, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871/3 "2007-02-26T22:28:10Z")

</div>

Not sure, I have no experience with deployment of this nature.  
The only advice I can give you is to try out the Rails Deployment  
group/list/forum… it can be found online at  
[http://www.ruby-forum.com/forum/23](http://www.ruby-forum.com/forum/23)

---

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [February 26, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871/4 "2007-02-26T22:31:11Z")

</div>

Thank you.

Matt

---

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [February 26, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-nested-rails-apps-for-completely-diff/86871/5 "2007-02-26T22:18:07Z")

</div>

I see. One thing I just realized… the subdomain are setup  
differently on this server. They’re, well not really sub-domains but  
add-ons. The server name is completely different (not a sub.parent  
type name). A2 Hosting says to use ln -s rails-app/public public\_html,  
does that seem like the best way to deploy this? Using links in this  
setup could be a problem no?

Thanks for your help,

matt
