Im new to web2py .. I'm building an application which requires to create subdomain which will be the username.. (like wordpress.com) . So for example.. user1.mydomain.com will be user1's area in my website.
I have set the cname records for *.mydomain.com to point mydomain.com Now my question is how can I make user1 part of the domain globally available for all my controllers ( maybe in request.vars .. not sure) . Also user1 must be able to point user1.mydomain.com to his own domain ( custom domain feature) for the application interface. How can I achieve this?