Regex question

Zeeshan Ali Shah zeeshan at infoshield.info
Tue Aug 14 12:56:04 CEST 2012


Hi, Got good link here http://kly.no/varnish/regex.txt


Zeeshan

On Mon, Aug 13, 2012 at 1:52 AM, Zeeshan Ali Shah
<zeeshan at infoshield.info>wrote:

> Hi, Thanks alot for help ..
>
> what if we want to check specific
> 1)  specific plugin lets say postie in wordpress  ?
> 2) all of url under plugin ?
>
>
> thanks in advance.
>
> BR
>
> Zeeshan
>
>
> On Tue, Aug 7, 2012 at 10:48 PM, Jonathan Hursey <
> jonathan.hursey at adrevolution.com> wrote:
>
>> oops... I knew that
>>
>>
>> On Tue, Aug 7, 2012 at 3:45 PM, Hugo Cisneiros (Eitch) <
>> hugo.cisneiros at gmail.com> wrote:
>>
>>> On Mon, Aug 6, 2012 at 9:13 PM, Jonathan Hursey
>>> <jonathan.hursey at adrevolution.com> wrote:
>>> > if (req.http.host == ('^(cdn)\..+\.+')
>>> >   {
>>> >       set req.backened = cdnserver
>>> >   }
>>>
>>> Use the "~" symbol when using regex while comparing[1].
>>>
>>> This should work:
>>>
>>> if (req.http.host ~ "^cdn\.") {
>>>   set req.backend = be_cdnserver;
>>> }
>>>
>>> [1] https://www.varnish-cache.org/docs/3.0/reference/vcl.html
>>>
>>> --
>>> []'s
>>> Hugo
>>> www.devin.com.br
>>>
>>> _______________________________________________
>>> varnish-misc mailing list
>>> varnish-misc at varnish-cache.org
>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>>
>>
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120814/89d91399/attachment.html>


More information about the varnish-misc mailing list