Filter module callback not been called

Wandenberg Peixoto wandenberg at gmail.com
Thu Mar 1 18:04:15 UTC 2012


I think the problem is in config file.

Try to set this
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES
ngx_http_simple_example_module "

instead of this

HTTP_MODULES="$HTTP_MODULES ngx_http_simple_example_module"

To enable your module as a filter module

Regards

On Thu, Mar 1, 2012 at 2:22 PM, Lucas Brasilino
<lucas.brasilino at gmail.com>wrote:

> Hi!
>
> I gonna write a filter module so I'm starting to do some experiments.
> I did a simple handler module that can be seen at [1] and is working fine.
>
> I'm facing a little problem. It should be some detail I can't see right
> now. My filter module callback is not been called.
>
> The code is here: http://pastebin.com/wUB5H0A3
>
> I registered the filter to the 'filters chain' at
> 'ngx_http_static_header_init()'.
>
> ngx_http_static_header_init() is called, but
> ngx_http_static_header_filter() is
> not.
>
> Where is my mistake ? :)
>
> thanks in advance
> Lucas Brasilino
>
>
> [1] https://github.com/lucasbrasilino/ngx_http_simple_example
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120301/ba62ca88/attachment.html>


More information about the nginx-devel mailing list