Small varnish 1.1 test with openrealty and joomla. SOLVED
eculp at encontacto.net
eculp at encontacto.net
Wed Aug 1 00:26:19 CEST 2007
Quoting eculp at encontacto.net:
> Quoting Dag-Erling Smørgrav <des at linpro.no>:
>
>> eculp at encontacto.net writes:
>>> Quoting Dag-Erling Smørgrav <des at linpro.no>:
>>>> Is Varnish passing the correct Host: header to Apache?
>>> AFAIK, it is passing what I am/was telling it in default.vcl.
>>
>> I'm not asking you to guess or speculate; I'm asking you to check your
>> logs. Varnish does *not* use backend.host for the Host: header, it uses
>> whatever it got from the client.
>
>
>
> This is from the apache log:
>
> 127.0.0.1 - - [31/Jul/2007:16:33:22 -0500] "GET /favicon.ico
> HTTP/1.1" 404 209 "http://nuevo.ecomania.info/" "Opera/9.22 (X11;
> Linux i686; U; en)"
Hi DES,
At the moment that I sent this email I caught the issue. The solution
is to NOT use 127.0.0.1 but to use the NameVirtualHost 189.129.5.82 in
the default.vcl.
This works for me:
backend default {
set backend.host = "189.129.5.82";
set backend.port = "8080";
}
Thanks again DES for helping me pull my head out of the sand "or where
ever it was;)
ed
>
> and displays the index in the root directory under which are all the
> virtual hosts such as nuevo.encomania.info.
>
> The varnishlog -r /var/log/varnish.log is attached (4k) and again my
> interpretation is the same.
>
> If I change the default
>
> backend default {
> set backend.host = "127.0.0.1";
> set backend.port = "8080";
> }
>
> to
>
> backend nuevo {
> set backend.host = "nuevo.ecomania.info";
> set backend.port = "8080";
> }
>
> with all else the same, it works as expected because
> http://nuevo.ecomania.info is configured as an apache vhost. It
> also works for this one site if I DO NOT configure virtual hosts.
> Maybe I'm barking up the wrong tree again. If so, I apologize.
> There is still a lot that i don't understand.
>
> Thanks again for your help,
>
> ed
> .
>>
>> DES
>> --
>> Dag-Erling Smørgrav
>> Senior Software Developer
>> Linpro AS - www.linpro.no
>>
>
>
More information about the varnish-misc
mailing list