Re: [web2py] Re: Dynamic Subdomains

2014-06-10 Thread Tito Garrido
Hi Massimo, Would you recommend to setup anything on routes.py? I have the same question of Carlos... In my application all users will select a username and a subdomain will be available user1.example.com user2.example.com Every time that they use this URL it would go to a specific controller fun

[web2py] Re: Dynamic Subdomains

2013-09-03 Thread Massimo Di Pierro
This is trivial. You just need a DNS entry for example.com and not for the specific domains (this is the default anyway). Than in web2py you read the entry from request.env.http_host If you use apache (you do not have to use apache) make sure you have a catch all virtual host On Monday,