Nathan Clark
2007-Jul-19 16:12 UTC
[Mongrel] [mongrel_cluster] hosting multiple web sites via
Jeff try adding to your mongrel_cluster.yml :docroot: /var/radiant/domainA.com/public -- Together we can solve any issue.
Jeff Jones
2007-Jul-19 23:32 UTC
[Mongrel] [mongrel_cluster] hosting multiple web sites via
I tried but it seems not to work, I can still can see only one VirtualHost, the others shows exactly the same site of the one pointed by cwd. Changing cwd to the /public subdir of one of them, allows the new VirtualHost to be shown on all the other domains too. In general I don''t understand one thing: I setup cluster of mongrel on some ports for ex: <Proxy balancer://mongrel_cluster> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 BalancerMember http://127.0.0.1:8002 </Proxy> Are all the apps (in my case the radiant subtrees) to be server from this cluster or have I to declare another one to serve one more app ? <Proxy balancer://mongrel_cluster2> BalancerMember http://127.0.0.1:9000 BalancerMember http://127.0.0.1:9001 BalancerMember http://127.0.0.1:9002 </Proxy> Nathan Clark <nathanclark80 at gmail.com> wrote: Jeff try adding to your mongrel_cluster.yml :docroot: /var/radiant/domainA.com/public -- Together we can solve any issue. --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070719/7a34eb76/attachment.html
Ezra Zygmuntowicz
2007-Jul-19 23:53 UTC
[Mongrel] [mongrel_cluster] hosting multiple web sites via
On Jul 19, 2007, at 4:32 PM, Jeff Jones wrote:> Are all the apps (in my case the radiant subtrees) to be server > from this cluster or have I to declare another one to serve one > more app ?You have to have a separate mongrel_cluster and vhost for each rails app. You cannot serve more then one rails app from the same mongrel cluster. Cheers- -- Ezra Zygmuntowicz -- Founder & Ruby Hacker -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
Jeff Jones
2007-Jul-20 00:43 UTC
[Mongrel] [mongrel_cluster] hosting multiple web sites via
Thanks Ezra, Nor prefix option can solve my problem ? The explanation at http://mongrel.rubyforge.org/docs/apache.html "Running Multiple Rails Apps with Mongrel" is not clear for me ... Ezra Zygmuntowicz <ezmobius at gmail.com> wrote: On Jul 19, 2007, at 4:32 PM, Jeff Jones wrote:> Are all the apps (in my case the radiant subtrees) to be server > from this cluster or have I to declare another one to serve one > more app ?You have to have a separate mongrel_cluster and vhost for each rails app. You cannot serve more then one rails app from the same mongrel cluster. Cheers- -- Ezra Zygmuntowicz -- Founder & Ruby Hacker -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) _______________________________________________ Mongrel-users mailing list Mongrel-users at rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it''s updated for today''s economy) at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070719/1be5ae5e/attachment.html
Ezra Zygmuntowicz
2007-Jul-20 00:52 UTC
[Mongrel] [mongrel_cluster] hosting multiple web sites via
On Jul 19, 2007, at 5:43 PM, Jeff Jones wrote:> Thanks Ezra, > > Nor prefix option can solve my problem ? > The explanation at http://mongrel.rubyforge.org/docs/apache.html > "Running Multiple Rails Apps with Mongrel" is not clear for me ...What exactly are you trying to accomplish? If it is to run two separate rails applications then you need two separate mongrel clusters. A single mongrel can only load one rails app at a time ,and a cluster of mongrels that get load balanced to will all have the same application running. Now, if you want to run two rails apps on the same domain like example.com/foo and example.com/bar then you can do it with one apache vhost but each app will still need it''s own set of mongrels to proxy to. Cheers- -- Ezra Zygmuntowicz -- Founder & Ruby Hacker -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
Seemingly Similar Threads
- [mongrel_cluster] hosting multiple web sites via apache mod_proxy_balancer
- recommended setup of Mongrel_cluster + SSL for multiple apps?
- monit vs mongrel cluster
- New automated Capistrano setup for Apache2.1+ and mongrel_cluster
- compress and max upload size?