nginx学习随笔--client_body_temp_path

来源:互联网 发布:免费网络短信发送平台 编辑:程序博客网 时间:2024/06/05 23:48

nginx学习随笔–client_body_temp_path

英文原文:

Syntax: client_body_temp_path path [level1 [level2 [level3]]];Default:    client_body_temp_path client_body_temp;Context:    http, server, location

Defines a directory for storing temporary files holding client request bodies. Up to three-level subdirectory hierarchy can be used under the specified directory. For example, in the following configuration:

client_body_temp_path /spool/nginx/client_temp 1 2;

a path to a temporary file might look like this:

spool/nginx/client_temp/7/45/00000123457

中文翻译:

为存储承载客户端请求正文的临时文件定义存储目录。在指定目录下可支持高达3层子目录结构。例如,下面的配置:
client_body_temp_path /spool/nginx/client_temp 1 2;
临时文件的路径可能是下面的情况:
/spool/nginx/client_temp/7/45/00000123457

这里的level1,2,3如果有值就代表存在一级,二级,三级子目录。

目录名是由数字进行命名的,所以这里的具体的值就是代表目录名的数字位数。

原创粉丝点击