<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Добрый день.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Если следовать рекомендациям из статьи <A
href="http://www.riceonfire.org/emiller/nginx-modules-guide.html"><FONT
face=Arial
size=2>http://www.riceonfire.org/emiller/nginx-modules-guide.html</FONT></A></FONT></DIV>
<DIV><FONT face=Arial size=2>при написании filter модуля, то он
вставляется в начало списка filter модулей,</FONT></DIV>
<DIV><FONT face=Arial size=2>что приводит к его игнорированию, из-за перезаписи
ngx_http_top_body_filter</FONT></DIV>
<DIV><FONT face=Arial size=2>в ngx_http_write_filter_module, который считает
себя началом цепочки фильтров.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2><STRONG>[src/http/ngx_http_write_filter_module.c]</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>static
ngx_int_t<BR>ngx_http_write_filter_init(ngx_conf_t
*cf)<BR>{<BR> <FONT color=#ff0000>ngx_http_top_body_filter =
ngx_http_write_filter;</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> return NGX_OK;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>[objs/ngx_modules.c]</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ngx_module_t *ngx_modules[] = {</FONT></DIV>
<DIV><FONT face=Arial size=2>.....</FONT></DIV>
<DIV><FONT face=Arial color=#ff0000
size=2>&ngx_http_addon_filter_module, <= вставка в
начало списка!</FONT></DIV>
<DIV><FONT face=Arial
size=2>&ngx_http_write_filter_module,<BR>&ngx_http_header_filter_module,<BR>&ngx_http_chunked_filter_module,<BR>&ngx_http_range_header_filter_module,<BR>&ngx_http_gzip_filter_module,<BR>&ngx_http_postpone_filter_module,<BR>&ngx_http_charset_filter_module,<BR>&ngx_http_ssi_filter_module,<BR>&ngx_http_userid_filter_module,<BR>&ngx_http_headers_filter_module,<BR>&ngx_http_copy_filter_module,<BR>&ngx_http_range_body_filter_module,<BR>&ngx_http_not_modified_filter_module,</FONT></DIV>
<DIV><FONT face=Arial
size=2>
<= <FONT color=#008000>правильное место для вставки</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>NULL</FONT></DIV>
<DIV><FONT face=Arial size=2>};</FONT></DIV></BODY></HTML>