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.