Nginx load balancer with GeoIP

Glen Lumanau glen at lumanau.web.id
Wed Nov 12 12:52:20 MSK 2008


Right now I just use
1.1.1.1 (nginx) 	> 2.2.2.2 (apache)
			> 3.3.3.3 (apache) --> located on different country

Nginx load balanced with 2 apache servers. 

Also what about the bandwidth that's used for accessing 3.3.3.3? It's using
1.1.1.1 bandwidth to access 3.3.3.3?


Regards,

Glen Lumanau


-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Igor
Sysoev
Sent: 12 Nopember 2008 16:46
To: nginx at sysoev.ru
Subject: Re: Nginx load balancer with GeoIP

On Wed, Nov 12, 2008 at 09:40:29AM +0000, glen at lumanau.web.id wrote:

> I already install and load mod_rpaf like already described from my
previous email

Sorry, I've missed this line.

Can describe what address you see in this form:

1.1.1.1 (LB) > 2.2.2.2 (nginx) > 3.3.3.3 (apache)

?

What do you use as Load Balancer ?

> Regards,
> 
> Glen Lumanau
> -
> Sent from my BlackBerry??
> 
> -----Original Message-----
> From: Igor Sysoev <is at rambler-co.ru>
> 
> Date: Wed, 12 Nov 2008 12:35:41 
> To: <nginx at sysoev.ru>
> Subject: Re: Nginx load balancer with GeoIP
> 
> 
> On Wed, Nov 12, 2008 at 04:03:57PM +0700, Glen Lumanau wrote:
> 
> > Thank's Igor it's works successfull.
> > 
> > Onother question is, are we using the Load Balancer bandwidth also to
send
> > the data to the client?
> > Because what we do is, I'm mirroring the server in my country, and I
have
> > onother server which is located in US
> > 
> > Also, I already install mod_rpaf on the apache, and set
> >         proxy_set_header Host $host;
> >         proxy_set_header X-Real-IP $remote_addr;
> >         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> >         proxy_pass http://$geo.server$request_uri;
> > 
> > But what I received on the apache logs, is still the load balancer IP,
not
> > the public IP
> 
> You should add mod_rpaf ( http://stderr.net/apache/rpaf/ ) to Apache.
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 

-- 
Igor Sysoev
http://sysoev.ru/en/






More information about the nginx mailing list