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

Error: unknown directive "stream" for Layer 4 loadbalancer #10

Open
subhrapaladhi opened this issue Jul 26, 2020 · 0 comments
Open

Error: unknown directive "stream" for Layer 4 loadbalancer #10

subhrapaladhi opened this issue Jul 26, 2020 · 0 comments

Comments

@subhrapaladhi
Copy link

OS: Ubuntu 20.04LTS
Nginx version: nginx/1.18.0 (Ubuntu)

Even after changing http to stream in the nginx.conf while creating the layer 4 load balancer I was getting this error:-
nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf

I found a solution to that here

If you are facing the error then add this line on top of nginx.conf:-
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
and restart Nginx with sudo nginx -s reload
It should work now.

Creating this issue so that if anyone is facing same problem then this should solve that.

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

1 participant