varnish 7 再入門

cookie.filter_except は6.4で削除された。cookie.keepを使う

Imported VMOD cookie - Varnish Cookie Module from varnish_modules

The previously deprecated function cookie.filter_except() has been removed during import. It was replaced by cookie.keep()

https://varnish-cache.org/docs/7.0/whats-new/changes-6.4.html

4.0

Starting varnishd.
Error:
Message from dlopen:
Compiled VCL version (4.0) not supported.
Running dlopen failed, exited with 1
VCL compilation failed

req.http.host と req.http.Host どちらがよいのか

https://github.com/varnishcache/varnish-cache/blob/master/bin/varnishd/builtin.vcl
https://developer.fastly.com/reference/http/http-headers/Host/

→ req.http.host