<div dir="ltr"><div>Guillaume, Poul-Henning, thank you for your suggestions.</div><div><br></div><div>Regarding,<br></div><div>> - create a static backend point to you k8s proxy, and just set req.http.host to whatever value you want.</div><div><br></div><div>I don't think this would work for me since I'm working with a backend definition, trying to change the IP address (/hostname) to which the backend points to and not simply trying to change the Host header of the request.</div><div><br></div><div>Cheers,</div><div>-Hugues<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 11:54 PM Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com">guillaume@varnish-software.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">True, but that amounts to template processing :-)<div><br clear="all"><div><div dir="ltr" class="gmail-m_1901881666240893625gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 10, 2019 at 8:44 AM Poul-Henning Kamp <<a href="mailto:phk@phk.freebsd.dk" target="_blank">phk@phk.freebsd.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">--------<br>
In message <<a href="mailto:CAJ6ZYQy5RnBjfCs88re6-hMfsQvyuzbOkHoofQ_c%2BsuQNRQjig@mail.gmail.com" target="_blank">CAJ6ZYQy5RnBjfCs88re6-hMfsQvyuzbOkHoofQ_c+suQNRQjig@mail.gmail.com</a>><br>
, Guillaume Quintard writes:<br>
<br>
>I see two ways:<br>
<br>
There is a third way:<br>
<br>
You can use:<br>
<br>
        include "somefile"<br>
<br>
anywhere and everywhere in a VCL program.<br>
<br>
Before you start your varnishd, do this in a shell script:<br>
<br>
        echo "\"$ENVIRONMENT_VARIABLE_HOSTNAME\"" > /somewhere/hostname.vcl<br>
<br>
Then in VCL:<br>
<br>
        backend b0 {<br>
                .host = include "/somewhere/hostname.vcl" ;<br>
                .port 80<br>
                ...<br>
<br>
<br>
<br>
-- <br>
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20<br>
phk@FreeBSD.ORG         | TCP/IP since RFC 956<br>
FreeBSD committer       | BSD since 4.3-tahoe    <br>
Never attribute to malice what can adequately be explained by incompetence.<br>
</blockquote></div>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>