cli bans

eric.m.vandenhout at eric.m.vandenhout at
Fri Aug 23 08:13:12 UTC 2019

Thnx for you reply.
Anther question that pops in mind then. Can vcl's include other files?

Regards, Eric

-----Oorspronkelijk bericht-----
Van: Poul-Henning Kamp <phk at> 
Verzonden: Thursday, 22 August 2019 23:06
Aan: Hout, Eric van den <eric.m.vandenhout at>
CC: varnish-misc at
Onderwerp: Re: cli bans

In message <AM6PR01MB4279CC64CEDED17494222A8AA0A50 at>, eric.m.vandenhout at writes:

> Just a smal question. Is it possible to temporarily send  a specific 
> http  errorcode back (e.g. http 429) to an  ip from varnish using the 
> commandline client (or by any other means) without restarting varnish?


Add the necessary code to your VCL, switch to the new VCL.  This is an instant operation which does not affect your cache content.

Something like:

	vi/emacs/ed  whatever_your.vcl


	varnishadm vcl.load somename /full/path/to/whatever_your.vcl

	varnishadm vcl.use somename

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list