Varnish returns default host instead of virtual host

Stewart Robinson stewsnooze at gmail.com
Mon Jun 7 17:13:13 CEST 2010


Hi,
This is typically an Apache config set up. I had this and it was
because my Listen directive in VirtualHost was listening on the real
IP address, rather than * or 127.0.0.1

Stew

On 7 June 2010 15:48, Lars Monsees <l.monsees at atlantismedia.de> wrote:
> 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
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list