Quoting Dag-Erling Smørgrav <[EMAIL PROTECTED]>:

> [EMAIL PROTECTED] writes:
>> Quoting Dag-Erling Smørgrav <[EMAIL PROTECTED]>:
>> > The example you mention illustrates how to cache multiple virtual hosts
>> > served by *separate* backends.  If all your virtual hosts are on the
>> > same backend, you shouldn't need to do anything.
>> That is what I thought so it must be something in my apache vhost
>> configuration.  It really doesn't make sense yet, to me.
>
> Is Varnish passing the correct Host: header to Apache?

AFAIK, it is passing what I am/was telling it in default.vcl.  The  
localhost trumps the orginal named base vhost for apache and that is  
what my configuration file was asking for.  So it is correct but not  
what I'm trying to do;)

backend default {
   set backend.host = "127.0.0.1";
   set backend.port = "8080";
}

What I am trying to do is to get it to pass something like:

   set backend.host = req.http.host;

Which, from my limited perspective, would be a solution for this vhost  
issue although there are probably others and hopefully better and/or  
simpler options.

Thanks again, DES, for spending time on this somewhat trivial issue  
that I'm having with my learning curve.

ed

>
> DES
> --
> Dag-Erling Smørgrav
> Senior Software Developer
> Linpro AS - www.linpro.no
>

_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to