Emiller nginx modules guide

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_http
module"
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_http
module"
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

  • HTTP_FILTER_MODULES=“$HTTP_FILTER_MODULES ngx_http_…_module”
  • HTTP_AUX_FILTER_MODULES=“$HTTP_AUX_FILTER_MODULES ngx_http_…_module”

http://article.gmane.org/gmane.comp.web.nginx.russian/11132

Thanks, I have updated the modules guide accordingly.

(I also rewrote the introduction to have a Batman theme, but the rest of
the document is the same as before.)

Evan

On Mit 02.07.2008 22:51, Evan M. wrote:

Thanks, I have updated the modules guide accordingly.

Best Sign Company National City, CA | Custom Sign Shop and Wraps Near Me

(I also rewrote the introduction to have a Batman theme, but the rest
of the document is the same as before.)

Cool intro ;-)))

Aleks