Hi everybody, We are developing several applications on a single server and I''m looking for a way to use mongrel with each of them. Right now, http://testapp.com/ is being served on that machine through apache and mongrel. Here''s what a part of my apache config looks like: <Proxy balancer balancer://testappcluster> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 BalancerMember http://127.0.0.1:8002 </Proxy> <VirtualHost testapp.com:80> ServerName testapp.com ServerAlias testapp.com ProxyPass / balancer://testappcluster/ ProxyPassReverse / balancer://testappcluster/ </VirtualHost> It works great, but I want to move this app to http://testapp.com/foo and have another app at http://testapp.com/bar. Any tips? I was able to get my apps served separately with subdomains, however, I would prefer to keep them all on the same domain and just use /foo and /bar. Thanks! Bryan Thompson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060816/813dac7d/attachment.html
On 8/16/06, Bryan Thompson <bryan at galisys.com> wrote:> > Hi everybody, > > We are developing several applications on a single server and I''m looking > for a way to use mongrel with each of them. Right now, http://testapp.com/ > is being served on that machine through apache and mongrel. Here''s what a > part of my apache config looks like: > > > > <Proxy balancer balancer://testappcluster> > BalancerMember http://127.0.0.1:8000 > BalancerMember http://127.0.0.1:8001 > BalancerMember http://127.0.0.1:8002 > </Proxy> > > <VirtualHost testapp.com:80> > ServerName testapp.com > ServerAlias testapp.com > ProxyPass / balancer://testappcluster/ > ProxyPassReverse / balancer://testappcluster/ > </VirtualHost> > It works great, but I want to move this app to http://testapp.com/foo and > have another app at http://testapp.com/bar. > > Any tips? I was able to get my apps served separately with subdomains, > however, I would prefer to keep them all on the same domain and just use > /foo and /bar. > > Thanks! > > Bryan ThompsonHi, It''s not possible to run more apps within one mongrel (for details see former thread "[Mongrel] Mongrel and multi apps"). For subdirectories, start your mongrel with --prefix /foo (or you can put it in the mongrel config file)
I can run more than one cluster at a time, so shouldn''t I be able to have apache separate app /foo into traffic to balancer://foocluster and /foo to balancer://barcluster? I have gotten the following to work with apache2, however, it isn''t exactly what I want: Root: http://testapp.com/ -- shows static html apache ''it worked'' page. App one: http://foo.testapp.com/ -- uses balancer://foocluster App two: http://bar.testapp.com/ -- uses balancer://barcluster So, it should be possbible to use: Root: http://testapp.com/ -- show static html apache ''it worked'' page. App one: http://testapp.com/foo -- use balancer://foocluster App two: http://testapp.com/bar -- use balancer://barcluster Bryan> It''s not possible to run more apps within one mongrel (for details see > former thread "[Mongrel] Mongrel and multi apps"). > > For subdirectories, start your mongrel with --prefix /foo (or you can > put it in the mongrel config file)
On 8/16/06, Bryan Thompson <bryan at galisys.com> wrote:> I can run more than one cluster at a time, so shouldn''t I be able to > have apache separate app /foo into traffic to balancer://foocluster > and /foo to balancer://barcluster? > > I have gotten the following to work with apache2, however, it isn''t > exactly what I want: > > Root: http://testapp.com/ -- shows static html apache ''it worked'' page. > App one: http://foo.testapp.com/ -- uses balancer://foocluster > App two: http://bar.testapp.com/ -- uses balancer://barcluster > > So, it should be possbible to use: > > Root: http://testapp.com/ -- show static html apache ''it worked'' page. > App one: http://testapp.com/foo -- use balancer://foocluster > App two: http://testapp.com/bar -- use balancer://barclusterright.