i find that this line (r'.*?:https?://apps\.cires\.pt:.* /*empre$anything*', r'/empre/$anything'), instead of this (r'.*?:https?://apps\.cires\.pt:.* /empre*/*$anything', r'/empre/$anything'),
redirects to another app Problem solved for app routing ( however as i have two base domains pointing to my web2py www.cires.pt and www.previnil.pt as the default app is welcome (where i have my www.cires.pt project ) this line * (r'.*?:https?://www\.previnil\.pt:.* /$anything', r'/previnil/$anything'), * *or this* * (r'.*?:https?://www\.previnil\.pt:.* $anything', r'/previnil/$anything'),* * * * * do not redirect to previnil app i´m missing something here. I need to sleep 2013/10/27 António Ramos <[email protected]> > i installed a clean install of web2py and a simple line in routes.py does > not route > > so i go with this in my welcome default controller. > > if request.env['http_host']=="www.previnil.pt": > redirect(URL(a='previnil',c='default',f='index')) > > > So sad that a simple line produces so much waste of time. > > > Also routes could be visible in admin > > > > > 2013/10/26 Jonathan Lundell <[email protected]> > >> On 26 Oct 2013, at 2:40 PM, António Ramos <[email protected]> wrote: >> >> sorry but dont know how to turn on rewrite logging >> >> >> Copy the logging.conf example file to the web2py root as logging.conf. >> >> The logger you want to enable is web2py.rewrite, and set the log >> parameter in routes.py to something higher that debug. logging='warning' >> should do the trick. I've been using rotatingFileHandler, which works well. >> The stock logging.conf example file looks about right to me, without >> further changes. >> >> -- >> 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/groups/opt_out. >> > > -- 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/groups/opt_out.

