mod_dav
authorAdam Chlipala <adamc@hcoop.net>
Sat, 26 Aug 2006 21:53:55 +0000 (21:53 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sat, 26 Aug 2006 21:53:55 +0000 (21:53 +0000)
lib/mod_dav.dtl [new file with mode: 0644]
src/plugins/apache.sml
tests/testApache.dtl

diff --git a/lib/mod_dav.dtl b/lib/mod_dav.dtl
new file mode 100644 (file)
index 0000000..a3ff747
--- /dev/null
@@ -0,0 +1,8 @@
+{{Support for Apache's mod_dav, which we use primarily for Subversion access}}
+
+extern val davSvn : your_path -> [Location];
+{{Enable DAV-based serving of your Subversion repository rooted at the given
+  path.}}
+
+extern val authzSvnAccessFile : your_path -> [Location];
+{{Choose a file to use for Subversion access control.}}
index 3c29c8e..d706de9 100644 (file)
@@ -509,4 +509,16 @@ val () = Env.action_one "addDefaultCharset"
                    write ty;
                    write "\n"))
 
                    write ty;
                    write "\n"))
 
+val () = Env.action_one "davSvn"
+        ("path", Env.string)
+        (fn path => (write "\tDAV svn\n\tSVNPath ";
+                     write path;
+                     write "\n"))
+
+val () = Env.action_one "authzSvnAccessFile"
+        ("path", Env.string)
+        (fn path => (write "\tAuthzSVNAccessFile ";
+                     write path;
+                     write "\n"))
+
 end
 end
index eee8980..3987492 100644 (file)
@@ -72,4 +72,11 @@ domain "hcoop.net" with
                        satisfyAny
                end
        end;
                        satisfyAny
                end
        end;
+
+       vhost "svn" with
+               location "/" with
+                       davSvn "/home/adamc/svn";
+                       authzSvnAccessFile "/home/adamc/svn/acl";
+               end
+       end;
 end
 end