emiller nginx modules guide
Evan Miller
emmiller at gmail.com
Thu Jul 3 07:51:57 MSD 2008
Thanks, I have updated the modules guide accordingly.
http://emiller.info/nginx-modules-guide.html
(I also rewrote the introduction to have a Batman theme, but the rest of
the document is the same as before.)
Evan
Sergey Bochenkov wrote:
> - 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
>
>> 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: http://emiller.info/nginx-modules-guide.html#compiling
>>
>> The issue is simple, but not obvious at first. The guide provides an
>> example addon configuration:
>>
>> ngx_addon_name=ngx_http_<your module>_module
>> HTTP_MODULES="$HTTP_MODULES ngx_http_<your module>_module"
>> NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_<your module>_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_<your module>_module
>> HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_<your module>_module"
>> NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_<your module>_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
>>
>>
>
>
>
>
More information about the nginx
mailing list