Serve moin 1.9.8 htdocs prefix with apache
[hcoop/domtool2.git] / lib / web_apps.dtl
index 39990d4..d9d6f5b 100644 (file)
@@ -16,12 +16,13 @@ val addWordPress = \ loc : (location) ->
 
 val wordPress = \ host : (host) ->
   web host with
-    addWordPress "/"
+    addWordPress "/";
+    diskCache "/wp-content"
   end;
 {{Create a WordPress blog with just the standard set-up code.  The WordPress blog should
   be rooted at the vhost's <tt>DocumentRoot</tt>.}}
 
-val moin_default_htdocs : (location) = "/moin_static196";
+val moin_default_htdocs : (location) = "/moin_static198";
 {{Alias for static content used by the system-wide MoinMoin.}}
 
 val addMoinMoin = begin
@@ -30,7 +31,8 @@ val addMoinMoin = begin
   script <- Script;
 
   alias htdocs "/afs/hcoop.net/common/app/moin/installed/moin19/lib/python2.6/site-packages/MoinMoin/web/static/htdocs";
-  scriptAlias prefix (end_in_slash script)
+  diskCache htdocs;
+  scriptAlias prefix (end_in_slash script);
 end;
 {{Add a MoinMoin wiki to a vhost.}}
 
@@ -53,13 +55,4 @@ val addMoinMoinOld = begin
   alias htdocs "/usr/share/moin/htdocs";
   scriptAlias prefix (end_in_slash script)
 end;
-{{Add a MoinMoin wiki to a vhost.}}
-
-val moinMoinOld = \ host : (host) ->
-  webAt "mire" host with
-    addMoinMoinOld where
-      Htdocs = "/moin";
-      Prefix = "/"
-    end
-  end;
-{{Create a new vhost with just a MoinMoin wiki.}}
\ No newline at end of file
+{{Add a MoinMoin wiki to a vhost.}}
\ No newline at end of file