Nginx插件用法 ################# 在你的目录下新建文件夹, 至少有以下两个文件:: config ngx_http__module.c "config" for filter modules:: ngx_addon_name=ngx_http__module HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http__module" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http__module.c" "config" for other modules:: 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" recompile nginx with:: ./configure --add-module=/ if you need any dynamically linked libraries, you can add this to your "config" file:: CORE_LIBS ="$CORE_LIBS -lfoo" // foo is the library you need