I have a setup where my website content is being served by mirrors also, but because my own traffic is strictly limited, I want to direct request (not proxy) to mirrors whenever they are online.
How can I do this with nginx? I already found this which seems quite close, but it seems to decide randomly for one of the servers and does not offer to serve the data from the host when the mirrors are offline.