cli bans

eric.m.vandenhout at kpn.com eric.m.vandenhout at kpn.com
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 phk.freebsd.dk> 
Verzonden: Thursday, 22 August 2019 23:06
Aan: Hout, Eric van den <eric.m.vandenhout at kpn.com>
CC: varnish-misc at varnish-cache.org
Onderwerp: Re: cli bans

--------
In message <AM6PR01MB4279CC64CEDED17494222A8AA0A50 at AM6PR01MB4279.eurprd01.prod.
exchangelabs.com>, eric.m.vandenhout at kpn.com 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?


Yes.

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

	then

	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