aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-05 13:28 UTC
domain (not subdomain) routing
I have several websites that are all basically the same thing but with a different layout and a different primary controller - http://www.website1.com - has views/layouts/website1 and controllers/website1 - http://www.website2.com - has views/layouts/website2 and controllers/website2 Everything else is the same, DB, graphics, other views, etc... So I though ... - have 1 rails app - have a virtual host in apache for each virtual app - route requests for each domain to the same mongrel - have rails route based on DOMAIN Any idea how to do this. I''ll check out the source to the request_routing plugin. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes, you want the request routing plugin and the theme_support plugin. -- Building an e-commerce site with Rails? http://www.agilewebdevelopment.com/rails-ecommerce On Jan 5, 2007, at 5:28 AM, aktxyz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > I have several websites that are all basically the same thing but with > a different layout and a different primary controller > > - http://www.website1.com - has views/layouts/website1 and > controllers/website1 > - http://www.website2.com - has views/layouts/website2 and > controllers/website2 > > Everything else is the same, DB, graphics, other views, etc... > > So I though ... > > - have 1 rails app > - have a virtual host in apache for each virtual app > - route requests for each domain to the same mongrel > - have rails route based on DOMAIN > > Any idea how to do this. I''ll check out the source to the > request_routing plugin. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---