mardi 28 janvier 2020

Mapping folders from different discs to the same endpoint NGINX

I have some discs, each one with multiple folders, inside each folder there are some images

disc 1 : folder1000, folder1001 ...
disc 2 : folder2000, folder2937 ...
disc N : folderN...

I need to point those discs to the same endpoint mydomain.com/images/

So the result should be this...

mydomain.com/images/folder1019/img34.jpg    this comes from disc1
mydomain.com/images/folder2073/img2346ab.jpg    this comes from disc2
mydomain.com/images/folder4083/imgabcdf.jpg   this comes from disc4
mydomain.com/images/folder5091/img8567.jpg    this comes from disc5
mydomain.com/images/folderN/img4565.jpg     this comes from discN

Using symlinks to the same folder is discarded, I just want to know if can I map the discs to the same url root.

I going to use NginX so I appreciate any expert who can help me to solve this




Aucun commentaire:

Enregistrer un commentaire