Mercurial > hg > nginx-site
changeset 1194:9264fdb6c833
Added links to uwsgi.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Sat, 17 May 2014 01:55:27 +0400 |
parents | 0320929f8544 |
children | 1a7a1c79142e |
files | xml/en/docs/http/load_balancing.xml xml/en/docs/http/ngx_http_charset_module.xml xml/en/docs/http/ngx_http_core_module.xml xml/en/docs/http/ngx_http_ssi_module.xml xml/en/docs/http/ngx_http_upstream_module.xml xml/en/docs/index.xml xml/en/index.xml xml/index.xml xml/ru/docs/http/ngx_http_charset_module.xml xml/ru/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_ssi_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml xml/ru/docs/index.xml xml/ru/index.xml |
diffstat | 14 files changed, 61 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/load_balancing.xml +++ b/xml/en/docs/http/load_balancing.xml @@ -9,7 +9,7 @@ <article name="Using nginx as HTTP load balancer" link="/en/docs/http/load_balancing.html" lang="en" - rev="2"> + rev="3"> <section name="Introduction"> @@ -106,7 +106,7 @@ as the protocol. <para> When setting up load balancing for FastCGI, uwsgi, SCGI, or memcached, use <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, -uwsgi_pass, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, and <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/> directives respectively.
--- a/xml/en/docs/http/ngx_http_charset_module.xml +++ b/xml/en/docs/http/ngx_http_charset_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_charset_module" link="/en/docs/http/ngx_http_charset_module.html" lang="en" - rev="3"> + rev="4"> <section id="summary"> @@ -101,6 +101,7 @@ In addition, a charset can be set in the This capability can be disabled using the <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_ignore_headers"/>, and <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/> directives. @@ -196,7 +197,7 @@ as the default MIME type instead of “<literal>application/javascript</literal>”. <para> Determines whether a conversion should be performed for answers -received from a proxied or a FastCGI/SCGI server +received from a proxied or a FastCGI/uwsgi/SCGI server when the answers already carry a charset in the <header>Content-Type</header> response header field. If conversion is enabled, a charset specified in the received
--- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_core_module" link="/en/docs/http/ngx_http_core_module.html" lang="en" - rev="33"> + rev="34"> <section id="directives" name="Directives"> @@ -592,7 +592,8 @@ error_page 404 =200 /empty.gif; </para> <para> -If an error response is processed by a proxied server or a FastCGI/SCGI server, +If an error response is processed by a proxied server +or a FastCGI/uwsgi/SCGI server, and the server may return different response codes (e.g., 200, 302, 401 or 404), it is possible to respond with the code it returns: <example> @@ -980,6 +981,7 @@ Rate limit can also be set in the This capability can be disabled using the <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_ignore_headers"/>, and <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/> directives. @@ -1511,8 +1513,8 @@ If a location is defined by a prefix str and requests are processed by one of <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, -<link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, -<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, or +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, +<link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, or <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/>, then in response to a request with URI equal to this string, but without the trailing slash, @@ -2956,6 +2958,7 @@ The variable’s value is made available in locations processed by the <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, and <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/> directives. @@ -2970,12 +2973,14 @@ At the end of processing, the file needs To always write the request body to a file, <link id="client_body_in_file_only"/> needs to be enabled. When the name of a temporary file is passed in a proxied request -or in a request to a FastCGI/SCGI server, +or in a request to a FastCGI/uwsgi/SCGI server, passing the request body should be disabled by the <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"> proxy_pass_request_body off</link>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"> -fastcgi_pass_request_body off</link>, or +fastcgi_pass_request_body off</link>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass_request_body"> +uwsgi_pass_request_body off</link>, or <link doc="ngx_http_scgi_module.xml" id="scgi_pass_request_body"> scgi_pass_request_body off</link> directives, respectively.
--- a/xml/en/docs/http/ngx_http_ssi_module.xml +++ b/xml/en/docs/http/ngx_http_ssi_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_ssi_module" link="/en/docs/http/ngx_http_ssi_module.html" lang="en" - rev="6"> + rev="7"> <section id="summary"> @@ -332,7 +332,7 @@ specifies an included request, for examp <!--# include virtual="/remote/body.php?argument=value" --> </example> Several requests specified on one page and processed by proxied or -FastCGI/SCGI servers run in parallel. +FastCGI/uwsgi/SCGI servers run in parallel. If sequential processing is desired, the <literal>wait</literal> parameter should be used. </tag-desc>
--- a/xml/en/docs/http/ngx_http_upstream_module.xml +++ b/xml/en/docs/http/ngx_http_upstream_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_upstream_module" link="/en/docs/http/ngx_http_upstream_module.html" lang="en" - rev="22"> + rev="23"> <section id="summary"> @@ -19,6 +19,7 @@ The <literal>ngx_http_upstream_module</l is used to define groups of servers that can be referenced by the <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, and <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/> directives. </para> @@ -160,6 +161,7 @@ The zero value disables the accounting o What is considered an unsuccessful attempt is defined by the <link doc="ngx_http_proxy_module.xml" id="proxy_next_upstream"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_next_upstream"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_next_upstream"/>, <link doc="ngx_http_scgi_module.xml" id="scgi_next_upstream"/>, and <link doc="ngx_http_memcached_module.xml" id="memcached_next_upstream"/> directives.
--- a/xml/en/docs/index.xml +++ b/xml/en/docs/index.xml @@ -8,7 +8,7 @@ <article name="nginx documentation" link="/en/docs/" lang="en" - rev="13" + rev="14" toc="no"> @@ -388,6 +388,11 @@ ngx_http_userid_module</link> </listitem> <listitem> +<link doc="http/ngx_http_uwsgi_module.xml"> +ngx_http_uwsgi_module</link> +</listitem> + +<listitem> <link doc="http/ngx_http_xslt_module.xml"> ngx_http_xslt_module</link> </listitem>
--- a/xml/en/index.xml +++ b/xml/en/index.xml @@ -8,7 +8,7 @@ <article name="nginx" link="/en/" lang="en" - rev="21"> + rev="22"> <section> @@ -65,7 +65,7 @@ load balancing and fault tolerance</link <listitem> Accelerated support with caching of <link doc="docs/http/ngx_http_fastcgi_module.xml">FastCGI</link>, -uwsgi, +<link doc="docs/http/ngx_http_uwsgi_module.xml">uwsgi</link>, <link doc="docs/http/ngx_http_scgi_module.xml">SCGI</link>, and <link doc="docs/http/ngx_http_memcached_module.xml">memcached</link> servers; @@ -83,7 +83,7 @@ byte ranges, chunked responses, and <link doc="docs/http/ngx_http_image_filter_module.xml">image transformation</link> filter. Multiple SSI inclusions within a single page can be processed in -parallel if they are handled by proxied or FastCGI/SCGI servers; +parallel if they are handled by proxied or FastCGI/uwsgi/SCGI servers; </listitem> <listitem>
--- a/xml/index.xml +++ b/xml/index.xml @@ -939,7 +939,9 @@ SSL CRL, <listitem> <link doc="en/docs/http/ngx_http_scgi_module.xml">SCGI</link> -and uwsgi modules. +and +<link doc="en/docs/http/ngx_http_uwsgi_module.xml">uwsgi</link> +modules. </listitem> </list>
--- a/xml/ru/docs/http/ngx_http_charset_module.xml +++ b/xml/ru/docs/http/ngx_http_charset_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_charset_module" link="/ru/docs/http/ngx_http_charset_module.html" lang="ru" - rev="3"> + rev="4"> <section id="summary"> @@ -100,7 +100,8 @@ charset_map iso-8859-5 _ { } заголовка ответа. Эту возможность можно запретить с помощью директив <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, -<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/> +<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_ignore_headers"/> и <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/>. </para> @@ -197,7 +198,7 @@ application/javascript application/rss+x <para> Определяет, выполнять ли перекодирование для ответов, -полученных от проксированного сервера или от FastCGI/SCGI-сервера, +полученных от проксированного сервера или от FastCGI/uwsgi/SCGI-сервера, если в ответах уже указана кодировка в поле <header>Content-Type</header> заголовка ответа. Если перекодирование разрешено, то в качестве исходной кодировки
--- a/xml/ru/docs/http/ngx_http_core_module.xml +++ b/xml/ru/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_core_module" link="/ru/docs/http/ngx_http_core_module.html" lang="ru" - rev="33"> + rev="34"> <section id="directives" name="Директивы"> @@ -589,7 +589,7 @@ error_page 404 =200 /empty.gif; <para> Если ошибочный ответ обрабатывается проксированным сервером или -FastCGI/SCGI-сервером, и этот сервер может вернуть разные коды ответов, +FastCGI/uwsgi/SCGI-сервером, и этот сервер может вернуть разные коды ответов, например, 200, 302, 401 или 404, то можно выдавать возвращаемый им код: <example> error_page 404 = /404.php; @@ -974,7 +974,8 @@ server { <header>X-Accel-Limit-Rate</header> заголовка ответа проксированного сервера. Эту возможность можно запретить с помощью директив <link doc="ngx_http_proxy_module.xml" id="proxy_ignore_headers"/>, -<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/> +<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_ignore_headers"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_ignore_headers"/> и <link doc="ngx_http_scgi_module.xml" id="scgi_ignore_headers"/>. </para> @@ -1509,8 +1510,8 @@ location ~* \.(gif|jpg|jpeg)$ { и запросы обрабатываются при помощи <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, -<link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>, -<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/> или +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, +<link doc="ngx_http_scgi_module.xml" id="scgi_pass"/> или <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/>, а в ответ на запрос с URI равным этой строке, но без завершающего слэша, будет возвращено постоянное перенаправление с кодом 301 @@ -2952,7 +2953,8 @@ cookie <value>имя</value> Значение переменной появляется в location’ах, обрабатываемых директивами <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, -<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/> +<link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/> и <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/>. </para> @@ -2966,12 +2968,14 @@ cookie <value>имя</value> Для того чтобы тело запроса всегда записывалось в файл, следует включить <link id="client_body_in_file_only"/>. При передаче имени временного файла в проксированном запросе -или в запросе к FastCGI/SCGI-серверу следует запретить передачу самого +или в запросе к FastCGI/uwsgi/SCGI-серверу следует запретить передачу самого тела директивами <link doc="ngx_http_proxy_module.xml" id="proxy_pass_request_body"> proxy_pass_request_body off</link>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass_request_body"> -fastcgi_pass_request_body off</link> +fastcgi_pass_request_body off</link>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass_request_body"> +uwsgi_pass_request_body off</link> или <link doc="ngx_http_scgi_module.xml" id="scgi_pass_request_body"> scgi_pass_request_body off</link>
--- a/xml/ru/docs/http/ngx_http_ssi_module.xml +++ b/xml/ru/docs/http/ngx_http_ssi_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_ssi_module" link="/ru/docs/http/ngx_http_ssi_module.html" lang="ru" - rev="6"> + rev="7"> <section id="summary"> @@ -335,7 +335,7 @@ location / { <!--# include virtual="/remote/body.php?argument=value" --> </example> Несколько запросов, указанных на одной странице и обрабатываемых -проксируемыми или FastCGI/SCGI-серверами, работают параллельно. +проксируемыми или FastCGI/uwsgi/SCGI-серверами, работают параллельно. Если нужна последовательная обработка, следует воспользоваться параметром <literal>wait</literal>. </tag-desc>
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml @@ -20,6 +20,7 @@ которые могут использоваться в директивах <link doc="ngx_http_proxy_module.xml" id="proxy_pass"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_pass"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_pass"/>, <link doc="ngx_http_scgi_module.xml" id="scgi_pass"/> и <link doc="ngx_http_memcached_module.xml" id="memcached_pass"/>. </para> @@ -131,6 +132,7 @@ 5 запросов на <literal>backend1.example.com</literal> Что считается неудачной попыткой, определяется директивами <link doc="ngx_http_proxy_module.xml" id="proxy_next_upstream"/>, <link doc="ngx_http_fastcgi_module.xml" id="fastcgi_next_upstream"/>, +<link doc="ngx_http_uwsgi_module.xml" id="uwsgi_next_upstream"/>, <link doc="ngx_http_scgi_module.xml" id="scgi_next_upstream"/> и <link doc="ngx_http_memcached_module.xml" id="memcached_next_upstream"/>. </tag-desc>
--- a/xml/ru/docs/index.xml +++ b/xml/ru/docs/index.xml @@ -357,6 +357,11 @@ ngx_http_userid_module</link> </listitem> <listitem> +<link doc="http/ngx_http_uwsgi_module.xml"> +ngx_http_uwsgi_module</link> +</listitem> + +<listitem> <link doc="http/ngx_http_xslt_module.xml"> ngx_http_xslt_module</link> </listitem>
--- a/xml/ru/index.xml +++ b/xml/ru/index.xml @@ -8,7 +8,7 @@ <article name="nginx" link="/ru/" lang="ru" - rev="21"> + rev="22"> <section> @@ -66,7 +66,7 @@ nginx [engine x]—это HTTP-сервер и обратный прокси-сервер, <listitem> Акселерированная поддержка <link doc="docs/http/ngx_http_fastcgi_module.xml">FastCGI</link>, -uwsgi, +<link doc="docs/http/ngx_http_uwsgi_module.xml">uwsgi</link>, <link doc="docs/http/ngx_http_scgi_module.xml">SCGI</link> и <link doc="docs/http/ngx_http_memcached_module.xml">memcached</link> серверов с кэшированием, @@ -84,7 +84,7 @@ chunked ответы, <link doc="docs/http/ngx_http_image_filter_module.xml">преобразование изображений</link>; несколько подзапросов на одной странице, обрабатываемые в SSI-фильтре -через прокси или FastCGI/SCGI, выполняются параллельно; +через прокси или FastCGI/uwsgi/SCGI, выполняются параллельно; </listitem> <listitem>