Proxy_store

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?

I’m using nginx 0.8.54

Regards

Hctor Paz

Hello!

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

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 D.

Thanks. I put open_file_cache_errors off , and everything is working
fine.

Regards,

Hctor