User Tools

Site Tools


software:nginx

nginx

Disable fastcgi_cache

If you have slow root disk (e.g. USB drive) or just don't want to write on the root disk (e.g. extend SSD life) you must move away your nginx cache folder.. Or.. I got some problems with fastcgi_cache, I don't know exactly what's the origin of the issue but nginx refused to use any other folder than /var/cache/nginx on the root disk. No symlinks, no mountpoint, no fastcgi_cache_path. This is not a real solution but for personal stuffs it's a quick workaround:

fastcgi_max_temp_file_size 0;

Insert the directive above inside your apps and everything will work well!

software/nginx.txt · Last modified: 2016/01/08 21:10 by Michele Porelli