Mailing List Archive

Custom variables in varnish 5.1.2
Hi,

Is there custom variable in varnish 5.1.2, where I can store the regex like
^/?(.+?)?/([A-Z0-9]+([_x\
-][A-Z0-9]+)*)/details/?(tab)?/?(features|pictures|specifications|compatible|compatibleaccessories|manuals
Re: Custom variables in varnish 5.1.2 [ In reply to ]
Hi,

you can use vmod-var + vmod-re.

--
Guillaume Quintard

On Wed, May 24, 2017 at 7:23 AM, sreeranj s <sreeranj4droid@gmail.com>
wrote:

> Hi,
>
> Is there custom variable in varnish 5.1.2, where I can store the regex
> like ^/?(.+?)?/([A-Z0-9]+([_x\ -][A-Z0-9]+)*)/details/?(tab)?
> /?(features|pictures|specifications|compatible|
> compatibleaccessories|manuals
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
Re: Custom variables in varnish 5.1.2 [ In reply to ]
Thanks Guillaume.

I will try it out.

On Wed, May 24, 2017 at 5:58 PM, Guillaume Quintard <
guillaume@varnish-software.com> wrote:

> Hi,
>
> you can use vmod-var + vmod-re.
>
> --
> Guillaume Quintard
>
> On Wed, May 24, 2017 at 7:23 AM, sreeranj s <sreeranj4droid@gmail.com>
> wrote:
>
>> Hi,
>>
>> Is there custom variable in varnish 5.1.2, where I can store the regex
>> like ^/?(.+?)?/([A-Z0-9]+([_x\ -][A-Z0-9]+)*)/details/?(tab)?
>> /?(features|pictures|specifications|compatible|compatibleacc
>> essories|manuals
>>
>>
>>
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc@varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>
>