You are pointing client1 and client2 to the same representation of the routes. It won't work properly.
If you have separate domains for separate clients, see scripts/autoroutes.py If you want to serve customized to different clients, you might want to do http://127.0.0.1:8000/sam/<appname>/default/index/client1 http://127.0.0.1:8000/sam/<appname>/default/index/client2 and have index pull request.args(0) to match to correct client On Thursday, July 24, 2014 12:41:29 AM UTC+8, Michael Gheith wrote: > > What I'm trying to do is to have my application serve 2 different > customers via URLs like the following: > > http://127.0.0.1:8000/sam/client1/<appname>/default/index > http://127.0.0.1:8000/sam/client2/<appname>/default/index > > > My routes.py looks like: > > routes_in = ( > > ('/sam/client1/$a/$c/$f', '/$a/$c/$f'), ( > '/sam/client2/$a/$c/$f', '/$a/$c/$f') > > ) > > > routes_out = ( > > ('/$a/$c/$f', '/sam/client1/$a/$c/$f'), ('/$a/$c/$f', > '/sam/client2/$a/$c/$f') > > ) > > > This works great for client1. The minute I use client2 the links use > client1 mappings in the URL. I'm using the URL function for all my links. > Any ideas what I'm doing wrong? Perhaps this is an issue with web2py? > Please advise. > > > Thanks in advance! > M.G. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

