proxy_store

Maxim Dounin mdounin at mdounin.ru
Sat Jul 2 22:21:58 MSD 2011


Hello!

On Sat, Jul 02, 2011 at 07:10:05PM +0100, Hector Danniel Paz Trillo wrote:

> I'm using proxy_store for dynamic upload of file from the backend to a
> proxy server. For differents reasons some files are not uploaded with
> this method, and I want to run a process in the backend to syncronize
> the files between the servers.
> 
> Problem is that nginx doesn't recognize the files uploaded throught
> this process. It says the file doesn't exist and I need to restart
> nginx and then it works.
> 
> I understand nginx is looking at some kind of internal table to check
> if the file has been stored and not looking directly at the location
> of the file. Is there a way to avoid the restart? Did I get something
> wrong?

Looks like you use open_file_cache with open_file_cache_errors on.  
Just tune settings as appropriate in your setup (or switch 
open_file_cache_errors off to make sure nginx will immediately 
recognize new files).

Maxim Dounin



More information about the nginx mailing list