Realizing vhosts with varnish

Lars Jørgensen ITLJ at
Fri Dec 17 12:27:23 CET 2010

Hi Frank,

I don't what you're trying to achieve on the differentiated caching. If you're simply looking to cache some virtual hosts and not others on the same physical host, why don't you just do it in DNS? The cached host names point to varnish, the uncached directly to the backend.


-----Original Message-----
From: varnish-misc-bounces at [mailto:varnish-misc-bounces at] On Behalf Of Frank Helmschrott
Sent: Friday, December 17, 2010 8:57 AM
To: Stefan Pommerening; varnish-misc at
Subject: Re: Realizing vhosts with varnish

I just found out that probably all i really need is to switch backends
based on the req.http.Host called or based on IP (i gotta find out
which is more useful for me).

Most of the other stuff should in my case be nearly the same for alle
projects handled by varnish.

2010/12/17 Kristian Lyngstol <kristian at>:
> On Fri, Dec 17, 2010 at 08:49:31AM +0100, Kristian Lyngstol wrote:
>> This is incorrect.
> I just realized Per already answered this - sorry about the duplicated
> response. (It seems to be popular in this thread).
> - Kristian
> Version: GnuPG v1.4.10 (GNU/Linux)
> cZogjfXU2unrtze9tyrG2TLpgJIQVh4X1CKsmsu0G5zRwfQhv7u4jHa3f2aao/Mq
> q0r4p+PDqyaCfxuihxIrdi7a6bYARbTnKsmQjequBJBhhr9Gk9wJibrZvPxXvVIf
> HxhtkhjWmWjETxBTOy91II2xn/e14ONAAk2PMCR5t5sO4FkerEqqXRMtmOLBJIFu
> ETmwtATQdftANR6hI8TAcQKwdVzgCdmyBFzu/gPzOKufkdWmQ+GLXd2sSW90aQ7i
> msbWqFlj3KSuVpTBUwv7JUBdlD3sskYbcyKDPSywJWp7jeRau8nm/dBeMQn5NGw=
> =M5Rz
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at


varnish-misc mailing list
varnish-misc at

More information about the varnish-misc mailing list