[COLUG] Apache mod_cache

Joshua.Kramer josh at globalherald.net
Fri Nov 16 11:26:26 EST 2007


Travis,

A while back I was using Apache to cache content from Zope-based sites 
(Plone and Nuxeo-CPS).  My httpd virtualhost entry follows; after hitting 
the site twice, I could see the data being cached.

Note that my website's Zope install was under /opt/website/Zope, and the 
cache directory was under /opt/website/cache.  That's what the ProxyPass 
lines at the end are about.

<VirtualHost 192.168.2.151>
        ServerName www.website.net
        ServerAdmin josh at globalherald.net

        ProxyRequests On
        CacheRoot "/opt/website/cache"
        CacheSize 5
        CacheGcInterval 4
        CacheMaxExpire 24
        CacheLastModifiedFactor 0.1
        CacheDefaultExpire 1
        CacheForceCompletion 100
        CacheEnable disk /

        ProxyPass / 
http://192.168.2.151:9180/VirtualHostBase/http/www.website.net:80/website/VirtualHostRoot/
        ProxyPassReverse 
http://192.168.2.151:9180/VirtualHostBase/http/www.website.net:80/website/VirtualHostRoot/ 
/website

</VirtualHost>

Hope this helps!

Cheers,
-J



More information about the colug432 mailing list