
CacheFu:  Varnish-behind-Apache configuration

To generate configs, first edit the makeconfig.cfg file with the
appropriate values and then run the makeconfig script.

% export PYTHONPATH=$PYTHONPATH:/path/to/zope/lib/python
% python makeconfig

The makeconfig script generates a Varnish configuration file and
an Apache configuration snippet based on values in a config file 
specified with the -c option (defaults to makeconfig.cfg).  The files
are built from a set of templates in the directory specified with
the -t option (defaults to ./templates) and written to the directory
specified with the -o option (defaults to ./output).  

Once you have generated the files, you can deploy them by running
the "deploy" script in your output directory.


Required Apache modules:

To use RewriteRules in Apache, you need to have the appropriate
apache modules loaded.  This is usually done near the beginning
of the httpd.conf file like so (the path may vary):

For Apache 1.3:
LoadModule proxy_module       modules/libproxy.so
LoadModule rewrite_module     modules/mod_rewrite.so

For Apache 2.2:
LoadModule proxy_module       modules/libproxy.so
LoadModule proxy_http_module  modules/mod_proxy_http.so
LoadModule rewrite_module     modules/mod_rewrite.so

