All I do to handle sub-domains is check to see if the sub-domain matches a 
user sub-domain. For example:

user = 
db(db.auth_user.sub_domain==request.env.http_host.split('.')[0]).select().first()
 
or ''

Reply via email to