From b61abc881de4102d4424e72dfd7bf7da3f1e3b6c Mon Sep 17 00:00:00 2001 From: Martin Zobel-Helas Date: Sat, 26 Jan 2013 01:01:24 +0100 Subject: [PATCH] director code part 2 Signed-off-by: Martin Zobel-Helas --- modules/varnish/files/default.vcl | 33 ++++++++++++++----------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/modules/varnish/files/default.vcl b/modules/varnish/files/default.vcl index 10b51d9f..0b9ec708 100644 --- a/modules/varnish/files/default.vcl +++ b/modules/varnish/files/default.vcl @@ -4,27 +4,23 @@ ## -director packages_debian_org { +director packages_debian_org random { { - .backend = holter + .backend = { + .host = "194.177.211.202"; + .port = "80"; + } .weight = 10000; } - { - .backend = powell - .weight = 1; - } + { + .backend = { + .host = "87.106.64.223"; + .port = "80"; + } + .weight = 1; + } } -backend holter { - # holter.debian.org - .host = "194.177.211.202"; - .port = "80"; -} -backend powell { - # powell.debian.org - .host = "87.106.64.223"; - .port = "80"; -} sub vcl_recv { @@ -32,9 +28,9 @@ sub vcl_recv { remove req.http.X-Forwarded-For; set req.http.X-Forwarded-For = req.http.rlnclientipaddr; - set req.backend = packages_debian_org; + set req.backend = packages_debian_org; - return(lookup); + return(lookup); } sub vcl_fetch { @@ -67,3 +63,4 @@ sub vcl_deliver { return(deliver); } + -- 2.39.2