Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_core_module.xml @ 1194:9264fdb6c833
Added links to uwsgi.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Sat, 17 May 2014 01:55:27 +0400 |
parents | b8f0362f61e5 |
children | ac7a5ee98768 |
comparison
equal
deleted
inserted
replaced
1193:0320929f8544 | 1194:9264fdb6c833 |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_core_module" | 10 <module name="Module ngx_http_core_module" |
11 link="/en/docs/http/ngx_http_core_module.html" | 11 link="/en/docs/http/ngx_http_core_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="33"> | 13 rev="34"> |
14 | 14 |
15 <section id="directives" name="Directives"> | 15 <section id="directives" name="Directives"> |
16 | 16 |
17 <directive name="aio"> | 17 <directive name="aio"> |
18 <syntax> | 18 <syntax> |
590 error_page 404 =200 /empty.gif; | 590 error_page 404 =200 /empty.gif; |
591 </example> | 591 </example> |
592 </para> | 592 </para> |
593 | 593 |
594 <para> | 594 <para> |
595 If an error response is processed by a proxied server or a FastCGI/SCGI server, | 595 If an error response is processed by a proxied server |
596 or a FastCGI/uwsgi/SCGI server, | |
596 and the server may return different response codes (e.g., 200, 302, 401 | 597 and the server may return different response codes (e.g., 200, 302, 401 |
597 or 404), it is possible to respond with the code it returns: | 598 or 404), it is possible to respond with the code it returns: |
598 <example> | 599 <example> |
599 error_page 404 = /404.php; | 600 error_page 404 = /404.php; |
600 </example> | 601 </example> |
978 Rate limit can also be set in the | 979 Rate limit can also be set in the |
979 <header>X-Accel-Limit-Rate</header> header field of a proxied server response. | 980 <header>X-Accel-Limit-Rate</header> header field of a proxied server response. |
980 This capability can be disabled using the | 981 This capability can be disabled using the |
981 <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, | 982 <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, |
982 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, | 983 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, |
984 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_ignore_headers"/>, | |
983 and | 985 and |
984 <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/> | 986 <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/> |
985 directives. | 987 directives. |
986 </para> | 988 </para> |
987 | 989 |
1509 <para> | 1511 <para> |
1510 If a location is defined by a prefix string that ends with the slash character, | 1512 If a location is defined by a prefix string that ends with the slash character, |
1511 and requests are processed by one of | 1513 and requests are processed by one of |
1512 <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, | 1514 <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, |
1513 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, | 1515 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, |
1514 <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, | 1516 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, |
1515 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, or | 1517 <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, or |
1516 <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/>, | 1518 <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/>, |
1517 then in response to a request with URI equal to this string, | 1519 then in response to a request with URI equal to this string, |
1518 but without the trailing slash, | 1520 but without the trailing slash, |
1519 a permanent redirect with the code 301 will be returned to the requested URI | 1521 a permanent redirect with the code 301 will be returned to the requested URI |
1520 with the slash appended. | 1522 with the slash appended. |
2954 <para> | 2956 <para> |
2955 The variable’s value is made available in locations | 2957 The variable’s value is made available in locations |
2956 processed by the | 2958 processed by the |
2957 <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, | 2959 <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, |
2958 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, | 2960 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, |
2961 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, | |
2959 and | 2962 and |
2960 <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/> | 2963 <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/> |
2961 directives. | 2964 directives. |
2962 </para> | 2965 </para> |
2963 </tag-desc> | 2966 </tag-desc> |
2968 <para> | 2971 <para> |
2969 At the end of processing, the file needs to be removed. | 2972 At the end of processing, the file needs to be removed. |
2970 To always write the request body to a file, | 2973 To always write the request body to a file, |
2971 <link id="client_body_in_file_only"/> needs to be enabled. | 2974 <link id="client_body_in_file_only"/> needs to be enabled. |
2972 When the name of a temporary file is passed in a proxied request | 2975 When the name of a temporary file is passed in a proxied request |
2973 or in a request to a FastCGI/SCGI server, | 2976 or in a request to a FastCGI/uwsgi/SCGI server, |
2974 passing the request body should be disabled by the | 2977 passing the request body should be disabled by the |
2975 <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"> | 2978 <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"> |
2976 proxy_pass_request_body off</link>, | 2979 proxy_pass_request_body off</link>, |
2977 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"> | 2980 <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"> |
2978 fastcgi_pass_request_body off</link>, or | 2981 fastcgi_pass_request_body off</link>, |
2982 <link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass_request_body"> | |
2983 uwsgi_pass_request_body off</link>, or | |
2979 <link doc="ngx_http_scgi_module.xml" id="scgi_pass_request_body"> | 2984 <link doc="ngx_http_scgi_module.xml" id="scgi_pass_request_body"> |
2980 scgi_pass_request_body off</link> | 2985 scgi_pass_request_body off</link> |
2981 directives, respectively. | 2986 directives, respectively. |
2982 </para> | 2987 </para> |
2983 </tag-desc> | 2988 </tag-desc> |