Hi all, I''m implementing a new site that will need domains like this: newyork.foo.com, chicago.foo.com. Each of these domains will be a self contained community. Locations is a table in the db. The user will be able to login to a specific Location and then add content to it. When a user visits newyork.foo.com for example, I need to scope all the content to that specific location. new locations do not need to be created dynamically. Can anyone recommend a good way of setting up this type of environment? I''m using Apache 2.2 thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello - try http://wiki.rubyonrails.com/rails/pages/HowToUseSubdomainsAsAccountKeys --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This <http://redhanded.hobix.com/bits/dynamicVhostsOneLinerForRails.html> may help you. blinking bear wrote:> Hi all, > > I''m implementing a new site that will need domains like this: > newyork.foo.com <http://newyork.foo.com>, chicago.foo.com > <http://chicago.foo.com>. Each of these domains will be a self > contained community. Locations is a table in the db. The user will be > able to login to a specific Location and then add content to it. When > a user visits newyork.foo.com <http://newyork.foo.com> for example, I > need to scope all the content to that specific location. new > locations do not need to be created dynamically. Can anyone recommend > a good way of setting up this type of environment? I''m using Apache 2.2 > > thanks! > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Those are helpful links, thanks. But where my problem differs is that the subdomain is not user specifc, rather it is group specific. An Account belongs to a city and a city name is what is used for the subdomain. On 10/10/06, Jason Norris <jasonmnorris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > This <http://redhanded.hobix.com/bits/dynamicVhostsOneLinerForRails.html>may help you. > > blinking bear wrote: > > Hi all, > > I''m implementing a new site that will need domains like this: > newyork.foo.com, chicago.foo.com. Each of these domains will be a self > contained community. Locations is a table in the db. The user will be able > to login to a specific Location and then add content to it. When a user > visits newyork.foo.com for example, I need to scope all the content to > that specific location. new locations do not need to be created > dynamically. Can anyone recommend a good way of setting up this type of > environment? I''m using Apache 2.2 > > thanks! > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s the same principal. Just get the subdomain use it to find the appropriate city, group, cow, spaceship, whatever... Starr --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---