# Multiple applications under Mongrel using routes

**URL:** <https://www.ruby-forum.com/t/multiple-applications-under-mongrel-using-routes/131877>\
**Category:** Rails\
**Created:** [March 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/multiple-applications-under-mongrel-using-routes/131877 "2008-03-14T02:02:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [March 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/multiple-applications-under-mongrel-using-routes/131877/1 "2008-03-14T02:02:04Z")

</div>

My shared host limits the number of mongrel instances I can run, so I’d  
like to run multiple applications in one mongrel instance. For  
instance…

[testapps.domain.com/app1](http://testapps.domain.com/app1)  
actually ends up running application in /home/rails/app1/

[testapps.domain.com/app2](http://testapps.domain.com/app2)  
actually ends up running application in /home/rails/app2/

I understand how to do this if I have access to the Apache and mongrel  
configurations, but I do not have such access. The only things I have  
access to change are the files within my application(s).

Is there a way to do it using routes and maybe some sort of “wrapper”  
application, ie maybe with a folder structure like this:

/home/rails/wrapper  
/home/rails/wrapper/app1  
/home/rails/wrapper/app2

Perhaps using Dan W.'s Request Routing plug-in would assist?

Thanks.
