How to make nginx remap a part of the URL without sending a redirection?
Assuming you've got a base path that's regexable, you can do something like:
location ~ ^/static/(././././.....)/[^/]+/(.*)$ {
alias /location/on/filesystem/$1/$2;
}
Nginx's alias directive is more flexible than Apache's equivalent.