cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: ControllingModCache
Date Fri, 31 Dec 2004 14:36:30 GMT
   Date: 2004-12-31T06:36:30
   Editor: GrzegorzTanczyk
   Wiki: Cocoon Wiki
   Page: ControllingModCache
   URL: http://wiki.apache.org/cocoon/ControllingModCache

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -74,3 +74,32 @@
   <map:parameter name="page-info" value="page-info-for-logging"/>
 </map:act>
 }}}
+
+= How to control mod_cache w/o touching Cocoon? =
+It is easy to create two virtual hosts in apache configuration.
+
+{{{
+<VirtualHost 127.0.0.1>
+  ServerName localhost
+  <Location /images>
+    ExpiresActive On
+    ExpiresDefault A3600
+  </Location>
+  <Location /user>
+    ExpiresActive On
+    ExpiresDefault A0
+  </Location>
+  ProxyPass / http://localhost:8080
+  ProxyPassRevers / http://localhost:8080
+</VirtualHost>
+}}}
+
+{{{
+<VirtualHost 123.45.67.89>
+  ServerName yourdomain.com
+  CacheEnable disk /images
+  CacheRoot /var/www/cache
+  ProxyPass / http://localhost
+  ProxyPassRevers / http://localhost
+</VirtualHost>
+}}}

Mime
View raw message