nginx load balancer with geoip?

delphixe2 nginx-forum at
Fri Mar 2 14:31:05 UTC 2012

i wrote all geoip database in geo.conf, and i wrote these lines in http
geo $geo {
include geo.conf;

and I set upstream in http segment like:
upstream default {

upstream kr {

and added server segment and set proxy_pass.
server {
listen 80;

location / {
proxy_pass  http://$geo;

work looks fine, request in korea perfectly proxied to and
other requests go to BUT! the problem appeared.
you can see the problem in this url : (original
can't see the problem? let you explain it.
see my image :

how can I solve this problem? please help!

Posted at Nginx Forum:,223278,223278#msg-223278

More information about the nginx mailing list