S
S
Sergey Savostin2015-02-06 15:37:54
Nginx
Sergey Savostin, 2015-02-06 15:37:54

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

1 answer(s)
V
Vlad Zhivotnev, 2015-02-06
@savostin

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 question

Ask a Question

731 491 924 answers to any question