cli bans
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Aug 22 21:06:18 UTC 2019
--------
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