Difference between revisions of "Nginx upstream directive"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page Upstream to Upstream (Nginx))
Line 10: Line 10:
 
}
 
}
 
</pre>
 
</pre>
 +
 +
 +
[[Category:Nginx]]

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: