# HG changeset patch # User Ruslan Ermilov # Date 1336994979 0 # Node ID 8e1356bd281a61fb291f20f61d04422a09a01dc7 # Parent 1569ce935ea31beef8804060171054db94c7f71f Documented the "debug_connection" directive. diff -r 1569ce935ea3 -r 8e1356bd281a xml/en/docs/debugging_log.xml --- a/xml/en/docs/debugging_log.xml Fri May 11 12:51:02 2012 +0000 +++ b/xml/en/docs/debugging_log.xml Mon May 14 11:29:39 2012 +0000 @@ -55,7 +55,9 @@ -It is also possible to enable the debugging log for selected addresses only: +It is also possible to enable the debugging log for +selected +client addresses only: error_log /path/to/log; diff -r 1569ce935ea3 -r 8e1356bd281a xml/en/docs/ngx_core_module.xml --- a/xml/en/docs/ngx_core_module.xml Fri May 11 12:51:02 2012 +0000 +++ b/xml/en/docs/ngx_core_module.xml Mon May 14 11:29:39 2012 +0000 @@ -42,6 +42,43 @@ + + + address | + CIDR | + unix: + +events + + +Enables debugging log for selected client connections. +Other connections will use logging level set by the + directive. +Debugged connections are specified by IPv4 or IPv6 (1.3.0) address or network. +A connection may also be specified using a hostname, in which case the +first IPv4 address corresponding to a name is used. +For connections using UNIX-domain sockets (1.3.0), debugging log is enabled +by the “unix:” parameter. + +events { + debug_connection 127.0.0.1; + debug_connection localhost; + debug_connection 192.0.2.0/24; + debug_connection ::1; + debug_connection 2001:0db8::/32; + debug_connection unix:; + ... +} + + +For this directive to work, nginx needs to +be built with --with-debug. + + + + + + file | stderr diff -r 1569ce935ea3 -r 8e1356bd281a xml/ru/docs/debugging_log.xml --- a/xml/ru/docs/debugging_log.xml Fri May 11 12:51:02 2012 +0000 +++ b/xml/ru/docs/debugging_log.xml Mon May 14 11:29:39 2012 +0000 @@ -53,7 +53,9 @@ -Можно включить отладочный лог только для определённых адресов: +Можно включить отладочный лог только для +определённых +клиентских адресов: error_log /path/to/log; diff -r 1569ce935ea3 -r 8e1356bd281a xml/ru/docs/ngx_core_module.xml --- a/xml/ru/docs/ngx_core_module.xml Fri May 11 12:51:02 2012 +0000 +++ b/xml/ru/docs/ngx_core_module.xml Mon May 14 11:29:39 2012 +0000 @@ -42,6 +42,43 @@ + + + адрес | + CIDR | + unix: + +events + + +Включает отладочный лог для отдельных клиентских соединений. +Для остальных соединений используется уровень лога, заданный директивой +. +Отлаживаемые соединения задаются IPv4 или IPv6 (1.3.0) адресом или сетью. +Соединение может быть также задано при помощи имени хоста, в этом случае +используется первый IPv4-адрес, соответствующий имени. +Отладочный лог для соединений через UNIX-сокеты (1.3.0) включается параметром +“unix:”. + +events { + debug_connection 127.0.0.1; + debug_connection localhost; + debug_connection 192.0.2.0/24; + debug_connection ::1; + debug_connection 2001:0db8::/32; + debug_connection unix:; + ... +} + + +Для работы директивы необходимо сконфигурировать nginx с параметром +--with-debug. + + + + + + файл | stderr