Klaus Demo nginx / 16d873a
Regenerate after previous commits. Ruslan Ermilov 8 years ago
2 changed file(s) with 28 addition(s) and 28 deletion(s). Raw diff Collapse all Expand all
146146 This directive can be used during debugging, or when using the
147147 <code>$request_body_file</code>
148148 variable, or the
149 <u>$r-&gt;request_body_file</u>
149 <a href="ngx_http_perl_module.html#methods">$r-&gt;request_body_file</a>
150150 method of the
151 <u>http_perl</u> module.
151 <a href="ngx_http_perl_module.html">http_perl</a> module.
152152 </p><p>
153153 When set to the value <code>on</code>, temporary files are not
154154 removed after request processing.
238238 <i>"Request Entity Too Large"</i> (413)
239239 error is returned to a client.
240240 Please be aware that
241 <u>browsers cannot correctly display
242 this error</u>.
241 <a href="/web/upload.html">browsers cannot correctly display
242 this error</a>.
243243 </p><hr><a name="default_type"></a><strong>syntax</strong>:
244244 <code>default_type <code><i>mime-type</i></code></code><br><strong>default</strong>:
245245 <code>default_type text/plain</code><br><strong>context</strong>:
282282 Defines the URI that will be shown for the specified errors.
283283 These directives are inherited from the previous level if and
284284 only if there are no
285 <u>error_page</u>
285 <code>error_page</code>
286286 directives on
287287 the current level.
288288 A URI value can contain variables.
350350 subrequests formed by the
351351 <code>include virtual</code>
352352 command of the
353 <u>http_ssi</u> module;
353 <a href="ngx_http_ssi_module.html">http_ssi</a> module;
354354 </li><li>
355355 requests changed by the
356 <u>rewrite</u>
356 <a href="ngx_http_rewrite_module.html#rewrite">rewrite</a>
357357 directive of the
358 <u>http_rewrite</u> module.
358 <a href="ngx_http_rewrite_module.html">http_rewrite</a> module.
359359 </li></ul></p><p>
360360 Example:
361361 <blockquote><pre>
413413 Limits allowed HTTP methods inside a location.
414414 The GET method also implies the HEAD method.
415415 Access to other methods can be limited using the
416 <u>http_access</u>
416 <a href="ngx_http_access_module.html">http_access</a>
417417 and
418 <u>http_auth_basic</u>
418 <a href="ngx_http_auth_basic_module.html">http_auth_basic</a>
419419 modules directives:
420420 <blockquote><pre>
421421 limit_except GET {
666666 <code>log_not_found on</code><br><strong>context</strong>:
667667 <code>http</code>, <code>server</code>, <code>location</code><br><p>
668668 Enables or disables logging of errors about not found files into the
669 <u>error_log</u>.
669 <a href="../ngx_core_module.html#error_log">error_log</a>.
670670 </p><hr><a name="log_subrequest"></a><strong>syntax</strong>:
671671 <code>log_subrequest <code>on</code> | <code>off</code></code><br><strong>default</strong>:
672672 <code>log_subrequest off</code><br><strong>context</strong>:
673673 <code>http</code>, <code>server</code>, <code>location</code><br><p>
674674 Enables or disables logging of subrequests into the
675 <u>access_log</u>.
675 <a href="ngx_http_log_module.html#access_log">access_log</a>.
676676 </p><hr><a name="merge_slashes"></a><strong>syntax</strong>:
677677 <code>merge_slashes <code>on</code> | <code>off</code></code><br><strong>default</strong>:
678678 <code>merge_slashes on</code><br><strong>context</strong>:
802802 <code>fcntl(O_READAHEAD,</code><code><i>size</i></code><code>)</code>
803803 system call is used, supported in FreeBSDĀ 9.0-CURRENT.
804804 FreeBSDĀ 7 needs to be
805 <u>patched</u>.
805 <a href="http://sysoev.ru/freebsd/patch.readahead.txt">patched</a>.
806806 </p><hr><a name="recursive_error_pages"></a><strong>syntax</strong>:
807807 <code>recursive_error_pages <code>on</code> | <code>off</code></code><br><strong>default</strong>:
808808 <code>recursive_error_pages off</code><br><strong>context</strong>:
865865 <code>satisfy all</code><br><strong>context</strong>:
866866 <code>location</code><br><p>
867867 Allows access if any of the
868 <u>http_access</u>
869 or <u>http_auth_basic</u>
868 <a href="ngx_http_access_module.html">http_access</a>
869 or <a href="ngx_http_auth_basic_module.html">http_auth_basic</a>
870870 modules grant access.
871871 <blockquote><pre>
872872 location / {
910910 addresses and ports that should accept connections for a server, and the
911911 <a href="#server_name">server_name</a> directive lists all server names.
912912 An example configuration is provided in the
913 <u>
914 Setting Up Virtual Servers</u> document.
913 <a href="../virtual_hosts.html">
914 Setting Up Virtual Servers</a> document.
915915 </p><hr><a name="server_name"></a><strong>syntax</strong>:
916916 <code>server_name <code><i>name</i></code> ...</code><br><strong>default</strong>:
917917 <code>server_name hostname</code><br><strong>context</strong>:
10141014 <code>http</code><br><p>
10151015 Sets the maximum <code><i>size</i></code> of the server names hash tables.
10161016 For more information, please refer to
1017 <u>Setting Up Hashes</u>.
1017 <a href="../hash.html">Setting Up Hashes</a>.
10181018 </p><hr><a name="server_names_hash_bucket_size"></a><strong>syntax</strong>:
10191019 <code>server_names_hash_bucket_size <code><i>size</i></code></code><br><strong>default</strong>:
10201020 <code>server_names_hash_bucket_size 32/64/128</code><br><strong>context</strong>:
10221022 Sets the bucket size for the server names hash tables.
10231023 Default value depends on the size of the processor's cache line.
10241024 For more information, please refer to
1025 <u>Setting Up Hashes</u>.
1025 <a href="../hash.html">Setting Up Hashes</a>.
10261026 </p><hr><a name="server_tokens"></a><strong>syntax</strong>:
10271027 <code>server_tokens <code>on</code> | <code>off</code></code><br><strong>default</strong>:
10281028 <code>server_tokens on</code><br><strong>context</strong>:
12401240 <p>
12411241 The variable's value is made available in locations
12421242 processed by the
1243 <u>proxy_pass</u>
1243 <a href="ngx_http_proxy_module.html#proxy_pass">proxy_pass</a>
12441244 and
1245 <u>fastcgi_pass</u>
1245 <a href="ngx_http_fastcgi_module.html#fastcgi_pass">fastcgi_pass</a>
12461246 directives.
12471247 </p></dd><dt><code>$request_body_file</code></dt><dd>
12481248 name of a temporary file with the request body
12541254 When passing the name of a temporary file in a proxied request,
12551255 or in a request to a FastCGI server,
12561256 passing of the request body should be disabled by the
1257 <u>proxy_pass_request_body</u>
1257 <a href="ngx_http_proxy_module.html#proxy_pass_request_body">proxy_pass_request_body</a>
12581258 and
1259 <u>fastcgi_pass_request_body</u>
1259 <a href="ngx_http_fastcgi_module.html#fastcgi_pass_request_body">fastcgi_pass_request_body</a>
12601260 directives, respectively.
12611261 </p></dd><dt><code>$request_uri</code></dt><dd>
12621262 full original request URI (with arguments)
12631263 </dd><dt><code>$query_string</code></dt><dd>
12641264 same as <code>$args</code></dd><dt><code>$scheme</code></dt><dd>
1265 request scheme, &ldquo;<code>http</code>&rdquo; or &ldquo;<code>https</code>&gt;&rdquo;</dd><dt><code>$server_protocol</code></dt><dd>
1265 request scheme, &ldquo;<code>http</code>&rdquo; or &ldquo;<code>https</code>&rdquo;</dd><dt><code>$server_protocol</code></dt><dd>
12661266 request protocol, usually
12671267 &ldquo;<code>HTTP/1.0</code>&rdquo;
12681268 or
2323 or create new environment variables, for the following cases:
2424 <ul><li>
2525 variable inheritance during a
26 <u>live upgrade</u>
26 <a href="control.html#upgrade">live upgrade</a>
2727 of an executable file;
2828 </li><li>
2929 use of variables by the
30 <u>http_perl</u>
30 <a href="http/ngx_http_perl_module.html">http_perl</a>
3131 module;
3232 </li><li>
3333 use of variables by worker processes.
3636 variables only during initialization, well before they can be set
3737 using this directive.
3838 An exception from this is an above mentioned
39 <u>live upgrade</u>
39 <a href="control.html#upgrade">live upgrade</a>
4040 of an executable file.
4141 </li></ul></p><p>
4242 The TZ variable is always inherited and made available to the
43 <u>http_perl</u>
43 <a href="http/ngx_http_perl_module.html">http_perl</a>
4444 module, unless configured explicitly.
4545 </p><p>
4646 Usage example: