# Multiple vhosts with rails sites with apache+mongrel a better way?

**URL:** <https://www.ruby-forum.com/t/multiple-vhosts-with-rails-sites-with-apache-mongrel-a-better-way/147363>\
**Category:** Rails\
**Created:** [September 1, 2008, 2:33am UTC](https://www.ruby-forum.com/t/multiple-vhosts-with-rails-sites-with-apache-mongrel-a-better-way/147363 "2008-09-01T02:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReK2SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@ReK2SS](https://www.ruby-forum.com/u/ReK2SS)\
**Post date:** [September 1, 2008, 2:33am UTC](https://www.ruby-forum.com/t/multiple-vhosts-with-rails-sites-with-apache-mongrel-a-better-way/147363/1 "2008-09-01T02:33:00Z")

</div>

Hi as of now I have two sites each using one port 8080 and 8081 under  
mongrel  
and apache as the front… works ok but as a good network engineer I have  
to have tons of  
ports open, is uggly, before I can even think about having more rails  
sites on our servers I will like  
to know of a way of just having a apache+mongrel with out having to have  
one open port for each site…  
if I have 100 I dont want to have 100 open ports even if is internal on  
loopback 127.0.0.1 it looks horrible when I  
try to manage the box with any network tool. I cant wait for the day I  
can just use apache like with mod\_php and mod\_perl, is a pain to have to  
use _Another_ server in the back just for rails.  
thanks in advance for the advice.

---

<div class="post-metadata">

**Author:** ![ReK2SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@ReK2SS](https://www.ruby-forum.com/u/ReK2SS)\
**Post date:** [September 1, 2008, 3:24am UTC](https://www.ruby-forum.com/t/multiple-vhosts-with-rails-sites-with-apache-mongrel-a-better-way/147363/2 "2008-09-01T03:24:26Z")

</div>

Look into mod\_rails aka passenger by phusion.

I use it over mongrel out of pure simplicity.

G.

---

<div class="post-metadata">

**Author:** ![ReK2SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@ReK2SS](https://www.ruby-forum.com/u/ReK2SS)\
**Post date:** [September 1, 2008, 4:11am UTC](https://www.ruby-forum.com/t/multiple-vhosts-with-rails-sites-with-apache-mongrel-a-better-way/147363/3 "2008-09-01T04:11:14Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

giorgio  
escribió:\> Look into mod\_rails aka passenger by phusion.

> I use it over mongrel out of pure simplicity.
> 
> G.
> 
> >

THANKS!

* * *

A Spectre is haunting multinational capitalism–the spectre of free  
information.  
All the powers of ``globalism’’ have entered into an unholy alliance  
to exorcize this spectre:  
Microsoft and Disney, the World Trade Organization, the United States  
Congress and the European Commission.  
Eben Moglen from the FSF.  
[http://emoglen.law.columbia.edu/publications/dcm.html](http://emoglen.law.columbia.edu/publications/dcm.html)

Solidarity:  
[http://www.dailyradical.org](http://www.dailyradical.org)  
[http://www.diarioradical.org](http://www.diarioradical.org)  
[http://www.spboston.org](http://www.spboston.org)

> **[MESSIPOKER - Situs Judi Slot Online Dan Toto 4D Togel Terbaru](https://binaryfreedom.info/)**
>
> MESSIPOKER ialah situs judi slot online terbaik dan toto 4D online terpercaya no 1 di Indonesia yang siap memberikan pelayanan maksimal kepada anda.

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.9 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAki7Tv0ACgkQT6mxQz3A4f76FACgmxXQ9VVYc0aNQSVNPc1vMoSn  
XhYAoJJG1oj+7A57pisiK9N+M0fpWj59  
=J9wU  
-----END PGP SIGNATURE-----
