Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_scgi_module.xml @ 1384:66ee77849563
Documented the use_temp_path parameter of the proxy_cache_path directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 24 Dec 2014 19:31:21 +0300 |
parents | 94cac978bda3 |
children | 8e7995bb8c6b |
comparison
equal
deleted
inserted
replaced
1383:0f63ac5c9463 | 1384:66ee77849563 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_scgi_module" | 10 <module name="Module ngx_http_scgi_module" |
11 link="/en/docs/http/ngx_http_scgi_module.html" | 11 link="/en/docs/http/ngx_http_scgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="14"> | 13 rev="15"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_scgi_module</literal> module allows passing | 18 The <literal>ngx_http_scgi_module</literal> module allows passing |
312 | 312 |
313 <directive name="scgi_cache_path"> | 313 <directive name="scgi_cache_path"> |
314 <syntax> | 314 <syntax> |
315 <value>path</value> | 315 <value>path</value> |
316 [<literal>levels</literal>=<value>levels</value>] | 316 [<literal>levels</literal>=<value>levels</value>] |
317 [<literal>use_temp_path</literal>=<literal>on</literal>|<literal>off</literal>] | |
317 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | 318 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> |
318 [<literal>inactive</literal>=<value>time</value>] | 319 [<literal>inactive</literal>=<value>time</value>] |
319 [<literal>max_size</literal>=<value>size</value>] | 320 [<literal>max_size</literal>=<value>size</value>] |
320 [<literal>loader_files</literal>=<value>number</value>] | 321 [<literal>loader_files</literal>=<value>number</value>] |
321 [<literal>loader_sleep</literal>=<value>time</value>] | 322 [<literal>loader_sleep</literal>=<value>time</value>] |
346 Starting from version 0.8.9, temporary files and the cache can be put on | 347 Starting from version 0.8.9, temporary files and the cache can be put on |
347 different file systems. | 348 different file systems. |
348 However, be aware that in this case a file is copied | 349 However, be aware that in this case a file is copied |
349 across two file systems instead of the cheap renaming operation. | 350 across two file systems instead of the cheap renaming operation. |
350 It is thus recommended that for any given location both cache and a directory | 351 It is thus recommended that for any given location both cache and a directory |
351 holding temporary files, set by the <link id="scgi_temp_path"/> directive, | 352 holding temporary files |
352 are put on the same file system. | 353 are put on the same file system. |
354 A directory for temporary files is set based on | |
355 the <literal>use_temp_path</literal> parameter (1.7.10). | |
356 If this parameter is omitted or set to the value <literal>on</literal>, | |
357 the directory set by the <link id="scgi_temp_path"/> directive | |
358 for the given location will be used. | |
359 If the value is set to <literal>off</literal>, | |
360 temporary files will be put directly in the cache directory. | |
353 </para> | 361 </para> |
354 | 362 |
355 <para> | 363 <para> |
356 In addition, all active keys and information about data are stored | 364 In addition, all active keys and information about data are stored |
357 in a shared memory zone, whose <value>name</value> and <value>size</value> | 365 in a shared memory zone, whose <value>name</value> and <value>size</value> |
1196 <example> | 1204 <example> |
1197 /spool/nginx/scgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> | 1205 /spool/nginx/scgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> |
1198 </example> | 1206 </example> |
1199 </para> | 1207 </para> |
1200 | 1208 |
1209 <para> | |
1210 See also the <literal>use_temp_path</literal> parameter of the | |
1211 <link id="scgi_cache_path"/> directive. | |
1212 </para> | |
1213 | |
1201 </directive> | 1214 </directive> |
1202 | 1215 |
1203 </section> | 1216 </section> |
1204 | 1217 |
1205 </module> | 1218 </module> |