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

Maxim Konovalov maxim at nginx.com
Tue Apr 28 21:33:49 UTC 2015

On 4/29/15 12:13 AM, 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 like upstreams are, anyone with a
> good example? or did I stumble on a context eval bug?
Put it in the same level as http.  E.g.

http { foo }

stream { bar }


Maxim Konovalov

More information about the nginx mailing list