Question

As explained in https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html I am trying to

" Cookies from the client For a lot of web application it makes sense to completely disregard the cookies unless you are accessing a special part of the web site. This VCL snippet in vcl_recv will disregard cookies unless you are accessing /admin/: "

if ( !( req.url ~ ^/admin/) ) { unset req.http.Cookie; }

but when I set this on the default.vcl file and restart varnish: Syntax error at ('input' Line 120 Pos 19) if ( !( req.url ~ ^/admin/) ) { ------------------#------------

Running VCC-compiler failed, exit 1

VCL compilation failed

The documentation seems to have a issue, I can't figure out either. Can someone help? Thanks.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top