1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
http { # ... upstream balancer { server first.example.ru; server second.example.ru; } server { location / { proxy_pass http://balancer; } } }
You can clone a snippet to your computer for local editing. Learn more.