What does upstream mean in nginx?

后端 未结 3 1392
Happy的楠姐
Happy的楠姐 2020-12-12 10:43
upstream app_front_static {
    server 192.168.206.105:80;
}

Never seen it before, anyone knows, what it means?

3条回答
  •  盖世英雄少女心
    2020-12-12 11:29

    If we have a single server we can directly include it in the proxy_pass. But in case if we have many servers we use upstream to maintain the servers. Nginx will load-balance based on the incoming traffic.

提交回复
热议问题