Difference between revisions of "Nginx upstream directive"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
  
 
[[Category:Nginx]]
 
[[Category:Nginx]]
 +
[[Category:Web]]

Revision as of 11:15, 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: