atom feed4 messages in ru.sysoev.nginxRe: Q: about try_files and regex loca...
FromSent OnAttachments
Aleksandar LazicNov 11, 2011 4:15 am 
Valentin V. BartenevNov 11, 2011 5:14 am 
Maxim DouninNov 11, 2011 5:17 am 
Aleksandar LazicNov 11, 2011 3:13 pm 
Subject:Re: Q: about try_files and regex location
From:Valentin V. Bartenev (ne@vbart.ru)
Date:Nov 11, 2011 5:14:28 am
List:ru.sysoev.nginx

On Friday 11 November 2011 16:16:25 Aleksandar Lazic wrote: [...]

### http { server { ... location ~ ^/(share|alfresco)(/res)?(.*$) {

- location ~ ^/(share|alfresco)(/res)?(.*$) { + location ~ ^/(share|alfresco)(/res)?(.*)$ {

alias /home/alfresco/alfresco-4.0.b/tomcat/webapps;

[...]

http://nginx.org/en/docs/http/ngx_http_core_module.html#alias

The "alias" directive in your config replaces request part of path to file after successful "try_files" check.