also a railscasts on that http://railscasts.com/episodes/221-subdomains-in-rails-3?view=asciicast
On Wed, May 30, 2012 at 9:03 AM, James Harton <[email protected]> wrote: > Hi John. > > This is covered in the "Rails routing from the outside in" Rails Guide: > http://guides.rubyonrails.org/routing.html#request-based-constraints > > > On Wednesday, May 30, 2012 11:00:02 AM UTC+12, John Clegg wrote: >> >> Hi Everyone, >> >> I just wanted to check how people are doing automatic sub-domain >> assignment these days. >> >> eg. I have an app that has creates a new sub domain when some one signs >> up. eg. mysite.blahhq.com and the next guy signups and creates >> fubar.blahhq.com and this gets forward to the write part of the application. >> >> My googling has told me that I can do some clever apache / nginx rules to >> do this. I'm trying to figure out how to do it automagically with no manual >> intervention. >> >> Any advice is much appreciated. >> >> Cheers >> >> John >> >> -- >> John Clegg >> >> > -- > You received this message because you are subscribed to the Google Groups > "WellRailed" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/wellrailed/-/VB-uxTFglaQJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/wellrailed?hl=en. -- Regards, Wei Feng 03 9005 3441 | M 0413 658 250 | [email protected] | http://wei.feng.id.au -- You received this message because you are subscribed to the Google Groups "WellRailed" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.
