vanish ログ

varnishncsa virtualhost ログ

varnishncsaでホスト毎にログを保存する – cat /dev/random > /dev/null &

varnishncsa -q "ReqHeader:Host ~ '^example.com$'"

virtualhost用のvarnishncsa起動スクリプト

https://github.com/kurita0/varnish4-freebsd/blob/master/rc.d/varnishncsa_vhost

/etc/rc.conf
varnishncsa_vhost_enable="YES"
varnishncsa_vhost_hostname="example.com"