Question of use of ACLs

Jim Hayter jhayter at manta.com
Tue Jan 29 16:47:54 CET 2013


Thanks to both James Pearson and Per Buer for their suggestions.  I implemented the one below and it is working as desired.

Regards,
Jim

-----Original Message-----
From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of James Pearson
Sent: Monday, January 28, 2013 5:04 PM
To: varnish-misc
Subject: Re: Question of use of ACLs

Excerpts from Jim Hayter's message of 2013-01-28 13:38:02 -0800:
> I am running Varnish 3.02 under Ubuntu 12.04.  
> 
> I am familiar with the ACL example of setting up a list of IPs and testing client.ip against it to limit the ability to purge.
> 
> I have an environment where I would like to check the IP of the originating request against an ACL to decide which backend to use.  The problem is that with a CDN and nginx in front of varnish, client.ip does not contain the appropriate IP.  The originating IP is available in one of the request headers.  Is there a way to convince varnish to compare the originating IP with the ACL?

Here's something I found on the subject:
http://zcentric.com/2012/03/16/varnish-acl-with-x-forwarded-for-header/

HTH,
 - P

_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list