Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown directive "dynamic_upstream" error #30

Open
dshivashankar1994 opened this issue May 12, 2022 · 2 comments
Open

unknown directive "dynamic_upstream" error #30

dshivashankar1994 opened this issue May 12, 2022 · 2 comments

Comments

@dshivashankar1994
Copy link

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
Copy link

dx7 commented Nov 30, 2022

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

@lamoboos223
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants