1.9 stream not working? 'directive is not allowed here'

Sergey Kandaurov pluknet at nginx.com
Tue Apr 28 21:36:21 UTC 2015

On 29.04.2015 00:13, itpp2012 wrote:
> Hmm, following: http://nginx.com/resources/admin-guide/tcp-load-balancing/
> I get a nginx: [emerg] "stream" directive is not allowed here
> eventhough its within the http context

You need to define it in the main context.

See http://nginx.org/r/stream for details.

More information about the nginx mailing list