varnishncsa and negative matches on hostname

Tollef Fog Heen tfheen at varnish-software.com
Mon Oct 3 11:27:23 CEST 2011


]] Bryan Stillwell 

Hi,

| /var/log/varnish/other/access.log.  What I believe I need is some kind
| of negated match (perl's ~! or grep's -v option).  Unfortunately I'm
| not seeing anything like that in the documentation.  Does anyone know
| how to make something like this work right now?

-m 'RxHeader:Host: (?!foo)' might work.

see man pcresyntax for more info on PCRE.

Cheers,
-- 
Tollef Fog Heen
Varnish Software
t: +47 21 98 92 64




More information about the varnish-misc mailing list