CDN subdomain handling (hiding) in Varnish
Roberto O. Fernández Crisial
roberto.fernandezcrisial at gmail.com
Mon Apr 25 17:26:04 CEST 2011
I think what you need to do is to code your website (www.example.com) with
img/css/js/etc source code from "cdn.example.com/images/abc.jpg" instead
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 "cdn.example.com".
On Mon, Apr 25, 2011 at 12:12 PM, Shibashish <shib4u at gmail.com> wrote:
> Hi All,
> 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).
> Before CDN, the static content on the site was being served as www/
> example.com/images/abc.jpg, www.example.com/css/xyz.css, etc. After CDN,
> the static files are being served through a new domain as
> cdn.example.com/images/abc.jpg, cdn.example.com/css/xyz.css.
> How do I stop my site from being visible on cdn.example.com? I want to let
> the static content be served out of CDN and the origin pull be happening
> from Varnish.
> while ( ! ( succeed = try() ) );
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc