Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_core_module.xml @ 246:6bfacf7124c6
Minor tweaks.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 16 Dec 2011 16:09:35 +0000 |
parents | 9e2be02df2ce |
children | 6f710464be38 |
comparison
equal
deleted
inserted
replaced
245:a627ecdece14 | 246:6bfacf7124c6 |
---|---|
1341 so it gets converted to “<code>/scripts/one.php</code>”. | 1341 so it gets converted to “<code>/scripts/one.php</code>”. |
1342 </para> | 1342 </para> |
1343 | 1343 |
1344 <para> | 1344 <para> |
1345 Turning the compression <value>off</value> can become necessary if a URI | 1345 Turning the compression <value>off</value> can become necessary if a URI |
1346 contains base64-encoded names, since base64 uses the “/” character internally. | 1346 contains base64-encoded names, since base64 uses the “<code>/</code>” |
1347 character internally. | |
1347 However, for security considerations, it is better to avoid turning off | 1348 However, for security considerations, it is better to avoid turning off |
1348 the compression. | 1349 the compression. |
1349 </para> | 1350 </para> |
1350 | 1351 |
1351 <para> | 1352 <para> |
1411 </listitem> | 1412 </listitem> |
1412 | 1413 |
1413 <listitem> | 1414 <listitem> |
1414 file lookup errors, such as “file not found”, “no read permission”, | 1415 file lookup errors, such as “file not found”, “no read permission”, |
1415 and so on. | 1416 and so on. |
1417 <note> | |
1416 Caching of errors should be enabled separately by the | 1418 Caching of errors should be enabled separately by the |
1417 <link id="open_file_cache_errors"/> | 1419 <link id="open_file_cache_errors"/> |
1418 directive. | 1420 directive. |
1421 </note> | |
1419 </listitem> | 1422 </listitem> |
1420 | 1423 |
1421 </list> | 1424 </list> |
1422 </para> | 1425 </para> |
1423 | 1426 |
1797 <para> | 1800 <para> |
1798 Allows access if <value>all</value> or <value>any</value> of the | 1801 Allows access if <value>all</value> or <value>any</value> of the |
1799 <link doc="ngx_http_access_module.xml">ngx_http_access_module</link> | 1802 <link doc="ngx_http_access_module.xml">ngx_http_access_module</link> |
1800 or <link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link> | 1803 or <link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link> |
1801 modules grant access. | 1804 modules grant access. |
1805 </para> | |
1806 | |
1807 <para> | |
1808 Example: | |
1802 <example> | 1809 <example> |
1803 location / { | 1810 location / { |
1804 satisfy any; | 1811 satisfy any; |
1805 | 1812 |
1806 allow 192.168.1.0/32; | 1813 allow 192.168.1.0/32; |
2595 <link id="client_body_in_file_only">client_body_in_file_only on</link> | 2602 <link id="client_body_in_file_only">client_body_in_file_only on</link> |
2596 needs be specified. | 2603 needs be specified. |
2597 When passing the name of a temporary file in a proxied request, | 2604 When passing the name of a temporary file in a proxied request, |
2598 or in a request to a FastCGI server, | 2605 or in a request to a FastCGI server, |
2599 passing of the request body should be disabled by the | 2606 passing of the request body should be disabled by the |
2600 <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"/> | 2607 <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"> |
2608 proxy_pass_request_body off</link> | |
2601 and | 2609 and |
2602 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"/> | 2610 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"> |
2611 fastcgi_pass_request_body off</link> | |
2603 directives, respectively. | 2612 directives, respectively. |
2604 </para> | 2613 </para> |
2605 </tag-desc> | 2614 </tag-desc> |
2606 | 2615 |
2607 <tag-name><var>$request_completion</var></tag-name> | 2616 <tag-name><var>$request_completion</var></tag-name> |
2611 </tag-desc> | 2620 </tag-desc> |
2612 | 2621 |
2613 <tag-name><var>$request_filename</var></tag-name> | 2622 <tag-name><var>$request_filename</var></tag-name> |
2614 <tag-desc> | 2623 <tag-desc> |
2615 file path for the current query, based on the | 2624 file path for the current query, based on the |
2616 <link id="root"/> and <link id="alias"/> | 2625 <link id="root"/> or <link id="alias"/> |
2617 directives, and the request URI | 2626 directives, and the request URI |
2618 </tag-desc> | 2627 </tag-desc> |
2619 | 2628 |
2620 <tag-name><var>$request_method</var></tag-name> | 2629 <tag-name><var>$request_method</var></tag-name> |
2621 <tag-desc> | 2630 <tag-desc> |
2642 <tag-desc> | 2651 <tag-desc> |
2643 an address of the server which accepted a request | 2652 an address of the server which accepted a request |
2644 <para> | 2653 <para> |
2645 Computing a value of this variable usually requires one system call. | 2654 Computing a value of this variable usually requires one system call. |
2646 To avoid a system call, the <link id="listen"/> directives | 2655 To avoid a system call, the <link id="listen"/> directives |
2647 must specify addresses and use the <parameter>bind</parameter> parameter | 2656 must specify addresses and use the <parameter>bind</parameter> parameter. |
2648 </para> | 2657 </para> |
2649 </tag-desc> | 2658 </tag-desc> |
2650 | 2659 |
2651 <tag-name><var>$server_name</var></tag-name> | 2660 <tag-name><var>$server_name</var></tag-name> |
2652 <tag-desc> | 2661 <tag-desc> |