Converting the config file for dynamic module
Issue #25
new
Hi,
The config file is old-style for 3rd party :
ngx_addon_name=ngx_http_sticky_module
HTTP_MODULES="$HTTP_MODULES ngx_http_sticky_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_sticky_module.c $ngx_addon_dir/ngx_http_sticky_misc.c"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/ngx_http_sticky_misc.h"
USE_MD5=YES
USE_SHA1=YES
It's possible to converting file for new-style configuration and can be used with both dynamic module ? I modify the config file with :
ngx_addon_name=ngx_http_sticky_module
if test -n "$ngx_module_link"; then
ngx_module_type="HTTP"
ngx_module_name="ngx_http_sticky_module"
ngx_module_srcs="$ngx_addon_dir/ngx_http_sticky_module.c $ngx_addon_dir/ngx_http_sticky_misc.c"
ngx_module_deps="$ngx_addon_dir/ngx_http_sticky_misc.h"
. auto/module
else
# old-style configuration 3rd party - static module
HTTP_MODULES="$HTTP_MODULES ngx_http_sticky_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_sticky_module.c $ngx_addon_dir/ngx_http_sticky_misc.c"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/ngx_http_sticky_misc.h"
USE_MD5=YES
USE_SHA1=YES
fi
I launch the ./configure --add-dynamic-module=modules/ngx_http_sticky_module/ and return a correctly loading :
configuring additional dynamic modules
adding module in modules/ngx_http_sticky_module
+ ngx_http_sticky_module was configured
And i check the folder modules :
-rwxr-xr-x 1 root root 110920 29 juin 09:57 ngx_http_sticky_module.so
It's possible for converting the config file ? I'm not expert ;)
Regards,
Comments (2)
-
-
Where should this configuration go ?
- Log in to comment
As nginx v1.11.2 updates its MD5 and SHA implementation.
Changes with nginx 1.11.2 05 Jul 2016
Is it good to modify as follows?