varnishncsa logs split per domain

Guillaume Quintard guillaume at varnish-software.com
Tue Nov 15 16:45:01 CET 2016


Probably because varnishncsa sees the ReqHeader before it is normalized.
Try putting the normalized host in req.http.x-host, and filtering on that.

-- 
Guillaume Quintard

On Tue, Nov 15, 2016 at 4:31 PM, Admin Beckspaced <admin at beckspaced.com>
wrote:

>
> Am 15.11.2016 um 10:54 schrieb Dridi Boukelmoune:
>
>> even in varnish VCL I can normalize the host
>>>
>>> not sure how to do this in varnishncsa? is there a way to do that?
>>>
>> In VCL you can std.log the normalized host, and use a custom pattern
>> in varnishncsa to pick it up.
>>
>> Dridi
>>
>>
>> hello Dridi,
>
> thanks a lot for your reply. and how would i do that?
>
> I already normalize the host in vcl_recv
>
> //normalize the req.http.host
> set req.http.host = regsub(req.http.Host, "^www\.", "");
>
> but not seeing that normalized host in varnishncsa ...
>
> a bit more hints and info would be nice ;)
>
> thanks & greetings
> becki
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20161115/0f991e2b/attachment.html>


More information about the varnish-misc mailing list