I have been trying to setup the passenger so that I can run multiple rails app on it without success. I found someone suggested following: Edit your virtual host file (example: /etc/apache2/sites-available/ example) so that the following is used: NameVirtualHost *:80 <VirtualHost *:80> ServerName one.example.com DocumentRoot /web/one/public <Directory /web/one/public/ /> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> Repeat the <VirtualHost/> block for each Rails site you want to setup. Restart Apache to pick up the new changes by executing the following command line: sudo /etc/init.d/apache2 restart I made another file with virtualhost block of the other rails app and it still does not work. each individual rails app works if I modify accordingly in the /etc/ apache2/sites-available/default. What is a simple way to setup multiple rails app with passenger? Thanks!
On Oct 27, 2009, at 12:42 PM, kitty00 wrote:> > I have been trying to setup the passenger so that I can run multiple > rails app on it without success. > > I found someone suggested following: > > Edit your virtual host file (example: /etc/apache2/sites-available/ > example) so that the following is used: > > NameVirtualHost *:80 > <VirtualHost *:80> > ServerName one.example.com > DocumentRoot /web/one/public > > <Directory /web/one/public/ /> > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow from all > </Directory> > </VirtualHost> > > Repeat the <VirtualHost/> block for each Rails site you want to setup. > Restart Apache to pick up the new changes by executing the following > command line: sudo /etc/init.d/apache2 restart >What about a2ensite? Are your new virtual host files symlinked into /etc/apache2/sites- enabled? If not, apache never sees them... -philip> I made another file with virtualhost block of the other rails app and > it still does not work. > > each individual rails app works if I modify accordingly in the /etc/ > apache2/sites-available/default. > > What is a simple way to setup multiple rails app with passenger? > > Thanks! > >
I did not aware of that. Could you please advise how I should do that? Thanks! On Oct 27, 2:58 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> On Oct 27, 2009, at 12:42 PM, kitty00 wrote: > > > > > > > I have been trying to setup the passenger so that I can run multiple > > rails app on it without success. > > > I found someone suggested following: > > > Edit your virtual host file (example: /etc/apache2/sites-available/ > > example) so that the following is used: > > > NameVirtualHost *:80 > > <VirtualHost *:80> > > ServerName one.example.com > > DocumentRoot /web/one/public > > > <Directory /web/one/public/ /> > > Options Indexes FollowSymLinks MultiViews > > AllowOverride None > > Order allow,deny > > allow from all > > </Directory> > > </VirtualHost> > > > Repeat the <VirtualHost/> block for each Rails site you want to setup. > > Restart Apache to pick up the new changes by executing the following > > command line: sudo /etc/init.d/apache2 restart > > What about a2ensite? > > Are your new virtual host files symlinked into /etc/apache2/sites- > enabled? If not, apache never sees them... > > -philip > > > I made another file with virtualhost block of the other rails app and > > it still does not work. > > > each individual rails app works if I modify accordingly in the /etc/ > > apache2/sites-available/default. > > > What is a simple way to setup multiple rails app with passenger? > > > Thanks!
> I did not aware of that. > > Could you please advise how I should do that? > Thanks! >% zmore /usr/share/doc/apache2.2-common/README.Debian.gz should give you what you need.> On Oct 27, 2:58 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote: >> On Oct 27, 2009, at 12:42 PM, kitty00 wrote: >> >> >> >> >> >>> I have been trying to setup the passenger so that I can run multiple >>> rails app on it without success. >> >>> I found someone suggested following: >> >>> Edit your virtual host file (example: /etc/apache2/sites-available/ >>> example) so that the following is used: >> >>> NameVirtualHost *:80 >>> <VirtualHost *:80> >>> ServerName one.example.com >>> DocumentRoot /web/one/public >> >>> <Directory /web/one/public/ /> >>> Options Indexes FollowSymLinks MultiViews >>> AllowOverride None >>> Order allow,deny >>> allow from all >>> </Directory> >>> </VirtualHost> >> >>> Repeat the <VirtualHost/> block for each Rails site you want to >>> setup. >>> Restart Apache to pick up the new changes by executing the following >>> command line: sudo /etc/init.d/apache2 restart >> >> What about a2ensite? >> >> Are your new virtual host files symlinked into /etc/apache2/sites- >> enabled? If not, apache never sees them... >> >> -philip >> >>> I made another file with virtualhost block of the other rails app >>> and >>> it still does not work. >> >>> each individual rails app works if I modify accordingly in the /etc/ >>> apache2/sites-available/default. >> >>> What is a simple way to setup multiple rails app with passenger? >> >>> Thanks! > >
I figured it out - about symlink. But it still does not work. How do I access the different apps? On Oct 27, 3:20 pm, kitty00 <yanl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I did not aware of that. > > Could you please advise how I should do that? > Thanks! > > On Oct 27, 2:58 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote: > > > On Oct 27, 2009, at 12:42 PM, kitty00 wrote: > > > > I have been trying to setup the passenger so that I can run multiple > > > rails app on it without success. > > > > I found someone suggested following: > > > > Edit your virtual host file (example: /etc/apache2/sites-available/ > > > example) so that the following is used: > > > > NameVirtualHost *:80 > > > <VirtualHost *:80> > > > ServerName one.example.com > > > DocumentRoot /web/one/public > > > > <Directory /web/one/public/ /> > > > Options Indexes FollowSymLinks MultiViews > > > AllowOverride None > > > Order allow,deny > > > allow from all > > > </Directory> > > > </VirtualHost> > > > > Repeat the <VirtualHost/> block for each Rails site you want to setup. > > > Restart Apache to pick up the new changes by executing the following > > > command line: sudo /etc/init.d/apache2 restart > > > What about a2ensite? > > > Are your new virtual host files symlinked into /etc/apache2/sites- > > enabled? If not, apache never sees them... > > > -philip > > > > I made another file with virtualhost block of the other rails app and > > > it still does not work. > > > > each individual rails app works if I modify accordingly in the /etc/ > > > apache2/sites-available/default. > > > > What is a simple way to setup multiple rails app with passenger? > > > > Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> kitty00 wrote: <blockquote cite="mid:23eb0f28-3e12-441b-ac52-822760ca881d-OQnIrhmQ1MX1LxsYb/JxT2B/v6IoIuQB4b8TPpkIZ3Q@public.gmane.orgcom" type="cite"> <pre wrap="">I figured it out - about symlink. But it still does not work. How do I access the different apps? </pre> </blockquote> Each virtual host needs a different hostname and you access the different apps by going to the hostname. All of the hostnames will share the same ip address. <br> <br> Norm<br> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. <br> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en<br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>
Configuring virtual hosts can get tricky the first few times you do it. Slicehost has excellent articles on the subject. http://articles.slicehost.com. I go there often. Just look for the articles under your distro. Andrew
I have only one hostname. On Oct 27, 4:11 pm, Norm Scherer <normsche...-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> kitty00 wrote:I figured it out - about symlink. But it still does not work. How do I access the different apps?Each virtual host needs a different hostname and you access the different apps by going to the hostname. All of the hostnames will share the same ip address. > Norm
Thanks! On Oct 27, 10:40 pm, Andrew Pace <andrewpp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Configuring virtual hosts can get tricky the first few times you do > it. Slicehost has excellent articles on the subject. http://articles.slicehost.com. > I go there often. Just look for the articles under your distro. > > Andrew
Actually, I want to deploy as sub URI. I found the following instruction on phusion passenger web. But it still did not work. You can deploy multiple Rails applications under a virtual host, by specifying RailsBaseURI multiple times. For example: <VirtualHost *:80> .... RailsBaseURI /app1 RailsBaseURI /app2 RailsBaseURI /app3 </VirtualHost> I followed the instruction on slice host too. It did not work either. But by following the slice host, the other server which did not have passenger running working fine with different hostnames. I also found that by running passenger. my phpadmin is not working anymore. Any ideas? Thanks! On Oct 27, 4:11 pm, Norm Scherer <normsche...-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> kitty00wrote:I figured it out - about symlink. But it still does not work. How do I access the different apps?Each virtual host needs a different hostname and you access the different apps by going to the hostname. All of the hostnames will share the same ip address. > Norm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> kitty00 wrote: <blockquote cite="mid:15f8d16e-9292-49f7-a21c-59dae5f26a84-06Z6dK1dEUowq+9lhVFwFGB/v6IoIuQB4b8TPpkIZ3Q@public.gmane.orgcom" type="cite"> <pre wrap="">Actually, I want to deploy as sub URI. I found the following instruction on phusion passenger web. But it still did not work. You can deploy multiple Rails applications under a virtual host, by specifying RailsBaseURI multiple times. For example: <VirtualHost *:80> .... RailsBaseURI /app1 RailsBaseURI /app2 RailsBaseURI /app3 </VirtualHost> I followed the instruction on slice host too. It did not work either. But by following the slice host, the other server which did not have passenger running working fine with different hostnames. I also found that by running passenger. my phpadmin is not working anymore. Any ideas? Thanks! </pre> </blockquote> No experience with sub uri but based on the other passenger use I am familiar with I would assume that you need to put one URI per virtual host. <br> <br> Norm<br> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. <br> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en<br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>
Thanks! Yes, I did implement that way. each URI per virtual host per file. But it still did not work. On Oct 28, 1:24 pm, Norm Scherer <normsche...-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> kitty00wrote:Actually, I want to deploy as sub URI. I found the following instruction on phusion passenger web. But it still did not work. You can deploy multiple Rails applications under a virtual host, by specifying RailsBaseURI multiple times. For example: <VirtualHost *:80> .... RailsBaseURI /app1 RailsBaseURI /app2 RailsBaseURI /app3 </VirtualHost> I followed the instruction on slice host too. It did not work either. But by following the slice host, the other server which did not have passenger running working fine with different hostnames. I also found that by running passenger. my phpadmin is not working anymore. Any ideas? Thanks!No experience with sub uri but based on the other passenger use I am familiar with I would assume that you need to put one URI per virtual host. > Norm
kitty00 wrote:> Thanks! > Yes, I did implement that way. each URI per virtual host per file. But > it still did not work.What URIs are you using? What errors are you getting? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
I was trying to deploy them as: domain.com/app1 domain.com/app2 But I got the error message: the page you are looking for does not exist. On Oct 28, 3:45 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> kitty00wrote: > > Thanks! > > Yes, I did implement that way. each URI per virtual host per file. But > > it still did not work. > > What URIs are you using? What errors are you getting? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.