--------
In message <am6pr01mb4279cc64ceded17494222a8aa0...@am6pr01mb4279.eurprd01.prod.
exchangelabs.com>, [email protected] 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
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to