Welcome! Log In Create A New Profile

Advanced

Re: nginx load balancer with geoip?

March 02, 2012 10:46PM
I tried that, and I get 500 Internal Server Error.
and more lines what I tested :
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

in any case, dosen't worked.

temporarily, I solved problem.
upstream default.folderfile.net {
server folderfile.net;
}
upstream kr.folderfile.net {
server nixneo.com;
}

location / {
proxy_pass http://$geo.folderfile.net;
}

and I added record for default.folderfile.net -> folderfile.net's server IP & kr.folderfile.net -> nixneo.com's IP
so, that image appeared, the link was : http://default.folderfile.net/modules/document/tpl/icons/file.gif


but.. It is incomplete solution.

* now, you can see that site. I opened my server.
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: 96
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