Welcome! Log In Create A New Profile

Advanced

Re: nginx load balancer with geoip?

Francis Daly
March 02, 2012 02:52PM
On Fri, Mar 02, 2012 at 09:31:05AM -0500, delphixe2 wrote:

Hi there,

> 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 :

I can't get to folderfile.net, so I can't test this directly.

> 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

I *think* this says "the proxied server creates links to its local
resources using http:// and whatever the client sent in the Host: header".

You can try adding

proxy_set_header Host $host;

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

inside that location, so that the Host: header used will probably be
resolvable by the client.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready