<div dir="ltr">Hello,<div><br></div><div> I'm trying to forward the top level domain for my site '<a href="http://ref.mydomain.com">ref.mydomain.com</a>' to the www version '<a href="http://www.ref.mydomain.com">www.ref.mydomain.com</a>'. </div><div> </div><div> This is the logic I tried in my vcl_recv </div><div><br></div><div>   if (req.http.host ~ "^ref\.mydomain\.com$") {
<p class="">       set req.http.host = "<a href="http://www.ref.mydomain.com">www.ref.mydomain.com</a>";</p>
<p class="">    }</p><div>And after cycling the varnish service, there's no joy! Putting <a href="http://ref.mydomain.com">ref.mydomain.com</a> doesn't forward to the other URL.</div><div><br></div><div>So maybe there's some problem with that statement that I'm missing?</div><div><br></div><div>I'd definitely appreciate any thoughts you might have.</div><div><br></div><div>Thanks!</div><div>Tim</div><div><br></div>-- <br><div class="gmail_signature">GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br><br></div>
</div></div>