Apache 2.2 mod_cache

As of Apache HTTP server version 2.2 mod_cache and mod_file_cache are no longer marked experimental and are considered suitable for production use.

http://httpd.apache.org/docs/2.2/caching.html

Configuration

First you need to have Apache 2.2 set to act as a proxy for the APache 1.3 running mod_perl and MKDoc, see: http://www.mkdoc.org.archived.website/docs/howto/apache/

Using mod_cache with MKDoc is fairly simple, this example configuration should do the trick, however this doesn't seem to work with Apache 2.2.0 that ships with Fedora Core 5 because of this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38017

There is no point in caching the users domain, this is an example for the public domain with an Apache 1.3 with mod_perl running on port 8080:

<VirtualHost *:80>
  ServerName            www.example.org
  ProxyRequests Off
  ProxyPass / http://www.www.example.org:8080/
  ProxyPassReverse / http://www.example.org:8080/
  CacheEnable mem /
  CacheIgnoreNoLastMod On
</VirtualHost>
This document was last modified on 2006-06-21 08:13:29.
MKDoc Ltd., 31 Psalter Lane, Sheffield, S11 8YL, UK.
Copyright © 2001-2006 MKDoc Ltd.