Varnish returns default host instead of virtual host

Marcus Smith marcussmith at britarch.ac.uk
Mon Jun 7 17:20:52 CEST 2010


Lars Monsees 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";
> }

It looks like the backend is on the same machine that varnish is running
on.  In that case, it needs to be listening on a port other than 80 as
you have above, as varnish will be bound to port 80 by default.

best wishes,
Marcus



More information about the varnish-misc mailing list