#snippets/legacy_mappings.conf map $uri $legacy_mapping { ~^/assets/(?.+)$ $filename; default $uri; } map $filename $modified_filename { ~/(.*) $1---; default $filename; }