Ruby on Rails applications with Mongrel cluster

Ajit
Fri, 07 Dec 2007 15:03:08 -0000

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 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:3011

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

instead its looking for locahost.com

Please advice
Ajit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---