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
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
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)
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
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
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
6 matches
Mail list logo