Mercurial > hg > nginx-site
changeset 793:9104a921d940
Documented "fastcgi_pass_request_body/headers" directives.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 25 Dec 2012 08:44:28 +0000 |
parents | ceb8a4e374b7 |
children | e77512b1ce11 |
files | xml/en/docs/http/ngx_http_fastcgi_module.xml xml/ru/docs/http/ngx_http_fastcgi_module.xml |
diffstat | 2 files changed, 112 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_fastcgi_module" link="/en/docs/http/ngx_http_fastcgi_module.html" lang="en" - rev="3"> + rev="4"> <section id="summary"> @@ -208,6 +208,29 @@ Sets a timeout for <link id="fastcgi_cac </directive> +<directive name="fastcgi_cache_methods"> +<syntax> + <literal>GET</literal> | + <literal>HEAD</literal> | + <literal>POST</literal> + ...</syntax> +<default>GET HEAD</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>0.7.59</appeared-in> + +<para> +If the client request method is listed in this directive then +the response will be cached. +“<literal>GET</literal>” and “<literal>HEAD</literal>” methods are always +added to the list, though it is recommended to specify them explicitly. +See also the <link id="fastcgi_no_cache"/> directive. +</para> + +</directive> + + <directive name="fastcgi_cache_min_uses"> <syntax><value>number</value></syntax> <default>1</default> @@ -784,6 +807,38 @@ a connection is closed. </directive> +<directive name="fastcgi_pass_request_body"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>on</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +If disabled, the original request body will not be passed +to the FastCGI server. +See also the <link id="fastcgi_pass_request_headers"/> directive. +</para> + +</directive> + + +<directive name="fastcgi_pass_request_headers"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>on</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +If disabled, header fields of the original request will not be passed to the +FastCGI server. +See also the <link id="fastcgi_pass_request_body"/> directive. +</para> + +</directive> + + <directive name="fastcgi_send_lowat"> <syntax><value>size</value></syntax> <default>0</default>
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_fastcgi_module" link="/ru/docs/http/ngx_http_fastcgi_module.html" lang="ru" - rev="3"> + rev="4"> <section id="summary"> @@ -207,6 +207,29 @@ fastcgi_cache_key localhost:9000$request </directive> +<directive name="fastcgi_cache_methods"> +<syntax> + <literal>GET</literal> | + <literal>HEAD</literal> | + <literal>POST</literal> + ...</syntax> +<default>GET HEAD</default> +<context>http</context> +<context>server</context> +<context>location</context> +<appeared-in>0.7.59</appeared-in> + +<para> +Если метод запроса клиента указан в этой директиве, +то ответ будет закэширован. +Методы “<literal>GET</literal>” и “<literal>HEAD</literal>” всегда добавляются +в список, но тем не менее рекомендуется перечислять их явно. +См. также директиву <link id="fastcgi_no_cache"/>. +</para> + +</directive> + + <directive name="fastcgi_cache_min_uses"> <syntax><value>число</value></syntax> <default>1</default> @@ -778,6 +801,38 @@ fastcgi_pass unix:/tmp/fastcgi.socket; </directive> +<directive name="fastcgi_pass_request_body"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>on</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +Если запрещено, то исходное тело запроса не будет передано +на FastCGI-сервер. +См. также директиву <link id="fastcgi_pass_request_headers"/>. +</para> + +</directive> + + +<directive name="fastcgi_pass_request_headers"> +<syntax><literal>on</literal> | <literal>off</literal></syntax> +<default>on</default> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +Если запрещено, то поля заголовка исходного запроса не будут переданы на +FastCGI-сервер. +См. также директивы <link id="fastcgi_pass_request_body"/>. +</para> + +</directive> + + <directive name="fastcgi_send_lowat"> <syntax><value>размер</value></syntax> <default>0</default>