Add DAVLockDB line for every vhost
authorAdam Chlipala <adamc@hcoop.net>
Thu, 11 Oct 2007 09:51:46 +0000 (09:51 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Thu, 11 Oct 2007 09:51:46 +0000 (09:51 +0000)
src/plugins/apache.sml

index 4cd9e82..f935549 100644 (file)
@@ -431,6 +431,7 @@ val () = Env.containerV_one "vhost"
                                                           TextIO.output (file, ".");
                                                           TextIO.output (file, dom)))
                                               (Domain.currentAliasDomains ());
+
                                           if suexec then
                                               if isVersion1 node then
                                                   (TextIO.output (file, "\n\tUser ");
@@ -444,6 +445,7 @@ val () = Env.containerV_one "vhost"
                                                    TextIO.output (file, group))
                                           else
                                               ();
+
                                           if isWaklog node then
                                               (TextIO.output (file, "\n\tWaklogEnabled on\n\tWaklogLocationPrincipal ");
                                                TextIO.output (file, user);
@@ -451,6 +453,11 @@ val () = Env.containerV_one "vhost"
                                                TextIO.output (file, user))
                                           else
                                               ();
+
+                                          TextIO.output (file, "\n\tDAVLockDB /var/lock/apache2/dav.");
+                                          TextIO.output (file, user);
+                                          TextIO.output (file, "/DAVLock");
+
                                           (ld, file)
                                       end)
                                   nodes;