# 2 rails app on the same domain

**URL:** <https://www.ruby-forum.com/t/2-rails-app-on-the-same-domain/200259>\
**Category:** Mongrel\
**Created:** [December 7, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/2-rails-app-on-the-same-domain/200259 "2010-12-07T22:54:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [December 7, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/2-rails-app-on-the-same-domain/200259/1 "2010-12-07T22:54:05Z")

</div>

Hi,  
I have 2 app.  
One one [www.mysite.com](http://www.mysite.com) and the second one on [www.mysite.com/alerts](http://www.mysite.com/alerts)

I have an issue with the routes on the second app. The Rails app thinks  
“/alerts” is in my routes, whereas it should be the root of my app.

How do I override this in my routes or production file?

Greg

---

<div class="post-metadata">

**Author:** ![gregm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gregm](https://www.ruby-forum.com/u/gregm)\
**Post date:** [January 19, 2011, 4:58pm UTC](https://www.ruby-forum.com/t/2-rails-app-on-the-same-domain/200259/2 "2011-01-19T16:58:13Z")

</div>

Definitely check out Mongrel Cluster, here’s a good read:  
[http://articles.slicehost.com/2008/5/9/ubuntu-hardy-mongrel-and-mongrel-clusters](http://articles.slicehost.com/2008/5/9/ubuntu-hardy-mongrel-and-mongrel-clusters)
