20090311 varnish config

From usenix.org.uk
Jump to: navigation, search

Recently I posted about optimisation of wordpress. The aim of that post was to prove that Apache is better at serving from static content than from dynamic content. That’s a bit of a no brainer in itself and so the aim of the work was to produce the static content from dynamic pages.

However, after following a suggestion I’ve gone down a road to work using a proxy to cache the content and do various tasks to make the most out of the caching layer.

So, down this path we walk, now with processes fighting for resources left right and centre I move from Apache to lighttpd where mod_rewrite is a half job. The following is what I’ve located off the cuff as a replacement for the missing -f and -d conditions to operate on lack of a file or directory:

url.rewrite-once = (
"^/(category|tags|about|cidr-chart|unix|bogofilter|2005|2006|2007|2008|2009)" => "/index.php"
)

This is required as it covers most of the base URLs. It’s not pleasant or intuitive.


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox