Difference between revisions of "Nginx upstream directive"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Load balancing in Nginx is configured using <code>upstream</code> directive.<ref>https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#overview</r...")
 
m (Welcome moved page Upstream to Upstream (Nginx))
(No difference)

Revision as of 11:14, 29 December 2019

Load balancing in Nginx is configured using upstream directive.[1]

http {
    upstream backend {
        server backend1.example.com weight=3;
        server backend2.example.com;
        server 192.0.10.1 backup;
    }
}

Advertising: