Docunext


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 (req.http.host "nocache" == cdb.file) { pass; }

or

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

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

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