# Ruby on Rails applications with Mongrel cluster

**URL:** <https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431>\
**Category:** Rails\
**Created:** [December 7, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431 "2007-12-07T16:03:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajitonrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Post date:** [December 7, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431/1 "2007-12-07T16:03:55Z")

</div>

Hello All

I am trying to install 5 mongrel servers against my app. i am using  
Vista. I found this article on a website… but am stuck on one point.

here are some notes from article:

Now enable the needed modules (url rewriting, proxy, proxy\_balancer e  
proxy\_http) by editing the httpd.conf file (under c:  
\Apache\_Software\_Foundation\Apache2.2\conf, if you installed Apache in  
its standard path). You just need to uncomment the following lines  
(remove the #):

LoadModule rewrite\_module modules/mod\_rewrite.so  
LoadModule proxy\_module modules/mod\_proxy.so  
LoadModule proxy\_balancer\_module modules/mod\_proxy\_balancer.so  
LoadModule proxy\_http\_module modules/mod\_proxy\_http.so

gem install mongrel (pick last version for win32)  
gem install mongrel\_service (pick last version for win32)

Now we will create a mongrel cluster of 2 windows services responding  
at [http://127.0.0.1](http://127.0.0.1) on ports 3010, 3011 serving a rail application at  
the path c:\www\ror\myapp that will be started from the windows system  
user. The two windows services will be respectively named  
mongrel\_myapp1 and mongrel\_myapp2. Open the command prompt and type:

mongrel\_rails service::install -N mongrel\_myapp1 -p 3010 -e production  
-c c:\www\ror\myapp  
mongrel\_rails service::install -N mongrel\_myapp2 -p 3011 -e production  
-c c:\www\ror\myapp

Now open the windows services tool, make the 2 new services have an  
automatic startup type (so they will still be started when you  
reboot).  
Test if your application is now running at the two ports:

[http://localhost:3010](http://localhost:3010)  
[http://localhost:3011](http://localhost:3011)

… i am not getting any results when connecting to localhost:3010

instead its looking for [locahost.com](http://locahost.com)

Please advice  
Ajit

---

<div class="post-metadata">

**Author:** ![ajitonrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Post date:** [December 7, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431/2 "2007-12-07T16:46:15Z")

</div>

I wrote about what I did on [blog.flame.org](http://blog.flame.org). Click on the mongrel  
tagvas itvis currently the only thing under that topic.

–Michael
