Hi,
I’ve just started working on a new nginx filter module… Not sure
if I’ll get it finished, but did notice an issue in the emiller guide,
here: Best Sign Company National City, CA | Custom Sign Shop and Wraps Near Me
The issue is simple, but not obvious at first. The guide provides an
example addon configuration:
ngx_addon_name=ngx_http_module
HTTP_MODULES="$HTTP_MODULES ngx_httpmodule"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_module.c"
But, if you’re creating a filter module, this will load the addon
filter too early and it’s filter methods will never get called. It
needs to be
ngx_addon_name=ngx_http_module
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_httpmodule"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_module.c"
Hope, this is useful to anyone else writing a filter module, thanks
and hopefully this is the right list for this post.
Thanks,
-Todd