Report this

What is the reason for this report?

nginx load balancing for two servers host images

Posted on April 10, 2016

i want to user 3 servers. server 1 for serve my application and handle load balancing server 2 and 3 for host images.

Server 1

domain: example.com

Servers 2 & 3

server 2: image/img_1.jpg
server 3: image/img_2.jpg

i whant this image served like this.

example.com/image/img_1.jpg -> this from server 2
example.com/image/img_2.jpg -> this from server 3


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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello!

Try to use our balancer as a service solution: https://failovery.com . There you could setup such load balancing without Server 1.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.