Using multiple scenarios inside a conditional VCL statement

Andrew Langhorn andrew.langhorn at digital.cabinet-office.gov.uk
Sun May 3 01:10:56 CEST 2015


Hi,

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

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?

Thanks,

Andrew Langhorn
Web Operations
Government Digital Service

e: andrew.langhorn at digital.cabinet-office.gov.uk
a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150503/3b37a143/attachment.html>


More information about the varnish-misc mailing list