I think it should be: routes_in = ( ('/admin/$anything', '/admin/$anything'), ('/app2/$anything', '/app2/$anything'), ('/$anything', '/app1/$anything'), ) routes_out = [(b,a) for (a,b) in routes_in]
On Saturday, 14 December 2013 12:51:30 UTC-6, Alan Etkin wrote: > > This is a mail mistakenly sent to web2py-developers. I think that the > note about not sending questions to the developers list is usually > ignored. Maybe it could be made available somewhere else (perhaps at > web2py.com). > > Original post: > > I have a nginx server, one domain, and two web2py applications > I want to go to domain.com/ -> goes to app1 > and domain.com/app2 -> goes to app2 > > Here is my routes.py file: > > routes_in = ( > ('/admin/$anything', '/admin/$anything'), > ('/$anything', '/app1/$anything'), > ('/app2/$anything', '/app2/$anything'), > > > ) > routes_out = (('/app1/$anything', '/$anything', '/app2/$anything'),) > > when I go to domain.com -> it does bring app1 up correctly > However, when I go to domain.com/app2 I get invalid controller > -- 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/groups/opt_out.