Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running strace on nginx running as a caching reverse proxy server, I can see that it creates cache files in /var/lib/nginx/proxy and then moves them to my configured proxy_cache_path.

Is there any way to make it write cache files directory to my configured directory, or is it possible to change the temporary directory cache path?

share|improve this question
up vote 4 down vote accepted

It's possible using proxy_temp_path configuration setting (here's the reference).

share|improve this answer
cool, thankssss – tom Aug 8 '12 at 15:09
I am trying to enable nginx accept uploading 5GB files to the backend but it seems that your command does not have any effect, still running out of space on root parition and still not knowing how to tune it. – sorin Jul 24 '15 at 13:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.