Groups assigned a subdomain

Has anyone had success mapping specific groups to a subdomain? Is there any reason that this wouldn't be a good idea? Can someone offer advice on how to do this or where to look? Thanks!