Rock Roll
2008-Sep-11 04:55 UTC
How does the sub-domain like urls are created in web apps?
Hello, I registered in a site called basecamp. After I registered, they gave me a url like http://xxx.basecamp.com where i have to log in access my project management. I heard that basecamp is built in ruby on rails. I couldn''t get the point of building a subdomain like url. Can anyone give some guidance of how to create a sub domain like url using rails? Thanks in advance -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christian Lescuyer
2008-Sep-11 06:36 UTC
Re: How does the sub-domain like urls are created in web apps?
You can use subdomains for various purposes. One is to host different servers (eg mail.example.com and www.example.com), or to host different applications (eg blog-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org and forum-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org). I believe Basecamp use it to have nicer URLs. The standard way would be: //www.example.com/~rockroll/..., or //www.example.com/...?user_id=123456 //rockroll.example.com/... looks nicer. A few links: http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys http://www.jonathansng.com/ruby-on-rails/find-your-rails-subdomains/http://www.railsonwave.com/railsonwave/2007/7/10/howto-put-a-controller-under-a-ssl-subdomain Christian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---