How nginx proxy works


I would like to know how nginx proxy_pass works with upstream. I have 2
backend servers running. 1 nginx proxy running in front of them.

My question is
if one user connects to nginx proxy then nginx forward it to first
backend ?
or it forward it to both backend ?

Posted at Nginx Forum:,261046,261046#msg-261046

I think what you are looking for is .


Thank you for reply. I’m using round robin load balancing on nginx. I
see the how many connection is established on backend server. It shows

backend server 1 = 100 connection
backend server 2 = 99 connection

Does it mean unique 199 connection ? or unique ~100 connection ?

Is only ip_hash method for unique connection ?

Posted at Nginx Forum:,261046,261048#msg-261048