I am developing a network application in web2py which consists of vertices and edges. Every vertex has a site which is dynamicalIy created within the init application. I added a domain and subdomains for my own domain to routes.py
routers = dict( # base router BASE = dict( domains = { 'domain.com' : 'init', 'www.domain.com' : 'init', 'ldc.domain.com' : 'admin', 'my.domain.com' : 'controlpanel', } ), ) Someone asked me if he could point his domain to his site within the init application. I wonder whether that is possible. It would mean that for example I have to add thess domains to web2py's routes.py 'otherdomain.com': 'init/default/router/6' 'www.otherdomain.com: 'init/default/router/6' where 'init' is the application, 'default' is the controller, 'router' is the function and '6' is the vertex ID, the router would then sets the args and redirects the request to 'init/main/index/6/1/5/24'which renders the site. Is this possible? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/97851586-764f-46fd-b59b-0c2517b9698cn%40googlegroups.com.