Using multiple scenarios inside a conditional VCL statement

Andrew Langhorn andrew.langhorn at
Sun May 3 01:10:56 CEST 2015


When doing a comparison inside a conditional statement, what is the
accepted way to provide multiple scenarios to test against inside the

For instance, if I set up multiple ACLs, and then check client.ip against
them using the following syntax, is it likely to work?

if (client.ip ~ acl1 || acl2 || acl3 ) {

If not, does anyone know what will work?


Andrew Langhorn
Web Operations
Government Digital Service

e: andrew.langhorn at
a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list