I'm trying to figure out how I could use varnishncsa with a bunch of vhosts and then have an additional catchall for everything else.
For example I have something like: /usr/bin/varnishncsa -a -w /var/log/varnish/foo/access.log -D -P /var/run/varnishncsa-foo.pid -m 'RxHeader:Host: (foo[3-9]).example.com' /usr/bin/varnishncsa -a -w /var/log/varnish/bar/access.log -D -P /var/run/varnishncsa-bar.pid -m 'RxHeader:Host: (bar[2-9]).example.com' Which will put logs destined for foo3-foo9 into /var/log/varnish/foo/access.log, and logs destined for bar2-bar9 into /var/log/varnish/bar/access.log. However, I want everything else (foo1, foo2, bar1, baz, etc.) to go into /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? Thanks, Bryan _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
