Mailing List Archive

send hostname?
Hi,

I'm just starting with varnish, I point my backend to a name based
server, but the name doesn't seem to get sent down to the backend
server. Is there some switch I need to get it to send the hostname
down with the request?

thanks,
-joe
send hostname? [ In reply to ]
"Joseph McDonald" <superjoe at gmail.com> writes:
> I'm just starting with varnish, I point my backend to a name based
> server, but the name doesn't seem to get sent down to the backend
> server. Is there some switch I need to get it to send the hostname
> down with the request?

Varnish will send a Host: header to the backend if it got one from the
client.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no
send hostname? [ In reply to ]
In message <ujrlknyerw7.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=
writes:
>"Joseph McDonald" <superjoe at gmail.com> writes:
>> I'm just starting with varnish, I point my backend to a name based
>> server, but the name doesn't seem to get sent down to the backend
>> server. Is there some switch I need to get it to send the hostname
>> down with the request?
>
>Varnish will send a Host: header to the backend if it got one from the
>client.

sorry about the delay, I've been occupied with other stuff.

Actually, Varnish will insert a Host: if there isn't one, but only
in the "fetch" case. Similar code was missing in the pass & pipe cases.

Fixed.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.