comparison xml/en/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="Module ngx_http_fastcgi_module" 10 <module name="Module ngx_http_fastcgi_module"
11 link="/en/docs/http/ngx_http_fastcgi_module.html" 11 link="/en/docs/http/ngx_http_fastcgi_module.html"
12 lang="en" 12 lang="en"
13 rev="5"> 13 rev="6">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_fastcgi_module</literal> module allows to pass 18 The <literal>ngx_http_fastcgi_module</literal> module allows to pass
418 </para> 418 </para>
419 419
420 </directive> 420 </directive>
421 421
422 422
423 <directive name="fastcgi_catch_stderr">
424 <syntax><value>string</value></syntax>
425 <default/>
426 <context>http</context>
427 <context>server</context>
428 <context>location</context>
429
430 <para>
431 Sets a string to search for in the error stream of a response
432 received from a FastCGI server.
433 If the <value>string</value> is found then it is considered that the FastCGI
434 server returned an <link id="fastcgi_next_upstream">invalid response</link>.
435 This allows to handle application errors in nginx, for example:
436 <example>
437 location /php {
438 fastcgi_pass backend:9000;
439 ...
440 fastcgi_catch_stderr "PHP Fatal error";
441 fastcgi_next_upstream error timeout invalid_header;
442 }
443 </example>
444 </para>
445
446 </directive>
447
448
423 <directive name="fastcgi_connect_timeout"> 449 <directive name="fastcgi_connect_timeout">
424 <syntax><value>time</value></syntax> 450 <syntax><value>time</value></syntax>
425 <default>60s</default> 451 <default>60s</default>
426 <context>http</context> 452 <context>http</context>
427 <context>server</context> 453 <context>server</context>