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 <[email protected]> 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 > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
