• About

Varnish CDB Access

September 24th, 2009

I've added some details to the Varnish wiki about how I'd like to see CDB file access implemented:

CDB file access - this idea was inspired by Apache's mod_rewrite access to BDB files. Similar to the GeoIP example, a CDB file could be used for rewriting url requests, or specifying backends:

If the host header, concatenated with "nocache", is present in the cdb file, then pass.

if ( "nocache" == cdb.file) { pass; }


If the cdb file contains a key for the host header and its value is equal to nocache, then pass.

if (cdb.file( == "nocache") { pass; }

Yearly Indexes: 2010 2003 2005 2006 2007 2008 2009 2004 2011 2012 2013 2015 2019 2020