<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">I'd like to do a geo based
redirect. Users who initially hit my site would be given an IP round
robin from the DNS servers. Then each node would test the ip and
decide if it would be better to redirect to the closer node. Only doing
this for index.php, eg.<br>
<br>
http {<br>
...<br>
geo $region {<br>
default NA;<br>
include georegions.conf;<br>
}<br>
...<br>
<br>
server {<br>
...<br>
location ~ ^/index.php {<br>
if ($region = NA)<br>
--> what to write here to redirect to other IP? <br>
}<br>
location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; include
fastcgi_params; }<br>
}<br>
... other servers...<br>
<br>
<br>
Thanks for any help with this.<br>
Chris :)<br>
</font>
</body>
</html>