Ok, problem solved! location ~ "/v/(.+)" { root /path/to/nfs; rewrite "^/v/(\d*)" /v/0000000000$1/$1; rewrite "^/v/(\d*)(\d{3})(\d{3})(\d{3})(\d{2})/(\d*)" /$2/$3/$4/$5/$6 break; default_type video/mp4; expires max; } The first rewrite adds the needed zeros, then the second one parses theby waldemar - How to...
Hi folks. I've been assigned to create some new rewrite rules for our static-content servers (due to a change in our file system). This structure is based on the id of the elements, if I want to get an element with id 484792 the url would be: http://content.domain.com/v/484792 now, I'm trying nginx to serve the file from the path: /nfs/video/000/004/847/92/484792 more examples: http://coby waldemar - How to...
![]() |
![]() |
![]() |
![]() |
|