Varnish 3 serving same set of pages for different domains

Simon Males sime at sime.net.au
Sat Jul 23 02:20:54 CEST 2011


On Sat, Jul 23, 2011 at 8:42 AM, Mark E <mark at simplercomputing.net> wrote:
> Hi,
>
> I have a strange issue that I need some help with. Here's the server config:
>
> - CentOS
>
> - Varnish 3 on port 80 installed in front of Apache on port 8080
>
> - 6 web sites exist on the server, all with individual unique domains and or
> subdomains
>
> - All sites work fine via Apache
>
> When I add Varnish 3, pointing it at Apache as the backend, I see the same
> site content no matter what subdomain/domain I open in a browser. But the
> URL in the browser always appears correct.
>
> To troubleshoot this I've gone to a generic VCL with no rules at all, I only
> have the "backend" declaration to tell Varnish that Apache is on port 80 at
> x.x.x.x address - and to be clear I'm using the default.vcl that comes with
> Varnish 3 with the RedHat repository, which has no rules, etc., enabled.

Maybe confirm you are using the supplied VCL by dumping it:

varnishadm -S /etc/varnish/secret -T localhost:6082 vcl.show boot

-- 
Simon Males




More information about the varnish-misc mailing list