Hello, I have Apache working with one app as <VirtualHost *> ServerName rails DocumentRoot "c:/sandbox/website/rails/Test/public" <Directory "c:/sandbox/website/rails/Test/public/"> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny AddHandler cgi-script .cgi AddHandler fastcgi-script .fcgi </Directory> </VirtualHost> When I add a second app, it fails. second app as <VirtualHost *> ServerName rails DocumentRoot "c:/sandbox/website/rails/cookbook/public" <Directory "c:/sandbox/website/rails/cookbook/public/"> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny AddHandler cgi-script .cgi AddHandler fastcgi-script .fcgi </Directory> </VirtualHost> What am I doing wrong? Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
Just a quick guess, but those are virtual hosts, and they need to have two separate servernames. (right now they''re both rails, and they''re both listening on the same port and address, so they''ll conflict. You''ll also need to add the servername to your hosts file. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco Sent: Thursday, December 01, 2005 1:51 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] newbie - Apache problem two apps Hello, I have Apache working with one app as <VirtualHost *> ServerName rails DocumentRoot "c:/sandbox/website/rails/Test/public" <Directory "c:/sandbox/website/rails/Test/public/"> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny AddHandler cgi-script .cgi AddHandler fastcgi-script .fcgi </Directory> </VirtualHost> When I add a second app, it fails. second app as <VirtualHost *> ServerName rails DocumentRoot "c:/sandbox/website/rails/cookbook/public" <Directory "c:/sandbox/website/rails/cookbook/public/"> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny AddHandler cgi-script .cgi AddHandler fastcgi-script .fcgi </Directory> </VirtualHost> What am I doing wrong? Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
ok, How do I configure Apache to allow me to run more than one app? example: http://localhost/app1 http://localhost/app2 Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >Subject: RE: [Rails] newbie - Apache problem two apps >Date: Thu, 1 Dec 2005 14:27:54 -0600 > >Just a quick guess, but those are virtual hosts, and they need to have >two separate servernames. (right now they''re both rails, and they''re >both listening on the same port and address, so they''ll conflict. > > You''ll also need to add the servername to your hosts file. > > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco >Sent: Thursday, December 01, 2005 1:51 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] newbie - Apache problem two apps > > >Hello, > >I have Apache working with one app as > ><VirtualHost *> > ServerName rails > DocumentRoot "c:/sandbox/website/rails/Test/public" > <Directory "c:/sandbox/website/rails/Test/public/"> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > AddHandler cgi-script .cgi > AddHandler fastcgi-script .fcgi > </Directory> ></VirtualHost> > >When I add a second app, it fails. >second app as ><VirtualHost *> > ServerName rails > DocumentRoot "c:/sandbox/website/rails/cookbook/public" > <Directory "c:/sandbox/website/rails/cookbook/public/"> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > AddHandler cgi-script .cgi > AddHandler fastcgi-script .fcgi > </Directory> ></VirtualHost> > > >What am I doing wrong? > > >Regards, > >Frank Rocco >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails
Heheheheh that can be a HUGE pain in the butt and it depends largely on what OS you''re using. Most folks don''t do it that way... They prefer to use vhosts. http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOn OneMachine Take a look around the wiki... A lot of these questions are answered there. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco Sent: Thursday, December 01, 2005 2:38 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails] newbie - Apache problem two apps ok, How do I configure Apache to allow me to run more than one app? example: http://localhost/app1 http://localhost/app2 Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >Subject: RE: [Rails] newbie - Apache problem two apps >Date: Thu, 1 Dec 2005 14:27:54 -0600 > >Just a quick guess, but those are virtual hosts, and they need to have >two separate servernames. (right now they''re both rails, and they''re >both listening on the same port and address, so they''ll conflict. > > You''ll also need to add the servername to your hosts file. > > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco >Sent: Thursday, December 01, 2005 1:51 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] newbie - Apache problem two apps > > >Hello, > >I have Apache working with one app as > ><VirtualHost *> > ServerName rails > DocumentRoot "c:/sandbox/website/rails/Test/public" > <Directory "c:/sandbox/website/rails/Test/public/"> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > AddHandler cgi-script .cgi > AddHandler fastcgi-script .fcgi > </Directory> ></VirtualHost> > >When I add a second app, it fails. >second app as ><VirtualHost *> > ServerName rails > DocumentRoot "c:/sandbox/website/rails/cookbook/public" > <Directory "c:/sandbox/website/rails/cookbook/public/"> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > AddHandler cgi-script .cgi > AddHandler fastcgi-script .fcgi > </Directory> ></VirtualHost> > > >What am I doing wrong? > > >Regards, > >Frank Rocco >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
This seems to be a big pain as compared to php or jsp. I can just place the app folder in the directory and call it. I check ed on your link, but I do not understand how to get this working. Is Apache the only way on Windows? Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >Subject: RE: [Rails] newbie - Apache problem two apps >Date: Thu, 1 Dec 2005 15:12:05 -0600 > >Heheheheh that can be a HUGE pain in the butt and it depends largely on >what OS you''re using. Most folks don''t do it that way... They prefer to >use vhosts. > >http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOn >OneMachine > >Take a look around the wiki... A lot of these questions are answered >there. > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco >Sent: Thursday, December 01, 2005 2:38 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: RE: [Rails] newbie - Apache problem two apps > > >ok, > >How do I configure Apache to allow me to run more than one app? > >example: > >http://localhost/app1 >http://localhost/app2 > > > >Regards, > >Frank Rocco >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > > >From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> > >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > >Subject: RE: [Rails] newbie - Apache problem two apps > >Date: Thu, 1 Dec 2005 14:27:54 -0600 > > > >Just a quick guess, but those are virtual hosts, and they need to have > >two separate servernames. (right now they''re both rails, and they''re > >both listening on the same port and address, so they''ll conflict. > > > > You''ll also need to add the servername to your hosts file. > > > > > > > >-----Original Message----- > >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco > >Sent: Thursday, December 01, 2005 1:51 PM > >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >Subject: [Rails] newbie - Apache problem two apps > > > > > >Hello, > > > >I have Apache working with one app as > > > ><VirtualHost *> > > ServerName rails > > DocumentRoot "c:/sandbox/website/rails/Test/public" > > <Directory "c:/sandbox/website/rails/Test/public/"> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > AddHandler cgi-script .cgi > > AddHandler fastcgi-script .fcgi > > </Directory> > ></VirtualHost> > > > >When I add a second app, it fails. > >second app as > ><VirtualHost *> > > ServerName rails > > DocumentRoot "c:/sandbox/website/rails/cookbook/public" > > <Directory "c:/sandbox/website/rails/cookbook/public/"> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > AddHandler cgi-script .cgi > > AddHandler fastcgi-script .fcgi > > </Directory> > ></VirtualHost> > > > > > >What am I doing wrong? > > > > > >Regards, > > > >Frank Rocco > >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails
Frank Rocco wrote:> This seems to be a big pain as compared to php or jsp. > I can just place the app folder in the directory and call it.True, but PHP and JSP is all about serving souped-up web pages. Rails is about building web-based applications, and things can be very different when you cross over that line (no matter how blurry PHP and JSP like to make it ;). -Brian
Frank: InstantRails is the best way on Windows... I''m currently hacking IIS but it''s a really big pain. Rails is pretty easy to set up on a Linux / unix environment. That''s because nobody here other than Curt Hibbs cares about Windows (I''m just kidding, you guys!) Seriously, though... I don''t think we''re to a point where I would be completely comfortable putting a production Rails app on Windows. If I were you, I wouldn''t worry about this until you have a couple of working apps that you want to deploy. There are lots of ways to deploy multiple apps, but I think you have to understand how Rails works. It took me a bit to get it. Look at the wiki article again after you''ve got some Rails experience and it should come a bit easier. Or you can just go pay for some app hosting :) If you''re still interested in setting up Apache for multiple apps, let me know where you''re getting stuck and I''ll attempt to assist you. Be aware that you want to ensure that you''re using FastCGI with Apache, because otherwise you''ll be really unhappy with Rails'' performance. Additionally, there''s the newer SCGI (which InstantRails uses) and this is a bit more tricky for multiple apps. -Brian -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco Sent: Thursday, December 01, 2005 3:39 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails] newbie - Apache problem two apps This seems to be a big pain as compared to php or jsp. I can just place the app folder in the directory and call it. I check ed on your link, but I do not understand how to get this working. Is Apache the only way on Windows? Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >Subject: RE: [Rails] newbie - Apache problem two apps >Date: Thu, 1 Dec 2005 15:12:05 -0600 > >Heheheheh that can be a HUGE pain in the butt and it depends largely on>what OS you''re using. Most folks don''t do it that way... They prefer >to use vhosts. > >http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppO >n >OneMachine > >Take a look around the wiki... A lot of these questions are answered >there. > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco >Sent: Thursday, December 01, 2005 2:38 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: RE: [Rails] newbie - Apache problem two apps > > >ok, > >How do I configure Apache to allow me to run more than one app? > >example: > >http://localhost/app1 >http://localhost/app2 > > > >Regards, > >Frank Rocco >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > > >From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> > >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > >Subject: RE: [Rails] newbie - Apache problem two apps > >Date: Thu, 1 Dec 2005 14:27:54 -0600 > > > >Just a quick guess, but those are virtual hosts, and they need to > >have two separate servernames. (right now they''re both rails, and > >they''re both listening on the same port and address, so they''ll > >conflict. > > > > You''ll also need to add the servername to your hosts file. > > > > > > > >-----Original Message----- > >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco > >Sent: Thursday, December 01, 2005 1:51 PM > >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >Subject: [Rails] newbie - Apache problem two apps > > > > > >Hello, > > > >I have Apache working with one app as > > > ><VirtualHost *> > > ServerName rails > > DocumentRoot "c:/sandbox/website/rails/Test/public" > > <Directory "c:/sandbox/website/rails/Test/public/"> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > AddHandler cgi-script .cgi > > AddHandler fastcgi-script .fcgi > > </Directory> > ></VirtualHost> > > > >When I add a second app, it fails. > >second app as > ><VirtualHost *> > > ServerName rails > > DocumentRoot "c:/sandbox/website/rails/cookbook/public" > > <Directory "c:/sandbox/website/rails/cookbook/public/"> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > AddHandler cgi-script .cgi > > AddHandler fastcgi-script .fcgi > > </Directory> > ></VirtualHost> > > > > > >What am I doing wrong? > > > > > >Regards, > > > >Frank Rocco > >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ok, thanks... I will let you know when I get to the point of deployment. I am just trying to see what pitfalls I will run into, and this is a big one for me. Regards, Frank Rocco farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >Subject: RE: [Rails] newbie - Apache problem two apps >Date: Thu, 1 Dec 2005 16:17:09 -0600 > >Frank: > >InstantRails is the best way on Windows... I''m currently hacking IIS but >it''s a really big pain. > >Rails is pretty easy to set up on a Linux / unix environment. That''s >because nobody here other than Curt Hibbs cares about Windows (I''m just >kidding, you guys!) Seriously, though... I don''t think we''re to a point >where I would be completely comfortable putting a production Rails app >on Windows. > >If I were you, I wouldn''t worry about this until you have a couple of >working apps that you want to deploy. There are lots of ways to deploy >multiple apps, but I think you have to understand how Rails works. It >took me a bit to get it. Look at the wiki article again after you''ve >got some Rails experience and it should come a bit easier. > >Or you can just go pay for some app hosting :) > >If you''re still interested in setting up Apache for multiple apps, let >me know where you''re getting stuck and I''ll attempt to assist you. Be >aware that you want to ensure that you''re using FastCGI with Apache, >because otherwise you''ll be really unhappy with Rails'' performance. >Additionally, there''s the newer SCGI (which InstantRails uses) and this >is a bit more tricky for multiple apps. > >-Brian > > >-----Original Message----- >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco >Sent: Thursday, December 01, 2005 3:39 PM >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: RE: [Rails] newbie - Apache problem two apps > > >This seems to be a big pain as compared to php or jsp. >I can just place the app folder in the directory and call it. > >I check ed on your link, but I do not understand how to get this >working. Is Apache the only way on Windows? > > > >Regards, > >Frank Rocco >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > > >From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> > >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > >Subject: RE: [Rails] newbie - Apache problem two apps > >Date: Thu, 1 Dec 2005 15:12:05 -0600 > > > >Heheheheh that can be a HUGE pain in the butt and it depends largely on > > >what OS you''re using. Most folks don''t do it that way... They prefer > >to use vhosts. > > > >http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppO > >n > >OneMachine > > > >Take a look around the wiki... A lot of these questions are answered > >there. > > > > > >-----Original Message----- > >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco > >Sent: Thursday, December 01, 2005 2:38 PM > >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >Subject: RE: [Rails] newbie - Apache problem two apps > > > > > >ok, > > > >How do I configure Apache to allow me to run more than one app? > > > >example: > > > >http://localhost/app1 > >http://localhost/app2 > > > > > > > >Regards, > > > >Frank Rocco > >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > > > > > > > > >From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> > > >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > >To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > >Subject: RE: [Rails] newbie - Apache problem two apps > > >Date: Thu, 1 Dec 2005 14:27:54 -0600 > > > > > >Just a quick guess, but those are virtual hosts, and they need to > > >have two separate servernames. (right now they''re both rails, and > > >they''re both listening on the same port and address, so they''ll > > >conflict. > > > > > > You''ll also need to add the servername to your hosts file. > > > > > > > > > > > >-----Original Message----- > > >From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > >[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Rocco > > >Sent: Thursday, December 01, 2005 1:51 PM > > >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > >Subject: [Rails] newbie - Apache problem two apps > > > > > > > > >Hello, > > > > > >I have Apache working with one app as > > > > > ><VirtualHost *> > > > ServerName rails > > > DocumentRoot "c:/sandbox/website/rails/Test/public" > > > <Directory "c:/sandbox/website/rails/Test/public/"> > > > Options ExecCGI FollowSymLinks > > > AllowOverride all > > > Allow from all > > > Order allow,deny > > > AddHandler cgi-script .cgi > > > AddHandler fastcgi-script .fcgi > > > </Directory> > > ></VirtualHost> > > > > > >When I add a second app, it fails. > > >second app as > > ><VirtualHost *> > > > ServerName rails > > > DocumentRoot "c:/sandbox/website/rails/cookbook/public" > > > <Directory "c:/sandbox/website/rails/cookbook/public/"> > > > Options ExecCGI FollowSymLinks > > > AllowOverride all > > > Allow from all > > > Order allow,deny > > > AddHandler cgi-script .cgi > > > AddHandler fastcgi-script .fcgi > > > </Directory> > > ></VirtualHost> > > > > > > > > >What am I doing wrong? > > > > > > > > >Regards, > > > > > >Frank Rocco > > >farocco-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org > > > > > > > > >_______________________________________________ > > >Rails mailing list > > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ > > >Rails mailing list > > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > >http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails
I was reading the documentation about ActiveRecord and this line caught my eye ...which again gives Product#name and Product#name=(new_name) Why is it that sometimes a dot notation is used and sometimes the #? The same thing is true in css where they use .blue for a class and #blue for an id. Your help will help me digest my dinner. bruce _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 2/12/2005, at 2:16 PM, Bruce Balmer wrote:> I was reading the documentation about ActiveRecord and this line > caught my eye > > ...which again gives Product#name and Product#name=(new_name) > > Why is it that sometimes a dot notation is used and sometimes the #?By convention # indicates an instance method and . indicates a class method, for example. Product.find(:all) indicates that this is valid code, whereas Product#name shows that you''ll need to create a Product instance first. That''s what I remember from the Pickaxe anyway. -- Phillip Hutchings phillip.hutchings-QrR4M9swfipWk0Htik3J/w@public.gmane.org
Thanks Phillip. My dinner is duly digested. Perhaps I should pick up this pickaxe book. Is it the free download off the web or is this something else. I bought Agile web development. Happy to buy this if it will save you answering hundreds of questions from me. bruce On 1-Dec-05, at 6:23 PM, Phillip Hutchings wrote:> > On 2/12/2005, at 2:16 PM, Bruce Balmer wrote: > >> I was reading the documentation about ActiveRecord and this line >> caught my eye >> >> ...which again gives Product#name and Product#name=(new_name) >> >> Why is it that sometimes a dot notation is used and sometimes the #? > > By convention # indicates an instance method and . indicates a > class method, for example. Product.find(:all) indicates that this > is valid code, whereas Product#name shows that you''ll need to > create a Product instance first. > > That''s what I remember from the Pickaxe anyway. > -- > Phillip Hutchings > phillip.hutchings-QrR4M9swfipWk0Htik3J/w@public.gmane.org > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 2/12/2005, at 3:51 PM, Bruce Balmer wrote:> Thanks Phillip. My dinner is duly digested. Perhaps I should pick > up this pickaxe book. Is it the free download off the web or is > this something else. I bought Agile web development. Happy to buy > this if it will save you answering hundreds of questions from me.You can get the Ruby 1.6 version from http://www.rubycentral.com/ book/ or pick up the latest from http://pragmaticprogrammer.com/ titles/ruby/index.html. I would definitely recommend it, it explains some of the weirder constructs you see and why they work, they make a lot more sense after that. -- Phillip Hutchings phillip.hutchings-QrR4M9swfipWk0Htik3J/w@public.gmane.org