Varnish returns default host instead of virtual host

Lars Monsees l.monsees at
Mon Jun 7 16:48:25 CEST 2010


I am very new to Varnish and have only configured my backend as I guess Varnish will use default values that should work for the beginning. The problem is that Varnish returns the content of the server´s default domain (the standard "it work´s" text") instead of the content of the wanted domain.

backend default {
    .host = "";
    .port = "80";

I have searched a lot for a solution but only found these tickets that don´t help me:

So, it seems like Varnish doesn´t pass the hostname to the backend. How can I fix this or what am I doing wrong here?

Varnish 2.1.2 (compiled from source) on Debian Lenny with Apache 2.2.8


More information about the varnish-misc mailing list