
CacheFu:  Squid-only 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 set of Squid configuration files
for CacheFu 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.


Alternative rewrite strategies:

This configuration generates some python scripts used by Squid to
rewrite URLs to the format required by VirtualHostMonster (http://plone.org/documentation/tutorial/plone-apache/vhm).  

One alternative rewrite strategy is to use the "Mappings" tab within
VirtualHostMonster itself.  Another alternative rewrite strategy
is to insert another proxy (such as Apache) *between* Zope and Squid
to do the rewrites.

In both cases, we can then dispense with the overhead of the python rewrite
scripts and change the squid configuration to something similar to the
squid-apache setup, with requests being dispatched via cache_peer_access
instead of http_access.
