These days all over the place I see something like http://john.blinksale.comand http://mary.blinksale.com My question is how to configure the server to have these subdomains dynamically. Any pointer to an article/tutorial/book will be helpful. Thanks. -=- Raj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Neeraj, We''ve recently done this with DHH''s account_location plugin. You can get it here (http://dev.rubyonrails.org/svn/rails/plugins/account_location). Then have your ISP enable wildcard subdomains for your site. This will allow ***.yourdomain.com to be routed to yourdomain.com and then the plugin will take care of the rest. You''ll still need to do some coding to get it to work with the way you''ve developed your user accounts. Sam On 9/26/06, Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > These days all over the place I see something like > http://john.blinksale.com and http://mary.blinksale.com > > My question is how to configure the server to have these subdomains > dynamically. Any pointer to an article/tutorial/book will be helpful. > > Thanks. > -=- Raj > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You could also do this with lighty and mod_mysql_vhost. or even mod_evhost if you don''t mind creating a directory dynamically instead of rows in a table. Vish On 9/26/06, Sam Schroeder <samuelschroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Neeraj, > > We''ve recently done this with DHH''s account_location plugin. You can get > it here (http://dev.rubyonrails.org/svn/rails/plugins/account_location ). > > Then have your ISP enable wildcard subdomains for your site. This will > allow ***.yourdomain.com to be routed to yourdomain.com and then the > plugin will take care of the rest. You''ll still need to do some coding to > get it to work with the way you''ve developed your user accounts. > > Sam > > > On 9/26/06, Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > These days all over the place I see something like > > http://john.blinksale.com and http://mary.blinksale.com > > > > My question is how to configure the server to have these subdomains > > dynamically. Any pointer to an article/tutorial/book will be helpful. > > > > Thanks. > > -=- Raj > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---