Use of allow behind a load balancer

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?

Thanks!

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?

http://wiki.codemongers.com/NginxHttpRealIpModule

Maxim D.

On Jan 18, 2008 12:20 PM, Maxim D. [email protected] wrote:

http://wiki.codemongers.com/NginxHttpRealIpModule
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?

Thanks!