X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvarnish%2Ffiles%2Fdefault.vcl;h=0b9ec708510b246c3d05a1766b7ecdb69a402315;hb=db14d5ab5528a3d2be5b8e32ba4ce4ca28963bdc;hp=10b51d9ff3209d5bd1e2c418f9ef72279f4c6b12;hpb=d00ed636079272459760564df20b4eb336969708;p=mirror%2Fdsa-puppet.git diff --git a/modules/varnish/files/default.vcl b/modules/varnish/files/default.vcl index 10b51d9ff..0b9ec7085 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); } +