Error: nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf:11

Roman Arutyunyan arut at nginx.com
Thu Dec 7 12:43:26 UTC 2023


Hi,

> On 7 Dec 2023, at 13:17, Gandla, Kesavardhana via nginx <nginx at nginx.org> wrote:
> 
> Dear NGINX community,
>  
> I am Kesavardhana Gandla from Medtronic R&D, Bangalore. I am trying to evaluate the nginx on YOCTO Linux based embedded product.
> My Linux version: 5.15.71  aarch64 GNU/Linux.
> While using the stream option on target the below error is coming.
>  
> Error: nginx: [emerg] unknown directive "stream" in /etc/nginx/nginx.conf:11
> Attached the nginx.conf file for reference.
> nginx -V
> nginx version: nginx/1.20.1
> built with OpenSSL 3.0.7 1 Nov 2022
> TLS SNI support enabled
> configure arguments: --crossbuild=Linux:aarch64 --with-endian=little --with-int=4 --with-long=8 --with-long-long=8 --with-ptr-size=8 --with-sig-atomic-t=8 --with-size-t=8 --with-off-t=8 --with-time-t=8 --with-sys-nerr=132 --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/run/nginx/client_body_temp --http-proxy-temp-path=/run/nginx/proxy_temp --http-fastcgi-temp-path=/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/run/nginx/uwsgi_temp --http-scgi-temp-path=/run/nginx/scgi_temp --pid-path=/run/nginx/nginx.pid --prefix=/usr --with-threads --with-http_gzip_static_module --with-http_ssl_module
>  
> Could you please provide your feedback to resolve the above error “unknown directive stream”?
> Does open source version of NGNX support stream directive? If yes, how to include it in the yocto build?

Stream support in nginx is enabled by "--with-stream" configuration option.
Apparently your nginx is now built without Stream support.

----
Roman Arutyunyan
arut at nginx.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20231207/e74d761f/attachment.htm>


More information about the nginx mailing list