On Feb 1, 2011, at 8:50 PM, Prashanth wrote:
> 
> 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) .

The domain should appear in request.env.http_host, I think. If you split it on 
'.' you should be OK.

> 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?

I'm not sure what you mean by that.

Reply via email to