Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a simple way of dealing with this directly in web2py by rewriting

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a simple way of dealing with this directly in web2py by rewriting

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Jonathan Lundell
On 6 Aug 2012, at 2:33 AM, Athelionas athelio...@gmail.com wrote: Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Jonathan Lundell
On 6 Aug 2012, at 2:33 AM, Athelionas athelio...@gmail.com wrote: Yes, it seems like that is the problem. I couldn't find a way of dealing with this case in routes.py so I guess my only option is to handle these cases separately in my nginx config. It is a shame, though, that there's not a

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-06 Thread Athelionas
This sounds like a nice approach to solve this issue without causing backwards incompatibilities. Thank you for your efforts :) 2012. augusztus 6., hétfő 16:11:22 UTC+2 időpontban Jonathan Lundell a következőt írta: On 6 Aug 2012, at 2:33 AM, Athelionas athelio...@gmail.com wrote: Yes, it

[web2py] Re: Configuring Nginx to serve static content directly

2012-08-05 Thread pbreit
Shouldn't it be: root /home/www-data/web2py/applications/myapp/; --

Re: [web2py] Re: Configuring Nginx to serve static content directly

2012-08-05 Thread Jonathan Lundell
On 5 Aug 2012, at 7:10 PM, pbreit pbreitenb...@gmail.com wrote: Shouldn't it be: root /home/www-data/web2py/applications/myapp/; No, he was saying it works OK without a language specified. Setting map_static=False (which is the default) means that static URLs have a full URL, including