<div dir="ltr">Probably because varnishncsa sees the ReqHeader before it is normalized. Try putting the normalized host in req.http.x-host, and filtering on that.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, Nov 15, 2016 at 4:31 PM, Admin Beckspaced <span dir="ltr"><<a href="mailto:admin@beckspaced.com" target="_blank">admin@beckspaced.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Am 15.11.2016 um 10:54 schrieb Dridi Boukelmoune:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
even in varnish VCL I can normalize the host<br>
<br>
not sure how to do this in varnishncsa? is there a way to do that?<br>
</blockquote>
In VCL you can std.log the normalized host, and use a custom pattern<br>
in varnishncsa to pick it up.<br>
<br>
Dridi<br>
<br>
<br>
</blockquote></span>
hello Dridi,<br>
<br>
thanks a lot for your reply. and how would i do that?<br>
<br>
I already normalize the host in vcl_recv<br>
<br>
//normalize the req.http.host<br>
set req.http.host = regsub(req.http.Host, "^www\.", "");<br>
<br>
but not seeing that normalized host in varnishncsa ...<br>
<br>
a bit more hints and info would be nice ;)<br>
<br>
thanks & greetings<br>
becki<br>
<br>
<br><div class="HOEnZb"><div class="h5">
<br>
______________________________<wbr>_________________<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/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><br>
</div></div></blockquote></div><br></div>