From 48e0d762ec05d4a11463e501aa0423437c399c2f Mon Sep 17 00:00:00 2001 From: kirby Date: Wed, 21 May 2025 09:44:46 +0200 Subject: [PATCH] add varnish --- varnish/cli.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 varnish/cli.md diff --git a/varnish/cli.md b/varnish/cli.md new file mode 100644 index 0000000..f35d9b2 --- /dev/null +++ b/varnish/cli.md @@ -0,0 +1,29 @@ +### Get Backend list and their status + +```bash +varnishadm backend.list +``` + +### Get value of a config parameter + +```bash +varnishadm param.show http_resp_hdr_len +``` + +### Set value of a config parameter + +```bash +varnishadm param.set http_resp_hdr_len 16384 +``` + +### Ban URL + +```bash +varnishadm ban req.http.host == example.com '&&' req.url '~' '/test/' +``` + +### Get request detail filtered by ReqURL + +```bash +varnishlog -q 'ReqURL eq "/test/"' -g request +```