<div dir="ltr"><div>You can use an accept handler to do that.<br>something like that<br><br>ngx_http_handler_pt *h;<br>ngx_http_core_main_conf_t *cmcf;<br><br>cmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_core_module);<br>
<br>h = ngx_array_push(&cmcf->phases[NGX_HTTP_ACCESS_PHASE].handlers);<br>if (h == NULL) {<br> return NGX_ERROR;<br>}<br><br>*h = your_handler_function;<br><br></div>and in your_handler_function you record the request and return a NGX_OK, which allow the request to continue to the next handler.<br>
<br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 9:11 PM, Myla John-B22173 <span dir="ltr"><<a href="mailto:B22173@freescale.com" target="_blank">B22173@freescale.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am VERY new to NGINX and trying to understand how it works. I understand there are 3 main components, handlers, filters and load balancers and there can be multiple “Filters”.
<u></u><u></u></p>
<p class="MsoNormal">My question is, can we have multiple “Handlers”? I want to develop a module, which need to capture all the requests, need to record these requests and continue the normal processing.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">John <u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br></blockquote></div><br></div>