Use of allow behind a load balancer

Joaquin Cuenca Abela e98cuenc at
Fri Jan 18 19:52:59 MSK 2008

On Jan 18, 2008 12:20 PM, Maxim Dounin <mdounin at> wrote:
> Hello!
> On Fri, Jan 18, 2008 at 09:55:02AM +0100, Joaquin Cuenca Abela wrote:
> >Hi, I want to restrict access to a particular URL to some IPs, but my
> >nginx is behind a load balancer, and the user IP is stored in a
> >header.
> >Is there any way to make "allow" act on the value of an http header
> >instead of the IP of the load balancer?

Hi Maxim,

the NginxHttpRealIpModule is limited to use X-Real-IP or
X-Forwarded-For headers, Is there any alternative if you have the IP
in another header?


Joaquin Cuenca Abela

More information about the nginx mailing list