# HG changeset patch # User Homutov Vladimir # Date 1363085125 -14400 # Node ID 6a40b8e7219a1603e38b4ff3dcc850b53d7cd218 # Parent 6ae71688f2c23c569d2a7cfc5ae39e06c6ec9cbd Documented the "fastcgi_catch_stderr" directive. diff -r 6ae71688f2c2 -r 6a40b8e7219a xml/en/docs/http/ngx_http_fastcgi_module.xml --- a/xml/en/docs/http/ngx_http_fastcgi_module.xml Tue Mar 12 14:43:07 2013 +0400 +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml Tue Mar 12 14:45:25 2013 +0400 @@ -10,7 +10,7 @@ + rev="6">
@@ -420,6 +420,32 @@ + +string + +http +server +location + + +Sets a string to search for in the error stream of a response +received from a FastCGI server. +If the string is found then it is considered that the FastCGI +server returned an invalid response. +This allows to handle application errors in nginx, for example: + +location /php { + fastcgi_pass backend:9000; + ... + fastcgi_catch_stderr "PHP Fatal error"; + fastcgi_next_upstream error timeout invalid_header; +} + + + + + + time 60s diff -r 6ae71688f2c2 -r 6a40b8e7219a xml/ru/docs/http/ngx_http_fastcgi_module.xml --- 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 @@ + rev="6">
@@ -418,6 +418,32 @@ + +строка + +http +server +location + + +Задаёт строку для поиска в потоке ошибок ответа, +полученного от FastCGI-сервера. +Если строка найдена, то считается, что FastCGI-сервер +вернул неверный ответ. +Это позволяет обрабатывать ошибки приложений в nginx, например: + +location /php { + fastcgi_pass backend:9000; + ... + fastcgi_catch_stderr "PHP Fatal error"; + fastcgi_next_upstream error timeout invalid_header; +} + + + + + + время 60s