VCL config file for specific URLs

pub crawler pubcrawler.com at gmail.com
Sat Jan 9 08:09:36 CET 2010


Finally back to looking at Varnish for our overwhelmed site.

Working on our default.vcl file.  Have a simple, perhaps obvious question.

We want to put Varnish in front of our application server.   There are
cookies coming from the app server, but we have told Varnish to ignore
them:
unset req.http.cookie

That works fine, but we want Varnish to only do this on certain pages.

More simply and shorter in number we want Varnish to adhere to the
cookies only on certain user customizeable pages.

For example (cache these in Varnish):
http://www.website.com/Template/index.cfm
http://www.website.com/Template/Review.cfm/flat/ID=xxxx

DO NOTE CACHE THESE - pipe to backend:
http://www.website.com/Template/dsp_addreview.cfm
http://www.website.com/Template/mapinput.cfm

Any ideas on how to best go about providing a list of URLs to pipe in
our default.vcl file?

Thanks!



More information about the varnish-misc mailing list