I have a variable I'd like to include in Varnish regex match, but having trouble finding the correct syntax, example below. Appreciate any tips.
if (req.url !~ "slreturn=(req.http.yearMonthDay)") {...
I have a variable I'd like to include in Varnish regex match, but having trouble finding the correct syntax, example below. Appreciate any tips.
if (req.url !~ "slreturn=(req.http.yearMonthDay)") {...
@Kari I see that you're using a mixture of double quotes & single quotes to interpolate the
req.http.YearMonthDayheader into the regex.Please use double quotes only as illustrated below:
If that still doesn't work for you, please paste the error that the Varnish compiler returns when starting Varnish.