Small varnish 1.1 test with openrealty and joomla.

Ricardo Newbery ric at
Tue Jul 31 22:20:58 CEST 2007

On Jul 31, 2007, at 10:16 AM, eculp at wrote:

> Quoting Dag-Erling Smørgrav <des at>:
>> eculp at writes:
>>> Quoting Dag-Erling Smørgrav <des at>:
>>>> 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 = "";
>    set backend.port = "8080";
> }
> What I am trying to do is to get it to pass something like:
>    set =;
> 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.

The following doesn't work?

vcl_recv {
         set = req.http.Host;

or if it's still missing the Host header, does the following work:

vcl_miss {
         set bereq.http.Host = req.http.Host;

and ditto for vcl_pipe and vcl_pass


More information about the varnish-misc mailing list