You can do it my friend I have my DNS servers configurated of way that I can use all local subdomains I need.
http://www.local.web2py.es/ http://sub2.local.web2py.es/ http://acme.local.web2py.es:8000/ Instead 127.0.0.1, I use real subdomains resolved at 127.0.0.1 :P > ping www.local.web2py.es > Resolved at 127.0.0.1: bytes=32 tiempo<1m TTL=128 All subdomains of local.web2py.es are resolved at 127.0.0.1 http://*.local.web2py.es:*/ You are free to use for your local tests. For your production server, instead "local.web2py.es" use "yourdomain.com"