HI Thiago,<div><br></div><div>I have made this working. Just a regsuball in vcl_error. </div><div><br></div><div> set obj.http.Location = "http://" regsub(req.http.host, "^<a href="http://a.com">a.com</a>", "<a href="http://abc.com">abc.com</a>") req.url;</div>

<div><br></div><div>Thanks to Tollef </div><div><br></div><div>Regards,</div><div>     Anand<br><br><div class="gmail_quote">On Fri, May 13, 2011 at 4:25 AM, Thiago Figueiro <span dir="ltr"><<a href="mailto:TFigueiro@au.westfield.com">TFigueiro@au.westfield.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Anand Shah <<a href="mailto:imanandshah@gmail.com">imanandshah@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> No updates on mailing list.... isn't there any one who has faced<br>
> this issue earlier ....<br>
<br>
</div>Have you read the doco? I had a quick look and it seems to have what you need.<br>
<br>
<a href="http://www.varnish-cache.org/docs/2.1/reference/vcl.html" target="_blank">http://www.varnish-cache.org/docs/2.1/reference/vcl.html</a><br>
<br>
Count the number of redirects.  If you reach your limit do the 302.<br>
<br>
I believe vcl_recv would be the place for that.  From the doco:<br>
<br>
sub vcl_recv {<br>
    if (req.restarts > X ) {<br>
       # do your redirect here<br>
    }<br>
<br>
<br>
______________________________________________________<br>
    CONFIDENTIALITY NOTICE<br>
This electronic mail message, including any and/or all attachments, is for the sole use of the intended recipient(s), and may contain confidential and/or privileged information, pertaining to business conducted under the direction and supervision of the sending organization. All electronic mail messages, which may have been established as expressed views and/or opinions (stated either within the electronic mail message or any of its attachments), are left to the sole responsibility of that of the sender, and are not necessarily attributed to the sending organization. Unauthorized interception, review, use, disclosure or distribution of any such information contained within this electronic mail message and/or its attachment(s), is (are) strictly prohibited. If you are not the intended recipient, please contact the sender by replying to this electronic mail message, along with the destruction all copies of the original electronic mail message (along with any attachments).<br>


______________________________________________________<br>
</blockquote></div><br></div>