Hi, I am working on Load Balancing for my websites… I got this: upstream backend { ny1 192.241.143.207; ny2 162.243.27.154; sf1 162.243.133.133; } The servers host like 7 sites each(all the same files)… What do I put in here: ny1 { location / { proxy_pass http://backend; <-- here } }
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Oh wait! I’ll take a gamble that ny1,ny2,sf1 needs to be server as in the tutorial. I thought it was placeholder.
You don’t need all of these server blocks. You need only one upstream block and server block.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.