On Aug 25, 2011, at 4:48 PM, Kenneth Lundström wrote: > I'd like to have three types of routings: > > a) web2py.main_domain.com defaults to init, but you can choose the > application with web2py.main_domain.com > > b) testing.main_domain.com leads to application: testing > > c) development.main_domain.com leads to application: testing, > controller:ticket and function: create_new > > is this possible?
Not quite. The parametric router will come close, with something like this in the BASE router: default_application = "init", domains = { "testing.main_domain.com" : "testing", "development.main_domain.com" : "testing/ticket", }, ...I think, but it does not yet support per-controller default functions. I have a patch for per-controller default functions in the works, but it's not quite ready.