ตอบกลับ: Re: Nginx with ngx_stream_core_module

Nattakorn S dragon_nat at hotmail.com
Fri Oct 28 12:47:53 UTC 2016


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 <mdounin at mdounin.ru>
วัน​ที่: 28/10/2016 18:31 (GMT+07:00)
ถึง: nginx at nginx.org
เรื่อง: 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
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161028/554c5e95/attachment.html>


More information about the nginx mailing list