Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_fastcgi_module.xml @ 411:f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
fastcgi_max_temp_file_size, and fastcgi_temp_file_write_size.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 14 Feb 2012 11:03:53 +0000 |
parents | bb51d3e17dd0 |
children | 65843513cff5 |
rev | line source |
---|---|
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 <module name="Module ngx_http_fastcgi_module" |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 link="/en/docs/http/ngx_http_fastcgi_module.html" |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 lang="en"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 <section id="summary"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 The <literal>ngx_http_fastcgi_module</literal> module allows to pass |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 requests to a FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 </section> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 <section id="example" name="Example Configuration"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 location / { |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 fastcgi_pass localhost:9000; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 fastcgi_index index.php; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 fastcgi_param QUERY_STRING $query_string; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 fastcgi_param REQUEST_METHOD $request_method; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 fastcgi_param CONTENT_TYPE $content_type; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 fastcgi_param CONTENT_LENGTH $content_length; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 } |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 </section> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 <section id="directives" name="Directives"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 <directive name="fastcgi_buffer_size"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 <syntax><value>size</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 <default>4k|8k</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 Sets <value>size</value> of the buffer used for reading the first part |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 of a response received from the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 This part usually contains a small response header. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 By default, the buffer size is equal to the size of one |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 buffer set by the <link id="fastcgi_buffers"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 It can be made smaller however. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
57 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 <directive name="fastcgi_buffers"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 <syntax><value>number</value> <value>size</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 <default>8 4k|8k</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 Sets the <value>number</value> and <value>size</value> of |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 buffers used for reading a response from the FastCGI server, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 for a single connection. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 By default, the buffer size is equal to one memory page. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 This is either 4K or 8K, depending on a platform. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 |
411
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
78 <directive name="fastcgi_busy_buffers_size"> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
79 <syntax><value>size</value></syntax> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
80 <default>8k|16k</default> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
81 <context>http</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
82 <context>server</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
83 <context>location</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
84 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
85 <para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
86 Limits the total <value>size</value> of buffers that |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
87 can be busy sending a response to the client while the response is not |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
88 yet fully read. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
89 In the mean time, the rest of the buffers can be used for reading a response |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
90 and, if needed, buffering part of a response to a temporary file. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
91 By default, <value>size</value> is limited by two buffers set by the |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
92 <link id="fastcgi_buffer_size"/> and <link id="fastcgi_buffers"/> directives. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
93 </para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
94 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
95 </directive> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
96 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
97 |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 <directive name="fastcgi_cache"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 <syntax><value>zone</value> | <literal>off</literal></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 <default>off</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
101 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
102 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 Defines a zone used for caching. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 The same zone can be used in several places. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 The <literal>off</literal> parameter disables caching inherited |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
109 from the previous configuration level. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
110 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
111 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 <directive name="fastcgi_cache_bypass"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
116 <syntax><value>string</value> ...</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
117 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
118 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
119 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
120 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 Defines conditions under which the response will not be taken from a cache. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
124 If at least one value of the string parameters is not empty and is not |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 equal to “0” then the response will not be taken from the cache: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 fastcgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 fastcgi_cache_bypass $http_pragma $http_authorization; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 Can be used along with the <link id="fastcgi_no_cache"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
131 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
132 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
136 <directive name="fastcgi_cache_key"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 <syntax><value>string</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
142 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 Defines a key for caching, for example |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 fastcgi_cache_key localhost:9000$request_uri; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
149 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
150 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
152 |
302
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
153 <directive name="fastcgi_cache_lock"> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
154 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
155 <default>off</default> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
156 <context>http</context> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
157 <context>server</context> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
158 <context>location</context> |
310
86732337c730
Added a historical information for proxy_cache_lock, proxy_cache_lock_timeout,
Ruslan Ermilov <ru@nginx.com>
parents:
302
diff
changeset
|
159 <appeared-in>1.1.12</appeared-in> |
302
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
160 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
161 <para> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
162 When enabled, only one request at a time will be allowed to populate |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
163 a new cache element identified according to the <link id="fastcgi_cache_key"/> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
164 directive by passing a request to a FastCGI server. |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
165 Other requests of the same cache element will either wait |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
166 for a response to appear in the cache, or the cache lock for |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
167 this element to be released, up to the time set by the |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
168 <link id="fastcgi_cache_lock_timeout"/> directive. |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
169 </para> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
170 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
171 </directive> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
172 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
173 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
174 <directive name="fastcgi_cache_lock_timeout"> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
175 <syntax><value>time</value></syntax> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
176 <default>5s</default> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
177 <context>http</context> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
178 <context>server</context> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
179 <context>location</context> |
310
86732337c730
Added a historical information for proxy_cache_lock, proxy_cache_lock_timeout,
Ruslan Ermilov <ru@nginx.com>
parents:
302
diff
changeset
|
180 <appeared-in>1.1.12</appeared-in> |
302
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
181 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
182 <para> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
183 Sets a timeout for <link id="fastcgi_cache_lock"/>. |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
184 </para> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
185 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
186 </directive> |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
187 |
df728215db07
Documented "proxy_cache_lock", "proxy_cache_lock_timeout",
Ruslan Ermilov <ru@nginx.com>
parents:
298
diff
changeset
|
188 |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
189 <directive name="fastcgi_cache_min_uses"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
190 <syntax><value>number</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
191 <default>1</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
192 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
193 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
194 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
195 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
196 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
197 Sets the <value>number</value> of requests after which the response |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
198 will be cached. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
199 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
200 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
201 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
202 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
203 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
204 <directive name="fastcgi_cache_path"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
205 <syntax> |
364 | 206 <value>path</value> |
207 [<literal>levels</literal>=<value>levels</value>] | |
208 <literal>keys_zone</literal>=<value>name</value>:<value>size</value> | |
209 [<literal>inactive</literal>=<value>time</value>] | |
210 [<literal>max_size</literal>=<value>size</value>]</syntax> | |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
211 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
212 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
213 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
214 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
215 Sets path and other parameters of a cache. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
216 Cache data are stored in files. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
217 Both the key and file name in a cache are a result of |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
218 applying the MD5 function to the proxied URL. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
219 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
220 The <literal>levels</literal> parameter defines hierarchy levels of a cache. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
221 For example, in the following configuration |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
222 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
223 fastcgi_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
224 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
225 file names in a cache will look like this: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
226 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
227 /data/nginx/cache/<emphasis>c</emphasis>/<emphasis>29</emphasis>/b7f54b2df7773722d382f4809d650<emphasis>29c</emphasis> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
228 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
229 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
230 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
231 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
232 A cached response is first written to a temporary file, then a file is renamed. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
233 Starting from version 0.8.9 temporary files and the cache can be put on |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
234 different file systems but be aware that in this case a file is copied |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
235 across two file systems instead of the cheap rename operation. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
236 It is thus recommended that for any given location both cache and a directory |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
237 holding temporary files set by the <link id="fastcgi_temp_path"/> directive |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
238 are put on the same file system. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
239 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
240 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
241 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
242 In addition, all active keys and information about data are stored |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
243 in a shared memory zone, whose <value>name</value> and <value>size</value> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
244 are configured by the <literal>keys_zone</literal> parameter. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
245 Cached data that are not accessed during the time specified by the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
246 <literal>inactive</literal> parameter get removed from the cache |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
247 regardless of their freshness. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
248 By default, <literal>inactive</literal> is set to 10 minutes. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
249 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
250 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
251 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
252 The special process “cache manager” monitors the maximum cache size set |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
253 by the <literal>max_size</literal> parameter; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
254 when this size is exceeded it removes the least recently used data. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
255 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
256 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
257 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
258 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
259 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
260 <directive name="fastcgi_cache_use_stale"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
261 <syntax> |
364 | 262 <literal>error</literal> | |
263 <literal>timeout</literal> | | |
264 <literal>invalid_header</literal> | | |
265 <literal>updating</literal> | | |
266 <literal>http_500</literal> | | |
267 <literal>http_503</literal> | | |
268 <literal>http_404</literal> | | |
269 <literal>off</literal> | |
270 ...</syntax> | |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
271 <default>off</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
272 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
273 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
274 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
275 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
276 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
277 If an error occurs while working with the FastCGI server it is possible |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
278 to use a stale cached response. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
279 This directives determines in which cases it is permitted. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
280 The directive’s parameters match those of the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
281 <link id="fastcgi_next_upstream"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
282 Additionally, the <literal>updating</literal> parameter permits |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
283 to use a stale cached response if it is currently being updated. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
284 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
285 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
286 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
287 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
288 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
289 <directive name="fastcgi_cache_valid"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
290 <syntax>[<value>code</value> ...] <value>time</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
291 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
292 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
293 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
294 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
295 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
296 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
297 Sets caching time for different response codes. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
298 For example, the following directives |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
299 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
300 fastcgi_cache_valid 200 302 10m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
301 fastcgi_cache_valid 404 1m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
302 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
303 set 10 minutes of caching for responses with codes 200 and 302, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
304 and 1 minute for responses with code 404. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
305 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
306 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
307 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
308 If only caching <value>time</value> is specified |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
309 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
310 fastcgi_cache_valid 5m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
311 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
312 then only 200, 301, and 302 responses are cached. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
313 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
314 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
315 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
316 In addition, it can be specified to cache any responses using the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
317 <literal>any</literal> parameter: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
318 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
319 fastcgi_cache_valid 200 302 10m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
320 fastcgi_cache_valid 301 1h; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
321 fastcgi_cache_valid any 1m; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
322 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
323 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
324 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
325 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
326 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
327 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
328 <directive name="fastcgi_connect_timeout"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
329 <syntax><value>time</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
330 <default>60s</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
331 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
332 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
333 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
334 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
335 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
336 Defines a timeout for establishing a connection with the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
337 It should be noted that this timeout cannot usually exceed 75 seconds. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
338 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
339 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
340 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
341 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
342 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
343 <directive name="fastcgi_hide_header"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
344 <syntax><value>field</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
345 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
346 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
347 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
348 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
349 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
350 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
351 By default, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
352 nginx does not pass the header fields <header>Status</header> and |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
353 <header>X-Accel-...</header> from the response of the FastCGI |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
354 server to a client. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
355 The <literal>fastcgi_hide_header</literal> directive sets additional fields |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
356 that will not be passed. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
357 If, on the contrary, the passing of fields needs to be permitted, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
358 the <link id="fastcgi_pass_header"/> directive can be used. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
359 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
360 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
361 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
362 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
363 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
364 <directive name="fastcgi_ignore_client_abort"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
365 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
366 <default>off</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
367 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
368 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
369 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
370 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
371 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
372 Determines should the connection with the FastCGI server be |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
373 closed if a client closes a connection without waiting |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
374 for a response. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
375 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
376 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
377 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
378 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
379 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
380 <directive name="fastcgi_ignore_headers"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
381 <syntax><value>field</value> ...</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
382 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
383 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
384 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
385 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
386 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
387 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
388 Disables processing of certain response header fields from the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
389 The following fields can be ignored: <header>X-Accel-Redirect</header>, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
390 <header>X-Accel-Expires</header>, <header>X-Accel-Limit-Rate</header> (1.1.6), |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
391 <header>X-Accel-Buffering</header> (1.1.6), |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
392 <header>X-Accel-Charset</header> (1.1.6), <header>Expires</header>, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
393 <header>Cache-Control</header>, and <header>Set-Cookie</header> (0.8.44). |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
394 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
395 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
396 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
397 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
398 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
399 <directive name="fastcgi_index"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
400 <syntax><value>name</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
401 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
402 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
403 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
404 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
405 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
406 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
407 Sets a file name that will be appended after a URI that ends with |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
408 a slash, in the value of the <var>$fastcgi_script_name</var> variable. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
409 For example, with these settings |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
410 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
411 fastcgi_index index.php; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
412 fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
413 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
414 and the “<literal>/page.php</literal>” request, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
415 the <literal>SCRIPT_FILENAME</literal> parameter will be equal to |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
416 “<literal>/home/www/scripts/php/page.php</literal>”, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
417 and with the “<literal>/</literal>” request it will be equal to |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
418 “<literal>/home/www/scripts/php/index.php</literal>”. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
419 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
420 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
421 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
422 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
423 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
424 <directive name="fastcgi_intercept_errors"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
425 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
426 <default>off</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
427 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
428 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
429 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
430 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
431 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
432 Determines whether FastCGI server responses with codes greater than or equal |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
433 to 400 should be passed to a client or be redirected to nginx for processing |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
434 using the <link doc="ngx_http_core_module.xml" id="error_page"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
435 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
436 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
437 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
438 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
439 |
316
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
440 <directive name="fastcgi_keep_conn"> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
441 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
442 <default>off</default> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
443 <context>http</context> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
444 <context>server</context> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
445 <context>location</context> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
446 |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
447 <para> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
448 By default, a FastCGI server will close a connection right after |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
449 sending the response. |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
450 When set to the value <literal>on</literal>, nginx will instruct |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
451 a FastCGI server to keep connections open. |
364 | 452 This in particular is necessary for |
316
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
453 <link doc="ngx_http_upstream_module.xml" id="keepalive"/> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
454 connections to FastCGI servers to function. |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
455 </para> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
456 |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
457 </directive> |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
458 |
1fb1c077658b
Documented the following directives: "keepalive", "proxy_http_version",
Ruslan Ermilov <ru@nginx.com>
parents:
310
diff
changeset
|
459 |
411
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
460 <directive name="fastcgi_max_temp_file_size"> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
461 <syntax><value>size</value></syntax> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
462 <default>1024m</default> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
463 <context>http</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
464 <context>server</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
465 <context>location</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
466 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
467 <para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
468 When the whole response does not fit into memory buffers |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
469 set by the <link id="fastcgi_buffer_size"/> and <link id="fastcgi_buffers"/> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
470 directives, part of a response can be saved to a temporary file. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
471 This directive sets the maximum <value>size</value> of a temporary file. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
472 The size of data written to a temporary file at a time is set |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
473 by the <link id="fastcgi_temp_file_write_size"/> directive. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
474 </para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
475 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
476 <para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
477 Value of zero disables buffering of responses to temporary files. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
478 </para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
479 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
480 </directive> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
481 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
482 |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
483 <directive name="fastcgi_next_upstream"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
484 <syntax> |
364 | 485 <literal>error</literal> | |
486 <literal>timeout</literal> | | |
487 <literal>invalid_header</literal> | | |
488 <literal>http_500</literal> | | |
489 <literal>http_503</literal> | | |
490 <literal>http_404</literal> | | |
491 <literal>off</literal> | |
492 ...</syntax> | |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
493 <default>error timeout</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
494 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
495 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
496 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
497 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
498 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
499 Specifies in which cases a request should be passed to the next server: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
500 <list type="tag"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
501 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
502 <tag-name><literal>error</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
503 <tag-desc>an error occurred while establishing a connection with the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
504 server, passing it a request, or reading the response header;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
505 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
506 <tag-name><literal>timeout</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
507 <tag-desc>a timeout has occurred while establishing a connection with the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
508 server, passing it a request, or reading the response header;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
509 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
510 <tag-name><literal>invalid_header</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
511 <tag-desc>a server returned empty or invalid response;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
512 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
513 <tag-name><literal>http_500</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
514 <tag-desc>a server returned a response with the code 500;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
515 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
516 <tag-name><literal>http_503</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
517 <tag-desc>a server returned a response with the code 503;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
518 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
519 <tag-name><literal>http_404</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
520 <tag-desc>a server returned a response with the code 404;</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
521 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
522 <tag-name><literal>off</literal></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
523 <tag-desc>disables passing a request to the next server.</tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
524 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
525 </list> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
526 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
527 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
528 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
529 It should be understood that passing a request to the next server is |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
530 only possible if a client was not sent anything yet. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
531 That is, if an error or a timeout occurs in the middle of |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
532 transferring a response, fixing this is impossible. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
533 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
534 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
535 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
536 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
537 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
538 <directive name="fastcgi_no_cache"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
539 <syntax><value>string</value> ...</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
540 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
541 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
542 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
543 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
544 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
545 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
546 Defines conditions under which the response will not be saved to a cache. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
547 If at least one value of the string parameters is not empty and is not |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
548 equal to “0” then the response will not be saved: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
549 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
550 fastcgi_no_cache $cookie_nocache $arg_nocache$arg_comment; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
551 fastcgi_no_cache $http_pragma $http_authorization; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
552 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
553 Can be used along with the <link id="fastcgi_cache_bypass"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
554 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
555 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
556 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
557 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
558 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
559 <directive name="fastcgi_param"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
560 <syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
561 <value>parameter</value> <value>value</value> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
562 [<literal>if_not_empty</literal>]</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
563 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
564 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
565 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
566 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
567 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
568 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
569 Sets a <value>parameter</value> that should be passed to the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
570 A <value>value</value> can contain text, variables, and their combination. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
571 These directives are inherited from the previous level if and |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
572 only if there are no |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
573 <literal>fastcgi_param</literal> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
574 directives defined on the current level. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
575 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
576 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
577 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
578 The following example shows the minimum required settings for PHP: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
579 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
580 fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
581 fastcgi_param QUERY_STRING $query_string; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
582 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
583 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
584 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
585 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
586 The <literal>SCRIPT_FILENAME</literal> parameter is used in PHP for |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
587 determining the script name, and the <literal>QUERY_STRING</literal> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
588 parameter is used to pass request parameters. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
589 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
590 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
591 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
592 For scripts that process <literal>POST</literal> requests, the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
593 following three parameters are also required: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
594 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
595 fastcgi_param REQUEST_METHOD $request_method; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
596 fastcgi_param CONTENT_TYPE $content_type; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
597 fastcgi_param CONTENT_LENGTH $content_length; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
598 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
599 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
600 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
601 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
602 If PHP was built with the <literal>--enable-force-cgi-redirect</literal> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
603 configuration parameter, the <literal>REDIRECT_STATUS</literal> parameter |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
604 should also be passed with the value “200”: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
605 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
606 fastcgi_param REDIRECT_STATUS 200; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
607 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
608 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
609 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
610 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
611 If a directive is specified with <literal>if_not_empty</literal> (1.1.11) then |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
612 such a parameter will not be passed to the server until its value is not empty: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
613 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
614 fastcgi_param HTTPS $https if_not_empty; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
615 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
616 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
617 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
618 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
619 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
620 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
621 <directive name="fastcgi_pass"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
622 <syntax><value>address</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
623 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
624 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
625 <context>if in location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
626 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
627 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
628 Sets an address of the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
629 An address can be specified as a domain name or an address, and a port, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
630 for example, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
631 <example> |
351
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
316
diff
changeset
|
632 fastcgi_pass localhost:9000; |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
633 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
634 or as a UNIX-domain socket path: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
635 <example> |
351
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
316
diff
changeset
|
636 fastcgi_pass unix:/tmp/fastcgi.socket; |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
637 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
638 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
639 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
640 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
641 If a domain name resolves to several addresses, all of them will be |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
642 used in a round-robin fashion. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
643 In addition, an address can be specified as a |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
644 <link doc="ngx_http_upstream_module.xml">server group</link>. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
645 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
646 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
647 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
648 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
649 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
650 <directive name="fastcgi_pass_header"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
651 <syntax><value>field</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
652 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
653 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
654 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
655 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
656 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
657 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
658 Permits to pass <link id="fastcgi_hide_header">otherwise disabled</link> header |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
659 fields from the FastCGI server to a client. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
660 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
661 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
662 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
663 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
664 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
665 <directive name="fastcgi_read_timeout"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
666 <syntax><value>time</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
667 <default>60s</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
668 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
669 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
670 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
671 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
672 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
673 Defines a timeout for reading a response from the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
674 A timeout is only set between two successive read operations, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
675 not for the transmission of the whole response. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
676 If a FastCGI server does not transmit anything within this time, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
677 a connection is closed. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
678 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
679 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
680 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
681 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
682 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
683 <directive name="fastcgi_send_timeout"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
684 <syntax><value>time</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
685 <default>60s</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
686 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
687 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
688 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
689 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
690 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
691 Sets a timeout for transmitting a request to the FastCGI server. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
692 A timeout is only set between two successive write operations, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
693 not for the transmission of the whole request. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
694 If a FastCGI server does not receive anything within this time, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
695 a connection is closed. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
696 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
697 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
698 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
699 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
700 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
701 <directive name="fastcgi_split_path_info"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
702 <syntax><value>regex</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
703 <default/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
704 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
705 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
706 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
707 Defines a regular expression that captures a value for the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
708 <var>$fastcgi_path_info</var> variable. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
709 A regular expression should have two captures, the first becomes |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
710 a value of the <var>$fastcgi_script_name</var> variable, the second |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
711 becomes a value of the <var>$fastcgi_path_info</var> variable. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
712 For example, with these settings |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
713 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
714 location ~ ^(.+\.php)(.*)$ { |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
715 fastcgi_split_path_info ^(.+\.php)(.*)$; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
716 fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
717 fastcgi_param PATH_INFO $fastcgi_path_info; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
718 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
719 and the “<literal>/show.php/article/0001</literal>” request, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
720 the <literal>SCRIPT_FILENAME</literal> parameter will be equal to |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
721 “<literal>/path/to/php/show.php</literal>”, and the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
722 <literal>PATH_INFO</literal> parameter will be equal to |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
723 “<literal>/article/0001</literal>”. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
724 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
725 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
726 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
727 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
728 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
729 <directive name="fastcgi_store"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
730 <syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
731 <literal>on</literal> | |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
732 <literal>off</literal> | |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
733 <value>string</value></syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
734 <default>off</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
735 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
736 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
737 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
738 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
739 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
740 Enables saving of files to a disk. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
741 The <literal>on</literal> parameter saves files with paths |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
742 corresponding to the directives |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
743 <link doc="ngx_http_core_module.xml" id="alias"/> or |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
744 <link doc="ngx_http_core_module.xml" id="root"/>. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
745 The <literal>off</literal> parameter disables saving of files. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
746 In addition, the file name can be set explicitly using the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
747 <value>string</value> with variables: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
748 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
749 fastcgi_store /data/www$original_uri; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
750 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
751 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
752 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
753 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
754 The modification time of files is set according to the received |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
755 <header>Last-Modified</header> response header field. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
756 A response is first written to a temporary file, then a file is renamed. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
757 Starting from version 0.8.9 temporary files and the persistent store |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
758 can be put on different file systems but be aware that in this case |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
759 a file is copied across two file systems instead of the cheap rename operation. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
760 It is thus recommended that for any given location both saved files and a |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
761 directory holding temporary files set by the <link id="fastcgi_temp_path"/> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
762 directive are put on the same file system. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
763 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
764 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
765 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
766 This directive can be used to create local copies of static unchangeable |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
767 files, e.g.: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
768 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
769 location /images/ { |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
770 root /data/www; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
771 open_file_cache_errors off; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
772 error_page 404 = /fetch$uri; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
773 } |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
774 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
775 location /fetch/ { |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
776 internal; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
777 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
778 fastcgi_pass backend:9000; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
779 ... |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
780 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
781 fastcgi_store on; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
782 fastcgi_store_access user:rw group:rw all:r; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
783 fastcgi_temp_path /data/temp; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
784 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
785 alias /data/www/; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
786 } |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
787 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
788 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
789 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
790 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
791 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
792 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
793 <directive name="fastcgi_store_access"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
794 <syntax><value>users</value>:<value>permissions</value> ...</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
795 <default>user:rw</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
796 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
797 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
798 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
799 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
800 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
801 Sets access permissions for newly created files and directories, e.g.: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
802 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
803 fastcgi_store_access user:rw group:rw all:r; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
804 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
805 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
806 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
807 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
808 If any <literal>group</literal> or <literal>all</literal> access permissions |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
809 are specified then <literal>user</literal> permissions may be omitted: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
810 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
811 fastcgi_store_access group:rw all:r; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
812 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
813 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
814 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
815 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
816 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
817 |
411
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
818 <directive name="fastcgi_temp_file_write_size"> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
819 <syntax><value>size</value></syntax> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
820 <default>8k|16k</default> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
821 <context>http</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
822 <context>server</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
823 <context>location</context> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
824 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
825 <para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
826 Limits the <value>size</value> of data written to a temporary file |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
827 at a time, when buffering of responses from the FastCGI server |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
828 to temporary files is enabled. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
829 By default, <value>size</value> is limited by two buffers set by the |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
830 <link id="fastcgi_buffer_size"/> and <link id="fastcgi_buffers"/> directives. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
831 The maximum size of a temporary file is set by the |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
832 <link id="fastcgi_max_temp_file_size"/> directive. |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
833 </para> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
834 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
835 </directive> |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
836 |
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
837 |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
838 <directive name="fastcgi_temp_path"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
839 <syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
840 <value>path</value> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
841 [<value>level1</value> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
842 [<value>level2</value> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
843 [<value>level3</value>]]]</syntax> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
844 <default>fastcgi_temp</default> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
845 <context>http</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
846 <context>server</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
847 <context>location</context> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
848 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
849 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
850 Defines a directory for storing temporary files |
411
f8248d0e3c8f
Documented the following directives: fastcgi_busy_buffers_size,
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
851 with data received from FastCGI servers. |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
852 Up to three-level subdirectory hierarchy can be used underneath the specified |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
853 directory. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
854 For example, in the following configuration |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
855 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
856 fastcgi_temp_path /spool/nginx/fastcgi_temp 1 2; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
857 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
858 a temporary file might look like this: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
859 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
860 /spool/nginx/fastcgi_temp/<emphasis>7</emphasis>/<emphasis>45</emphasis>/00000123<emphasis>457</emphasis> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
861 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
862 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
863 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
864 </directive> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
865 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
866 </section> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
867 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
868 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
869 <section id="parameters" name="Parameters Passed to a FastCGI Server"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
870 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
871 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
872 HTTP request header fields are passed to the FastCGI server as parameters. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
873 In applications and scripts running as FastCGI servers, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
874 these parameters are usually made available as environment variables. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
875 For example, the <header>User-Agent</header> header field is passed as the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
876 <literal>HTTP_USER_AGENT</literal> parameter. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
877 In addition to HTTP request header fields it is possible to pass arbitrary |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
878 parameters using the <link id="fastcgi_param"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
879 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
880 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
881 </section> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
882 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
883 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
884 <section id="variables" name="Embedded Variables"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
885 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
886 <para> |
364 | 887 The <literal>ngx_http_fastcgi_module</literal> module supports embedded |
888 variables that can be used to set parameters using the | |
298
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
889 <link id="fastcgi_param"/> directive: |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
890 <list type="tag"> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
891 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
892 <tag-name><var>$fastcgi_script_name</var></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
893 <tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
894 request URI or, if a URI ends with a slash, request URI with an index file |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
895 name configured by the <link id="fastcgi_index"/> directive appended to it. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
896 This variable can be used to set the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
897 <literal>SCRIPT_FILENAME</literal> and <literal>PATH_TRANSLATED</literal> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
898 parameters that determine the script name in PHP. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
899 For example, for the “<literal>/info/</literal>” request with the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
900 following directives |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
901 <example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
902 fastcgi_index index.php; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
903 fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name; |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
904 </example> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
905 the <literal>SCRIPT_FILENAME</literal> parameter will be equal to |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
906 “<literal>/home/www/scripts/php/info/index.php</literal>”. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
907 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
908 <para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
909 When using the <link id="fastcgi_split_path_info"/> directive, |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
910 the <var>$fastcgi_script_name</var> variable equals to the value of |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
911 the first capture set by the directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
912 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
913 </tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
914 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
915 <tag-name><var>$fastcgi_path_info</var></tag-name> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
916 <tag-desc>the value of the second capture set by the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
917 <link id="fastcgi_split_path_info"/> directive. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
918 This variable can be used to set the |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
919 <literal>PATH_INFO</literal> parameter. |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
920 </tag-desc> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
921 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
922 </list> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
923 </para> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
924 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
925 </section> |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
926 |
0dcf07c393b6
English translation of the ngx_http_fastcgi_module module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
927 </module> |