Thank you Maxim I try to use stream module because http module not work with raw incoming TCP/IP. I always got error 400 and transaction not sent from nginx to my app so I try to use stream module. My app develop with fcgi So if you mean my app can not accept raw TCP/IP data I'll try to change my app. Please suggest me how to develop c++ app for receive stream without fastcgi.
Thank you ส่งจาก Samsung Mobile -------- ข้อความดั้งเดิม -------- จาก: Maxim Dounin <[email protected]> วันที่: 28/10/2016 18:31 (GMT+07:00) ถึง: [email protected] เรื่อง: Re: Nginx with ngx_stream_core_module Hello! On Fri, Oct 28, 2016 at 11:16:03AM +0000, Nattakorn S wrote: > I have electronic device and I config to send TCP/IP data to my > server by raw data no http header. > > My server use nginx with and config for use module > ngx_stream_core_module like this > > > stream { > server { > listen 127.0.0.1:8080; > proxy_pass 127.0.0.1:9090; > proxy_buffer_size 16k; > } > } > > I run fastcgi server at port 9090. How I config nginx for sent > transaction from 8080 to fastcgi server at 9090 The stream module is to route raw TCP/IP streams, while what you want to do requires converting a raw stream into a FastCGI request. This is not something you can do using the stream module. -- Maxim Dounin http://nginx.org/ _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
