Configuring varnish for many different domains with similar content

Ken Brownfield kb+varnish at slide.com
Tue Jul 28 21:37:11 CEST 2009


See the FAQ:

http://varnish.projects.linpro.no/wiki/FAQ#IhaveasitewithmanyhostnameshowdoIkeepthemfrommultiplyingthecache

If your backends need to see the original hostname, you can unrewrite  
it in vcl_miss().
-- 
Ken

On Jul 11, 2009, at 3:54 AM, Hip Hydra wrote:

> Hi, I'm running a network of web proxies, where the domain of each  
> proxy
> is different, but any websites a user goes to will have the same  
> content
> regardless of the proxy domain.
>
> For example:
> http://proxy1.com/visit.php?site=22abc862ce4
> http://proxy2.com/visit.php?site=22abc862ce4
> http://proxy3.com/visit.php?site=22abc862ce4
> ...
>
> These URLs all go to the same site. However, proxy1.com, proxy2.com,
> etc. have different base files. Only requests that go through  
> visit.php
> are the same if the site variable is the same.
>
> Is there any way I can optimize Varnish to cache the data files more
> effectively?
>
> Many thanks!
> John
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc




More information about the varnish-misc mailing list