<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div>Hi, <span style="font-size: 12pt;">I am not 100% sure how client.identity = req.http.cookie works,</span></div><div>neither i got good firm understanding from varnish-cache website itself.</div><div><br></div><div>can someone explain me if with below config i can get all request from one user to same backend?</div><div><br></div><div>If yes, </div><div>My test gives me diff backend, if no, can someone explain me how this works?</div><div><br></div><div> } elseif (req.http.host ~ "^test\.domain\.com$") {</div><div> set client.identity = req.http.cookie;</div><div> set req.backend = loc1;</div><div><br></div><div> if(!req.backend.healthy) {</div><div> set req.backend = loc2;</div><div> }</div><div><br></div><div> }</div><div><br></div>(i am currently trying to run internal authentication based portal behind varnish.)</div> </div></body>
</html>