@Frederick: thank you, i know about the wildcard record to catch all the requests and give them to a default application. do you know if it's possible to have a structure like this?
maindomain.com first.users.maindomain.com second.users.maindomain.com userdomain.com -> third.users.maindomain.com All run the same rails application, but every user have their own subdomain (i can't use a third level like first.maindomain.com because it would be a chaos having other subdomains), and they can have an own domain to point to their subdomain. The wildcard in this case will point to the application, but how tell apache and the rails app that the domain requested is for a given subdomain? Does peter's approach work for external domains too? (obviously the vhost would be both *.users.maindomain.com and * to chatch all external requests and redirect to the right subdomain) @Peter: thank you too, i'll look into account_location.. i think that with subdomains won't be a big problem. instead i'm more worried about user's own domains :) --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

