nginx-1.11.3

Maxim Dounin mdounin at mdounin.ru
Tue Jul 26 18:44:32 UTC 2016


Hello!

On Tue, Jul 26, 2016 at 02:38:19PM -0400, George wrote:

> trying to enable ngx_stream_geoip_module as a dynamic module and getting
> this error ONLY on SOME servers and not others all compiled with same
> settings ?
> 
> nginx -t
> nginx: [emerg] dlopen()
> "/usr/local/nginx/modules/ngx_stream_geoip_module.so" failed
> (/usr/local/nginx/modules/ngx_stream_geoip_module.so: undefined symbol:
> ngx_stream_add_variable) in /usr/local/nginx/conf/dynamic-modules.conf:3
> nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
> 
> /usr/local/nginx/conf/dynamic-modules.conf include file in nginx.conf
> 
> load_module "modules/ngx_http_image_filter_module.so";
> load_module "modules/ngx_http_fancyindex_module.so";
> load_module "modules/ngx_stream_geoip_module.so";
> load_module "modules/ngx_http_geoip_module.so";
> load_module "modules/ngx_stream_module.so";

You have to load stream geoip module after the stream module is 
loaded.  That is, change the order of lines:

load_module "modules/ngx_stream_module.so";
load_module "modules/ngx_stream_geoip_module.so";

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list