<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Then you can either have a backend server do the lookup and have varnish cache the result, or you can write a VMOD for varnish which does the lookup and generate the redirects that way.</blockquote>

<div><br></div><div>The database of URLS won't change (these are legacy domains). Is there any way manually insert a 301 redirect entry to the varnish cache? Can the VMOD do that? If yes, is there anyway for the VMOD to protect entries from getting wiped out by LRU (make them static)?</div>

<div><br></div><div>Thanks,</div><div>Aleem</div><div><br></div><div> </div></div>