You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/12/31 15:36:30 UTC

[Cocoon Wiki] Updated: ControllingModCache

   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>
+}}}