[web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Joseph.Piron
Ah, and another simple question, maybe dull.. :) Does the domains option have any use when web2py's app is served from a apache or nginx frontend by wsgi ? Le lundi 2 avril 2012 11:57:37 UTC+2, Joseph.Piron a écrit : Hi all, For one of my applications, I use web2py as a rest backend for a

[web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Anthony
If you want the default app removed from static URLs, you have to set map_static=True in your router (see http://code.google.com/p/web2py/source/browse/router.example.py#64). However, if your web server (e.g., Apache) is set up to serve static files directly, you don't want to re-write your

Re: [web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Joseph Piron
Nice! I am gonna try that ! On 02 Apr 2012, at 14:50, Anthony wrote: If you want the default app removed from static URLs, you have to set map_static=True in your router (see http://code.google.com/p/web2py/source/browse/router.example.py#64). However, if your web server (e.g., Apache)

[web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Anthony
However, if your web server (e.g., Apache) is set up to serve static files directly, you don't want to re-write your outgoing static urls unless your server knows how to map them as incoming urls. FYI, I think that's why map_static defaults to False -- the assumption is that web2py will

Re: [web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Jonathan Lundell
On Apr 2, 2012, at 3:27 AM, Joseph.Piron wrote: Ah, and another simple question, maybe dull.. :) Does the domains option have any use when web2py's app is served from a apache or nginx frontend by wsgi ? Maybe. There are two reasons (that I can think of) why it might not. One is whether

Re: [web2py] Re: Routes.py parameter, rewrite rules and redirect

2012-04-02 Thread Joseph Piron
Indeed, makes sense. Thanks for the confirmation :) On 02 Apr 2012, at 16:02, Jonathan Lundell wrote: On Apr 2, 2012, at 3:27 AM, Joseph.Piron wrote: Ah, and another simple question, maybe dull.. :) Does the domains option have any use when web2py's app is served from a apache or nginx