diff --git a/doc/varnish/vcl/varnish3.vcl b/doc/varnish/vcl/varnish3.vcl index 718c26ea75..f10f2bc3e3 100644 --- a/doc/varnish/vcl/varnish3.vcl +++ b/doc/varnish/vcl/varnish3.vcl @@ -116,7 +116,7 @@ sub ez_purge { } if (req.http.X-Location-Id) { - ban( "obj.http.X-Location-Id ~ " + req.http.X-Location-Id); + ban( "obj.http.X-Location-Id ~ \b" + req.http.X-Location-Id + "\b"); if (client.ip ~ debuggers) { set req.http.X-Debug = "Ban done for content connected to LocationId " + req.http.X-Location-Id; } diff --git a/doc/varnish/vcl/varnish4.vcl b/doc/varnish/vcl/varnish4.vcl index 8d743b6563..8a18cd50c5 100644 --- a/doc/varnish/vcl/varnish4.vcl +++ b/doc/varnish/vcl/varnish4.vcl @@ -113,7 +113,7 @@ sub ez_purge { } if (req.http.X-Location-Id) { - ban("obj.http.X-Location-Id ~ " + req.http.X-Location-Id); + ban("obj.http.X-Location-Id ~ \b" + req.http.X-Location-Id + "\b"); if (client.ip ~ debuggers) { set req.http.X-Debug = "Ban done for content connected to LocationId " + req.http.X-Location-Id; }