Mercurial > hg > nginx-site
diff xml/ru/docs/http/ngx_http_fastcgi_module.xml @ 862:6a40b8e7219a
Documented the "fastcgi_catch_stderr" directive.
author | Homutov Vladimir <vl@nginx.com> |
---|---|
date | Tue, 12 Mar 2013 14:45:25 +0400 |
parents | ed29fd8be462 |
children | 43887f41bb17 |
line wrap: on
line diff
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml Tue Mar 12 14:43:07 2013 +0400 +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml Tue Mar 12 14:45:25 2013 +0400 @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_fastcgi_module" link="/ru/docs/http/ngx_http_fastcgi_module.html" lang="ru" - rev="5"> + rev="6"> <section id="summary"> @@ -418,6 +418,32 @@ </directive> +<directive name="fastcgi_catch_stderr"> +<syntax><value>строка</value></syntax> +<default/> +<context>http</context> +<context>server</context> +<context>location</context> + +<para> +Задаёт строку для поиска в потоке ошибок ответа, +полученного от FastCGI-сервера. +Если <value>строка</value> найдена, то считается, что FastCGI-сервер +вернул <link id="fastcgi_next_upstream">неверный ответ</link>. +Это позволяет обрабатывать ошибки приложений в nginx, например: +<example> +location /php { + fastcgi_pass backend:9000; + ... + fastcgi_catch_stderr "PHP Fatal error"; + fastcgi_next_upstream error timeout invalid_header; +} +</example> +</para> + +</directive> + + <directive name="fastcgi_connect_timeout"> <syntax><value>время</value></syntax> <default>60s</default>