Varnish returns default host instead of virtual host

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


Hi,

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 = "127.0.0.1";
    .port = "80";
}


I have searched a lot for a solution but only found these tickets that don´t help me:
    http://varnish-cache.org/ticket/399
    http://varnish-cache.org/ticket/248


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


Lars





More information about the varnish-misc mailing list