syntax: scgi_temp_path path [level1 [level2 [level3]]]
default: scgi_temp_path scgi_temp
context: http, server, location
This directive sets the path where to store temporary files received from another server. It is possible to use up to 3 levels of subdirectories to create hashed storage. Level value specifies how many symbols will be used for hashing. For example, in the following configuration:
scgi_temp_path /spool/nginx/scgi_temp 1 2;
Temporary file name may look like:
/spool/nginx/scgi_temp/7/45/00000123457
The request headers are transferred to the SCGI-server in the form of parameters. In the applications and the scripts run from the SCGI-server, these parameters are usually accessible in the form of environment variables. For example, the header "User-agent" is transferred as parameter HTTP_USER_AGENT. Besides the headers of the HTTP request, it is possible to transfer arbitrary parameters with the aid of directive scgi_param.