Answer the question
In order to leave comments, you need to log in
Is it possible to rewrite in nginx to the latest file?
There is a certain URL, say /image.jpg, and a folder with a bunch of files, where a new one with an unknown name is periodically written.
Is there a way to write rewrite so that when a URL is requested, the most recently downloaded file is always returned?
So without php...
Answer the question
In order to leave comments, you need to log in
Rewrite - no way.
You can use pearl or lua, but it's easier then on php, since you know it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question