Redirect to a web server depending on location with nginx

Posted by fceruti on Stack Overflow See other posts from Stack Overflow or by fceruti
Published on 2010-05-12T08:32:27Z Indexed on 2010/06/14 4:42 UTC
Read the original article Hit count: 273

Filed under:
|
|

Im working on a web site that has to be reachable from many countries under the same domain.

Id like to know how can I receive a request with nginx (or any other static file server), and send it to different web servers depending on IP's location.

I mean, what is the point on having multiple db machines on country A and B, if the server that serves you the page is chosen by round robin.

Maybe theres another solution to my problem, and I would be very happy if someone can explain it to me.

© Stack Overflow or respective owner

Related posts about redirect

Related posts about nginx