Ruby Forum Rails deployment > multiple application using apache and mongrel cluster

Posted by Simi Lc (simi)
on 19.08.2008 07:12
Hi,

I need to deploy two rails applications using apache and mongrel
cluster.

I have modified VirtualHost and configured mongrel cluster for a single
application http://mydomain.com and it works fine.

The administration application( http://administrator.mydomain.com ) of
the above is a seperate application and I face problem in deploying it
in same apache server. ( I have set a seperate VirtualHost and
configured mongrel cluster ).

I have seperate conf files with the VirtualHost setting, namely
admin.conf and app.conf, and included it in apached httpd.conf file

I'm able to deploy both the application individually but not together.
The application configuration file which is included first in apache
httpd.conf file is only served( it is also set as the default server ).

I even tried by setting the apps in different ports 80 and 8080

If anyone could think of a solution kindly help me to fix it.

Thanks
Simi
Posted by Hugh Themm (hughthemm)
on 19.08.2008 10:40
(Received via mailing list)
Hi Simi,

The apache and mogrel cluster should work fine with multiple apps.  I
have been running with 2 apps and 6 mongrel instances.

I think your Apache configuration is convoluted.  What versions are
you using?

Check this for a good explanation of virtual hosts:
http://articles.slicehost.com/2008/4/29/ubuntu-hardy-apache-virtual-hosts-1

It may not directly apply, but it should be a good start.  Otherwise
we'll need more info to answer your question.

-HT

On Aug 19, 12:12 am, Simi Lc <ruby-forum-incom...@andreas-s.net>
Posted by Simi Lc (simi)
on 19.08.2008 11:42
Hi Hugh,

Thank you for your prompt reply.

The problem is fixed now.

Actually the problem was I had the ServerName as mydomain.com instead of 
www.mydomain.com in app.conf

Since the ServerName of other app, that is the admin app was 
administrator.mydomain.com, apache could not serve both the apps 
simultaneously. It just served whichever app was first included in 
httpd.conf

I think it is a very minor problem I should have taken care of. But 
sorry I'm a newbie to apache configuration

Thanks,
Simi







 On Aug 19, 12:12�am, Simi Lc <ruby-forum-incom...@andreas-s.net>
Posted by Hugh Themm (hughthemm)
on 19.08.2008 18:24
(Received via mailing list)
You are welcome, glad to hear you got it working.
-ht