cubicdaiya / ngx_dynamic_upstream

Dynamic upstream for nginx
Other
501 stars 109 forks source link

unknown directive "dynamic_upstream" error #30

Open dshivashankar1994 opened 2 years ago

dshivashankar1994 commented 2 years ago

I configured nginx with below command and did make, make install

./configure --add-module=spnego-http-auth-nginx-module --with-http_auth_request_module --with-http_ssl_module --add-dynamic-module=ngx_dynamic_upstream --prefix=/u/dhamodha/nginx

When I try to use nginx, I get the warning

''' nginx: [emerg] unknown directive "dynamic_upstream" in /local/apps/dhamodha/nginx_dpysrv_multi_proj5.3531/dpysrv/etc/nginx.conf:135 '''

Am I missing something ?

dx7 commented 1 year ago

You need to load the module in your nginx.conf like this: load_module /path/to/ngx_dynamic_upstream_module.so;

lamoboos223 commented 1 year ago

@dx7

how to build the module with nginx? tried this:

cd openresty-1.21.4.1/
./configure --with-http_realip_module --with-http_ssl_module --add-module=/opt/nginx_upstream_check_module --add-module=/opt/ngx_dynamic_upstream/src

but got error when trying to configuring the module ngx_dynamic_upstream