how can manage multiple rails applications with apache i have followed the following tutorial and successfullt set up my rails site using apache http://www.howtoforge.com/ruby_on_rails_debian_etch http://www.howtoforge.com/ruby_on_rails_debian_etch_p2 but how can i configure apache to host more than one rails site ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I wrote a little about this here: http://skandragon.blogspot.com/2007/10/mongrel-apache-and-rails.html How to set up Apache for multiple hosts (assuming no SSL) is pretty easy, and well-documented in many, many places. Search for "apache virtual host configuration" or similar. How to do it with SSL is even easier, but burns one real IP address per host. --Michael On Mon, Mar 2, 2009 at 1:26 AM, --- Z@m --- <krishnaprasadvarma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > how can manage multiple rails applications with apache > > i have followed the following tutorial and successfullt set up my > rails site using apache > > http://www.howtoforge.com/ruby_on_rails_debian_etch > http://www.howtoforge.com/ruby_on_rails_debian_etch_p2 > > but how can i configure apache to host more than one rails site ? > > > >-- (Ruby, Rails, Random) blog: http://skandragon.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mongrel is a nice piece of software, but you should really have a look at Phusion Passenger. It effectively makes deployment of Rails applications as simple as deploying PHP code. http://www.modrails.com/ http://www.modrails.com/documentation/Users%20guide.html#_installing_phusion_passenger http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_ruby_on_rails_application On Mon, Mar 2, 2009 at 10:12 AM, Michael Graff <skan.gryphon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > I wrote a little about this here: > http://skandragon.blogspot.com/2007/10/mongrel-apache-and-rails.html > > How to set up Apache for multiple hosts (assuming no SSL) is pretty > easy, and well-documented in many, many places. Search for "apache > virtual host configuration" or similar. How to do it with SSL is even > easier, but burns one real IP address per host. > > --Michael > > On Mon, Mar 2, 2009 at 1:26 AM, --- Z@m --- > <krishnaprasadvarma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > how can manage multiple rails applications with apache > > > > i have followed the following tutorial and successfullt set up my > > rails site using apache > > > > http://www.howtoforge.com/ruby_on_rails_debian_etch > > http://www.howtoforge.com/ruby_on_rails_debian_etch_p2 > > > > but how can i configure apache to host more than one rails site ? > > > > > > > > > > > -- > (Ruby, Rails, Random) blog: http://skandragon.blogspot.com/ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s on my to-do list. Right between rebuilding my Xen server, making Asterisk work again, etc. :) --Michael On Mon, Mar 2, 2009 at 4:12 AM, Chris Kottom <chris.kottom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Mongrel is a nice piece of software, but you should really have a look at > Phusion Passenger. It effectively makes deployment of Rails applications > as simple as deploying PHP code. > > http://www.modrails.com/ > http://www.modrails.com/documentation/Users%20guide.html#_installing_phusion_passenger > http://www.modrails.com/documentation/Users%20guide.html#_deploying_a_ruby_on_rails_application--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you for your fast reply ! regards Krishnan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Phusion Passenger is the easiest (and increasingly better) way: http://blog.phusion.nl/2009/03/01/phusion-passenger-211-beta-released-thanks-sponsors/ Cheers, Sazima On Mar 2, 4:26 am, "--- Z@m ---" <krishnaprasadva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> how can manage multiple rails applications with apache > > i have followed the following tutorial and successfullt set up my > rails site using apache > > http://www.howtoforge.com/ruby_on_rails_debian_etchhttp://www.howtoforge.com/ruby_on_rails_debian_etch_p2 > > but how can i configure apache to host more than one rails site ?--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
+1 for Passenger. I''m currently running some Rails apps and a Sinatra app as well on the same box. Very easy, very simple, very cool. On Mar 2, 9:10 am, Sazima <rsaz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Phusion Passenger is the easiest (and increasingly better) way: > > http://blog.phusion.nl/2009/03/01/phusion-passenger-211-beta-released... > > Cheers, Sazima > > On Mar 2, 4:26 am, "--- Z@m ---" <krishnaprasadva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > how can manage multiple rails applications with apache > > > i have followed the following tutorial and successfullt set up my > > rails site using apache > > >http://www.howtoforge.com/ruby_on_rails_debian_etchhttp://www.howtofo... > > > but how can i configure apache to host more than one rails site ?--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The only issue I have with Passenger is the same one I have for any apache-module based application: Break into one, and you break into them all. That is, they all run as user www group www (on my box, those can vary.) Therefore if applications cross administrative boundaries, they must run on different Apache instances. Otherwise, one can read another application''s database.yml and the game is over. That said, I''m the owner of my personal server, and therefore I am a single boundry. I''ve started the conversion over to Passenger. One down, 5 more to go. Looks trivial, and just works so far. The only "site" I have it up on is my soon-to-be personal media database, http://media.flame.org/ and no, it''s not even close to done yet. --Michael On Mon, Mar 2, 2009 at 10:39 AM, Bob Martens <boblmartens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > +1 for Passenger. I''m currently running some Rails apps and a Sinatra > app as well on the same box. Very easy, very simple, very cool. > > On Mar 2, 9:10 am, Sazima <rsaz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Phusion Passenger is the easiest (and increasingly better) way: >> >> http://blog.phusion.nl/2009/03/01/phusion-passenger-211-beta-released... >> >> Cheers, Sazima >> >> On Mar 2, 4:26 am, "--- Z@m ---" <krishnaprasadva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > how can manage multiple rails applications with apache >> >> > i have followed the following tutorial and successfullt set up my >> > rails site using apache >> >> >http://www.howtoforge.com/ruby_on_rails_debian_etchhttp://www.howtofo... >> >> > but how can i configure apache to host more than one rails site ? > > >-- (Ruby, Rails, Random) blog: http://skandragon.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jack Christensen
2009-Mar-02 19:30 UTC
Re: managing multiple rails applications with apache
Michael Graff wrote:> The only issue I have with Passenger is the same one I have for any > apache-module based application: Break into one, and you break into > them all. > > That is, they all run as user www group www (on my box, those can > vary.) Therefore if applications cross administrative boundaries, > they must run on different Apache instances. Otherwise, one can read > another application''s database.yml and the game is over. >Passenger solves that problem: http://www.modrails.com/documentation/Users%20guide.html#user_switching> That said, I''m the owner of my personal server, and therefore I am a > single boundry. I''ve started the conversion over to Passenger. One > down, 5 more to go. Looks trivial, and just works so far. The only > "site" I have it up on is my soon-to-be personal media database, > http://media.flame.org/ and no, it''s not even close to done yet. > > --Michael > > On Mon, Mar 2, 2009 at 10:39 AM, Bob Martens <boblmartens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> +1 for Passenger. I''m currently running some Rails apps and a Sinatra >> app as well on the same box. Very easy, very simple, very cool. >> >> On Mar 2, 9:10 am, Sazima <rsaz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Phusion Passenger is the easiest (and increasingly better) way: >>> >>> http://blog.phusion.nl/2009/03/01/phusion-passenger-211-beta-released... >>> >>> Cheers, Sazima >>> >>> On Mar 2, 4:26 am, "--- Z@m ---" <krishnaprasadva...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>> >>>> how can manage multiple rails applications with apache >>>> >>>> i have followed the following tutorial and successfullt set up my >>>> rails site using apache >>>> >>>> http://www.howtoforge.com/ruby_on_rails_debian_etchhttp://www.howtofo... >>>> >>>> but how can i configure apache to host more than one rails site ? >>>> > > > >-- Jack Christensen jackc-/SOt/BrQZzMOf2zXYvRtkodd74u8MsAO@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---