Welcome! Log In Create A New Profile

Advanced

nginx load balancer with geoip?

March 02, 2012 09:31AM
i wrote all geoip database in geo.conf, and i wrote these lines in http segment.
geo $geo {
include geo.conf;
}

and I set upstream in http segment like:
upstream default {
server folderfile.net;
}

upstream kr {
server nixneo.com;
}

and added server segment and set proxy_pass.
server {
listen 80;
server_name geotest.folderfile.net;

location / {
proxy_pass http://$geo;
}

work looks fine, request in korea perfectly proxied to nixneo.com and other requests go to folderfile.net BUT! the problem appeared.
you can see the problem in this url : http://geotest.folderfile.net/index.php?mid=talkboard (original url:http://delphixe.folderfile.net/index.php?mid=talkboard)
can't see the problem? let you explain it.
see my image : http://img717.imageshack.us/img717/3426/gipp.png


how can I solve this problem? please help!
Subject Author Posted

nginx load balancer with geoip?

delphixe2 March 02, 2012 09:31AM

Re: nginx load balancer with geoip?

Francis Daly March 02, 2012 02:52PM

Re: nginx load balancer with geoip?

delphixe2 March 02, 2012 10:46PM

Re: nginx load balancer with geoip?

Francis Daly March 04, 2012 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready