Hi I am very new to Ruby and Rails. I am trying to setup a simple application on Apache with MySQL on a Fedora system. I have trouble setting up fast cgi, I am trying to deal with it. But is fast cgi mandatory? From what I have read it boosts the performance of the rails application. I tried a scaffold application and I am able to run it using webbrick. I am trying to set this up in Apache but I am stuck with changing the default route. I have enabled CGI in apache and when I point my browser to the public folder I am able to see the "Congratulations, you''ve put Ruby on Rails!" page. But I am not able to configure it run the application. The name of the application is blogtest and I have set the Alias (/blogtest) and Directory options in Apache''s httpd.conf file to the public folder of the rails application. The application has a controller named admin (admin_controller.rb) I tried my best to search on the net and find out something I could understand but wasn''t able to figure out. If someone could explain me how to configure and help me understand how it all works that will be great. Thanks Ramesh
> > But is fast cgi mandatory? From what I have read it boosts the > performance of the rails application.No ,its not mandatory ..atleast not for development phase I tried a scaffold application and I am able to run it using webbrick.> I am trying to set this up in Apache but I am stuck with changing the > default route.Have you setup a Virtual host or a Directory alias in Apache ? I guess if you are seeing the Rails welcome page that must be taken care of. So open the routes.rb and add (as given in the comments ) something like this map.connect '' '', :controller => "admin" ,:action =>''index'' _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Delete the index.html file if you haven''t already. The .htaccess file looks for that first. If it''s found, your application won''t start. - Rabbit --- On 12/29/05, Vivek Krishna <krishna.vivek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > But is fast cgi mandatory? From what I have read it boosts the > > performance of the rails application. > > No ,its not mandatory ..atleast not for development phase > > I tried a scaffold application and I am able to run it using webbrick. > > I am trying to set this up in Apache but I am stuck with changing the > > default route. > > > Have you setup a Virtual host or a Directory alias in Apache ? > I guess if you are seeing the Rails welcome page that must be taken care > of. > So open the routes.rb and add (as given in the comments ) something like > this > map.connect '' '', :controller => "admin" ,:action =>''index'' > > > _______________________________________________ > 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