gplessis/dotdeb-nginx

Streams directive is not avaible

Closed this issue · 3 comments

Hello,

I've tried to use the Dotdeb nginx version because it comes with Naxsi, but I've found that streams are not supported. It gives me an error:
Feb 15 13:27:27 someserver nginx[7642]: nginx: [emerg] unknown directive "stream" in /etc/nginx/streams-enabled/streams.conf:2

I comes from the official release and works fine.
What can I do to make it work?. I've installed the nginx-extras package that includes the libnginx-mod-stream module.

Thanks!!

First thing, only nginx-full or nginx-extras (not nginx-light) support streams. That's ok in your case since you installed nginx-extras.

Then verify that you have the following line in your /etc/nginx/nginx.conf file :

include /etc/nginx/modules-enabled/*.conf;

This line will make sure that streams are loaded, since they're a separate dynamic module.

Did it solve your issue?

Yeah, sorry. I forgot to comment that was solved just loading that files.

Thanks!!!