Maarten Hendrikx
2006-Jun-18 13:17 UTC
[Mongrel] Hosting multiple Rails applications with Mongrel
Hi, I run a small web hosting company. We host a few Rails applications using Apache 2.2 and mod_fcgid. I have been experimenting with Mongrel and mod_proxy. But I can''t seem to figure out how to host multiple Rails - apps with mongrel. Do I have to start a new Mongrel process for every virtual host on a different port? Any help would be great. MJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060618/c78c3dd6/attachment.htm
On Sun, 2006-06-18 at 15:17 +0200, Maarten Hendrikx wrote:> Hi, > > I run a small web hosting company. We host a few Rails applications > using Apache 2.2 and mod_fcgid. > I have been experimenting with Mongrel and mod_proxy. But I can''t seem > to figure out how to host multiple > Rails - apps with mongrel. Do I have to start a new Mongrel process > for every virtual host on a different port? > Any help would be great.Yes that''s pretty much what you have to do. And then you configure a different vhost configuration in apache for each. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/
Maarten Hendrikx
2006-Jun-18 20:06 UTC
[Mongrel] Hosting multiple Rails applications with Mongrel
Yes, I tried different setups this afternoon and this is indeed the way to go :-) We''re thinking about offering both setups to our customers, so mod_fcgid for the smaller applications. The bigger ones can use the balancing feature of Apache together with Mongrel. I must say the I really like the fact that Mongrel starts up really quickly and keeps running. With mod_fcgid you always have to pay a startup cost. Thanks, MJ On 6/18/06, Zed Shaw <zedshaw at zedshaw.com> wrote:> > On Sun, 2006-06-18 at 15:17 +0200, Maarten Hendrikx wrote: > > Hi, > > > > I run a small web hosting company. We host a few Rails applications > > using Apache 2.2 and mod_fcgid. > > I have been experimenting with Mongrel and mod_proxy. But I can''t seem > > to figure out how to host multiple > > Rails - apps with mongrel. Do I have to start a new Mongrel process > > for every virtual host on a different port? > > Any help would be great. > > Yes that''s pretty much what you have to do. And then you configure a > different vhost configuration in apache for each. > > > -- > Zed A. Shaw > http://www.zedshaw.com/ > http://mongrel.rubyforge.org/ > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060618/1ad593b2/attachment.htm