Check for existing remote files

Vitaly Tskhovrebov vt at chgk.info
Thu Jan 13 12:15:57 MSK 2011


On 1/13/2011 11:40 AM, mignev wrote:

> However, my question ofcource :) Can you tell me guys how I can check
> for existing remote file.
> What i mean:
> how can i check http://www.google.com/logo.png or
> http://dl.dropbox.com/u/3720261/testdir/file.zip

Technically, of course you can build some solution for that, even do it 
in your application nginx serves. But think about network delays that 
would be raise for each check. It's really not for fast philosophy.

You have to find workaround. I.e., a script running under the cron every 
minute, which checks that www.gooogle.com/logo.png exists, and creates 
file "exists" under some location, else removes it. And nginx will check 
about this file presence.



More information about the nginx mailing list