Can I use http and stream like this

http {

       ......................

}

stream {
      ......................
}

in same nginx.conf

Thank you

________________________________
From: nginx <nginx-boun...@nginx.org> on behalf of Richard Stanway 
<r1ch+ng...@teamliquid.net>
Sent: Monday, October 24, 2016 10:25 PM
To: nginx@nginx.org
Subject: Re: Receive raw data

Nginx will need a valid header in order to know what to do with the request. 
Maybe you should look into the stream module instead.

https://nginx.org/en/docs/stream/ngx_stream_core_module.html
Module ngx_stream_core_module - 
nginx.org<https://nginx.org/en/docs/stream/ngx_stream_core_module.html>
nginx.org
Sets the address and port for the socket on which the server will accept 
connections. It is possible to specify just the port. The address can also be a 
hostname, for ...



On Mon, Oct 24, 2016 at 2:56 PM, Nattakorn S 
<dragon_...@hotmail.com<mailto:dragon_...@hotmail.com>> wrote:

Dear all


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 fastcgi for webserver and develop my application for 
get message from port 8080.

But nginx always response with error 400 with "client sent invalid method while 
reading client request line".

I know cause my electronic device not have correct header in packet.

So I try add "ignore_invalid_headers off;" in http scope but not work.

I need to bypass raw data to my application.


Thank you.


_______________________________________________
nginx mailing list
nginx@nginx.org<mailto:nginx@nginx.org>
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to