vcl broken after upgrade from 4.1 to 5.0

Stefan Priebe - Profihost AG s.priebe at
Wed Aug 8 13:07:28 UTC 2018

Am 08.08.2018 um 14:14 schrieb Dridi Boukelmoune:
>> Yes but i'm sorry i'm unable to provide code. Is there any way to use
>> something like a loop or recursion? In that case i would be able to
>> modify a single set-cookie header like we need it.
> A "foreach" construct would indeed help for the case of multiple
> headers and it has been discussed in the past but to no avail. It's
> not trivial to add this to VCL and ensure soundness.
>> I also wasn't able to solve it by mod_headers.
> I'm not really surprised. This would require a VMOD of its own.
> Did you look at alternatives such as vmod-cookie and vmod-cookieplus?
> Maybe one of those provides enough capabilities for what you need to do.

Thanks again. Sadly it seems they do not help.

The Problem is:
1.) there are multiple set-cookies headers from the backend
2.) the vcl than uses multiple regsuball to modify them
3.) the multiple set-cookies headers have to be part of the response in
the same order as before except for those who are empty after the regsuball


very ugly.


> Dridi

More information about the varnish-misc mailing list