# About proxy\_max\_temp\_file\_size

**URL:** <https://www.ruby-forum.com/t/about-proxy-max-temp-file-size/209584>\
**Category:** NGINX\
**Created:** [July 18, 2011, 7:58am UTC](https://www.ruby-forum.com/t/about-proxy-max-temp-file-size/209584 "2011-07-18T07:58:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 18, 2011, 7:58am UTC](https://www.ruby-forum.com/t/about-proxy-max-temp-file-size/209584/1 "2011-07-18T07:58:55Z")

</div>

I set proxy\_max\_temp\_file\_size = 0; or proxy\_max\_temp\_file\_size = 20m;  
and download a 30m file,the nginx still wirte a temporary file.  
I see from nginx wiki:  
If file is larger than this size, it will be served synchronously from  
upstream server rather than buffered to disk.  
If proxy\_max\_temp\_file\_size is equal to zero, temporary files usage will  
be disabled.

I understood when the file size over proxy\_max\_temp\_file\_size,it  
shouldn’t write to proxy\_temp\_path.  
But it seem doesn’t work.  
I understand wrong?

I hope somebody can help me and shed some light on what’s going wrong.

2011-07-18

chinix
