Add AuthGroupFile
[hcoop/domtool2.git] / lib / web_apps.dtl
index f17e8e8..5f783c8 100644 (file)
@@ -2,9 +2,14 @@
 
 val addWordPress = \ loc : (location) ->
   location loc with
 
 val addWordPress = \ loc : (location) ->
   location loc with
+    phpVersion php5;
+    rewriteRule "^(.*/)?\.svn/" "-" [forbidden, last];
+    rewriteRule "^(.*/)?\.git/" "-" [forbidden, last];
+
     rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
     rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
     rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
     rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
-    rewriteRule "." "/index.php" [last]
+
+    rewriteRule "." "/index.php" [last];
   end;
 {{Add a standard WordPress blog set-up code to a virtual host.  The WordPress
   files should be rooted at the location you specify.}}
   end;
 {{Add a standard WordPress blog set-up code to a virtual host.  The WordPress
   files should be rooted at the location you specify.}}
@@ -16,12 +21,15 @@ val wordPress = \ host : (host) ->
 {{Create a WordPress blog with just the standard set-up code.  The WordPress blog should
   be rooted at the vhost's <tt>DocumentRoot</tt>.}}
 
 {{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";
+{{Alias for static content used by the system-wide MoinMoin.}}
+
 val addMoinMoin = begin
   htdocs <- Htdocs;
   prefix <- Prefix;
   script <- Script;
 
 val addMoinMoin = begin
   htdocs <- Htdocs;
   prefix <- Prefix;
   script <- Script;
 
-  alias htdocs "/usr/share/moin/htdocs";
+  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)
 end;
 {{Add a MoinMoin wiki to a vhost.}}
   scriptAlias prefix (end_in_slash script)
 end;
 {{Add a MoinMoin wiki to a vhost.}}
@@ -29,8 +37,20 @@ end;
 val moinMoin = \ host : (host) ->
   web host with
     addMoinMoin where
 val moinMoin = \ host : (host) ->
   web host with
     addMoinMoin where
-      Htdocs = "/moin";
+      Htdocs = moin_default_htdocs;
       Prefix = "/"
     end
   end;
 {{Create a new vhost with just a MoinMoin wiki.}}
       Prefix = "/"
     end
   end;
 {{Create a new vhost with just a MoinMoin wiki.}}
+
+(* Legacy version of moin macros *)
+
+val addMoinMoinOld = begin
+  htdocs <- Htdocs;
+  prefix <- Prefix;
+  script <- Script;
+
+  alias htdocs "/usr/share/moin/htdocs";
+  scriptAlias prefix (end_in_slash script)
+end;
+{{Add a MoinMoin wiki to a vhost.}}
\ No newline at end of file