There is a problem, inexperience in configuring Nginx can't handle it.
There is a site, it is one of the subfolders:
it has subfolders, but this is not so important. For example: customer_data/pictures/2008/07/30/a_1/places/13496/4c718.jpg
The name of the target file can be one of three things: 4c718.jpg, big_4c718.jpg and sm_4c718.jpg
And the task is to add the name of the file of arbitrary text in different languages. Ie to write to. htaccess that looks like this:
customer_data/pictures/2008/07/30/a_1/places/13496/__a photo of my бабки__4с718.јрд
Moreover, the additional separator text, you can choose what is convenient.
According to the materials of this
article have tried, but something somewhere doesn't add up.