On 5 Aug 2012, at 7:10 PM, pbreit <[email protected]> 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 the app name. 

I think I know what the problem is, though. When a language is specified, the 
URL is /app/lang/static/..., which the router would map to 
/app/static/lang/..., but nginx is not.

I don't know the nginx mapping syntax. If possible, you want to map 
/app/en/static/... to /app/static/en/..., and the same for hu. I'm thinking 
that the router should have another variation to handle this case in a more 
straightforward way. Or else this case should always put the language in the 
same order as the physical file layout. I don't *think* that'd cause backward 
compatibility problems...

-- 



Reply via email to