need help reverse-proxy config

Thierry nginx-forum at
Tue Jan 10 06:04:15 UTC 2017

error_log /var/log/nginx/error.log info;

events {
    worker_connections  1024;

stream {
    upstream backend {
        hash consistent;

        server email.domain.tld:448;

    server {
        listen 448;
        proxy_connect_timeout 1s;
        proxy_timeout 3s;
        proxy_pass backend;

I have difficulties to understand the "main context" idea .... With this 
exemple, is my "stream" in the right context ?? Seems not.

Posted at Nginx Forum:,271891,271899#msg-271899

More information about the nginx mailing list