Hello everybody, I am trying to route 2 subdomains to web2py through apache
Here is the config : - Apache 2.4 routing to https://www.sub1.domain.com AND https://www.sub2.domain.com (certificate is currently self-signed for development purposes) - In fact "www.sub1.domain.com" and "www.sub2.domain.com" start the same web2py instance through wsgihandler.py - Then I am currently trying to route subdomains "www.sub1.domain.com" to "app1" AND "www.sub2.domain.com" to "app2" Here is my routes.py : routers = dict{ BASE = dict{ domains = { 'www.sub1.domain.com' : 'app1', 'www.sub2.domain.com' : 'app2', } }, } In this configuration, app1 works and app2 crashes with exception "getattr() : attribute name must be string" When I invert the 2 domain lines (app2 declared first, then app1), then app2 works, and app1 crashes It is always the app declared first that works, and app declared second that crashes On top of this, when I again declare app1 first and app2 second, www.sub1.domain.com works, and www.sub2.domain.com crashes (as expected with first tests), BUT www.sub1.domain.com/app2 works !!! It means that apps are OK, but routing somehow is generating this behavior Does anyone has an idea of what is wrong in my settings, and how I could fix this ? Thanks in advance Regis Wernet -- 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. For more options, visit https://groups.google.com/d/optout.