# Proxy\_store

**URL:** <https://www.ruby-forum.com/t/proxy-store/209008>\
**Category:** NGINX\
**Created:** [July 2, 2011, 8:10pm UTC](https://www.ruby-forum.com/t/proxy-store/209008 "2011-07-02T20:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 2, 2011, 8:10pm UTC](https://www.ruby-forum.com/t/proxy-store/209008/1 "2011-07-02T20:10:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Hector\_Danniel\_Paz\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Hector\_Danniel\_Paz\_S](https://www.ruby-forum.com/u/Hector_Danniel_Paz_S)\
**Post date:** [July 2, 2011, 8:22pm UTC](https://www.ruby-forum.com/t/proxy-store/209008/2 "2011-07-02T20:22:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hector\_Danniel\_Paz\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Hector\_Danniel\_Paz\_S](https://www.ruby-forum.com/u/Hector_Danniel_Paz_S)\
**Post date:** [July 4, 2011, 5:56pm UTC](https://www.ruby-forum.com/t/proxy-store/209008/3 "2011-07-04T17:56:43Z")

</div>

Thanks. I put open\_file\_cache\_errors off , and everything is working  
fine.

Regards,

Hctor
