# Two ROR project with one application server , is it possible

**URL:** <https://www.ruby-forum.com/t/two-ror-project-with-one-application-server-is-it-possible/168989>\
**Category:** Rails\
**Created:** [May 28, 2009, 8:15am UTC](https://www.ruby-forum.com/t/two-ror-project-with-one-application-server-is-it-possible/168989 "2009-05-28T08:15:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [May 28, 2009, 8:15am UTC](https://www.ruby-forum.com/t/two-ror-project-with-one-application-server-is-it-possible/168989/1 "2009-05-28T08:15:40Z")

</div>

two rails project with one application server(only one mongrel) ,  
is it possible ?  
if yes , then how ?

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [May 28, 2009, 9:22am UTC](https://www.ruby-forum.com/t/two-ror-project-with-one-application-server-is-it-possible/168989/2 "2009-05-28T09:22:29Z")

</div>

Sniper A. wrote:

> two rails project with one application server(only one mongrel) ,

Generally speaking, you can’t even do _one_ Rails project with only one  
Mongrel instance.

> is it possible ?  
> if yes , then how ?

If you can say a bit more about what you’re trying to do, I’m sure  
someone will be able to help further.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [May 28, 2009, 9:47am UTC](https://www.ruby-forum.com/t/two-ror-project-with-one-application-server-is-it-possible/168989/3 "2009-05-28T09:47:37Z")

</div>

I assume you are limited to one available port on a static address  
that you want to use for multiple Rails applications.

You can accomplish this by configuring Apache so that it talks to the  
correct mongrel instance based on the incoming request.

Example: [.xyz Domain Names | Join Generation XYZ](http://xyz.com/app1) would go to mongrel instance on port xxx  
and [.xyz Domain Names | Join Generation XYZ](http://xyz.com/app2) would go to mongrel instance on port yyy.

A simpler way to do this is to use mod\_rails. Configuring multiple  
Rails app in subdomains is quite easy with mod\_rails.

> **[Passenger - Enterprise grade web app server for Ruby, Node.js, Python](https://www.phusionpassenger.com/)**
>
> Passenger is a rock-solid, feature-rich web app server that integrates with Apache and Nginx. Serve millions of customers with confidence

On May 28, 11:15 am, Sniper A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
