nginx学习随笔–proxy_temp_path
英文原文:
Syntax: proxy_temp_path path [level1 [level2 [level3]]];
Default: proxy_temp_path proxy_temp;
Context: http, server, location
Defines a directory for storing temporary files with data received from proxied servers. Up to three-level subdirectory hierarchy can be used underneath the specified directory. For example, in the following configuration:
proxy_temp_path /spool/nginx/proxy_temp 1 2;
a temporary file might look like this:
/spool/nginx/proxy_temp/7/45/00000123457
中文翻译:
为存储承载从代理服务器接收到的数据的临时文件定义目录。指定目录下支持3级子目录结构:
proxy_temp_path /spool/nginx/proxy_temp 1 2;
临时文件路径可能像这样:
/spool/nginx/proxy_temp/7/45/00000123457
这里的level1,2,3如果有值就代表存在一级,二级,三级子目录。
目录名是由数字进行命名的,所以这里的具体的值就是代表目录名的数字位数。