Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
861:6ae71688f2c2 | 862:6a40b8e7219a |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Модуль ngx_http_fastcgi_module" | 10 <module name="Модуль ngx_http_fastcgi_module" |
11 link="/ru/docs/http/ngx_http_fastcgi_module.html" | 11 link="/ru/docs/http/ngx_http_fastcgi_module.html" |
12 lang="ru" | 12 lang="ru" |
13 rev="5"> | 13 rev="6"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 Модуль <literal>ngx_http_fastcgi_module</literal> позволяет передавать | 18 Модуль <literal>ngx_http_fastcgi_module</literal> позволяет передавать |
416 </para> | 416 </para> |
417 | 417 |
418 </directive> | 418 </directive> |
419 | 419 |
420 | 420 |
421 <directive name="fastcgi_catch_stderr"> | |
422 <syntax><value>строка</value></syntax> | |
423 <default/> | |
424 <context>http</context> | |
425 <context>server</context> | |
426 <context>location</context> | |
427 | |
428 <para> | |
429 Задаёт строку для поиска в потоке ошибок ответа, | |
430 полученного от FastCGI-сервера. | |
431 Если <value>строка</value> найдена, то считается, что FastCGI-сервер | |
432 вернул <link id="fastcgi_next_upstream">неверный ответ</link>. | |
433 Это позволяет обрабатывать ошибки приложений в nginx, например: | |
434 <example> | |
435 location /php { | |
436 fastcgi_pass backend:9000; | |
437 ... | |
438 fastcgi_catch_stderr "PHP Fatal error"; | |
439 fastcgi_next_upstream error timeout invalid_header; | |
440 } | |
441 </example> | |
442 </para> | |
443 | |
444 </directive> | |
445 | |
446 | |
421 <directive name="fastcgi_connect_timeout"> | 447 <directive name="fastcgi_connect_timeout"> |
422 <syntax><value>время</value></syntax> | 448 <syntax><value>время</value></syntax> |
423 <default>60s</default> | 449 <default>60s</default> |
424 <context>http</context> | 450 <context>http</context> |
425 <context>server</context> | 451 <context>server</context> |