Well ... it seems that $uri is what I was looking for:
# ... = snip of extensions for readability purposes
location ~* ^(.*\.[^.]*)(jpg|jpeg|gif|png|...|woff|ttf|svg)(\?.*)?$ {
try_files $uri @apache;
}
I expanded the regexp a bit to be sure that I'm matching the text after the last dot in the uri.
Hope this helps somebody.
# ... = snip of extensions for readability purposes
location ~* ^(.*\.[^.]*)(jpg|jpeg|gif|png|...|woff|ttf|svg)(\?.*)?$ {
try_files $uri @apache;
}
I expanded the regexp a bit to be sure that I'm matching the text after the last dot in the uri.
Hope this helps somebody.