Hi,<div><br></div><div>I think what you need to do is to code your website (<a href="http://www.example.com">www.example.com</a>) with img/css/js/etc source code from "<a href="http://cdn.example.com/images/abc.jpg">cdn.example.com/images/abc.jpg</a>" instead "/images/abc.jpg".</div>
<div><br></div><div>All you need to do is to update your IMG/CSS/JS (and all your static files) liks from your source code and point them to "<a href="http://cdn.example.com">cdn.example.com</a>".</div><div><br>
</div><div>Roberto</div><div>@rofc<br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 12:12 PM, Shibashish <span dir="ltr"><<a href="mailto:shib4u@gmail.com">shib4u@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<div><br></div><div>My website is being served by varnish. I also have a CDN setup from where i serve the static content for my websites (jpg, js, css).</div><div><br></div><div>Before CDN, the static content on the site was being served as www/<a href="http://example.com/images/abc.jpg" target="_blank">example.com/images/abc.jpg</a>, <a href="http://www.example.com/css/xyz.css" target="_blank">www.example.com/css/xyz.css</a>, etc. After CDN, the static files are being served through a new domain as <a href="http://cdn.example.com/images/abc.jpg" target="_blank">cdn.example.com/images/abc.jpg</a>, <a href="http://cdn.example.com/css/xyz.css" target="_blank">cdn.example.com/css/xyz.css</a>.</div>


<div><br></div><div>How do I stop my site from being visible on <a href="http://cdn.example.com" target="_blank">cdn.example.com</a>? I want to let the static content be served out of CDN and the origin pull be happening from Varnish.</div>


<div><br clear="all">ShiB.<br>while ( ! ( succeed = try() ) );<br>
</div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div>