]> git.pld-linux.org Git - packages/apache1-mod_dav.git/commitdiff
- updated from 2.2.0 sources: extra/httpd-dav.conf
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Dec 2005 21:59:37 +0000 (21:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_dav.conf -> 1.7

apache-mod_dav.conf

index 5a01f930de1c5885130997894d1d5a550ea74b7e..46a49a5aff3d39e6e85b474cafc7712d08fa32d9 100644 (file)
@@ -3,15 +3,55 @@ LoadModule dav_module           modules/mod_dav.so
 LoadModule dav_fs_module        modules/mod_dav_fs.so
 LoadModule dav_lock_module      modules/mod_dav_lock.so
 
+#
+# Distributed authoring and versioning (WebDAV)
+#
+# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
+#                   mod_auth_digest, mod_authn_file
+#
+
 <IfModule mod_dav.c>
        DavLockDB /var/lock/mod_dav/dav
        DavMinTimeout 600
-#      <Location /mypages>
-#              Options None
-#              Dav On
-#              <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
-#                      Require user greg
-#              </Limit>
-#      </Location>                                                                                                                              
+
+# The following example gives DAV write access to a directory called
+# "uploads" under the ServerRoot directory.
+#
+# The User/Group specified in httpd.conf needs to have write permissions
+# on the directory where the DavLockDB is placed and on any directory where
+# "Dav On" is specified.
+
+Alias /uploads "/etc/httpd/httpd/uploads"
+<Directory "/etc/httpd/httpd/uploads">
+    Dav On
+
+    AuthType Digest
+    AuthName DAV-upload
+    # You can use the htdigest program to create the password database:
+    #   htdigest -c "/etc/httpd/httpd/user.passwd" DAV-upload admin
+    AuthUserFile "/etc/httpd/httpd/user.passwd"
+
+    # Allow universal read-access, but writes are restricted
+    # to the admin user.
+    <LimitExcept GET OPTIONS>
+        require user admin
+    </LimitExcept>
+</Directory>
+
+#
+# The following directives disable redirects on non-GET requests for
+# a directory that does not include the trailing slash.  This fixes a 
+# problem with several clients that do not appropriately handle 
+# redirects for folders with DAV methods.
+#
+BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
+BrowserMatch "MS FrontPage" redirect-carefully
+BrowserMatch "^WebDrive" redirect-carefully
+BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
+BrowserMatch "^gnome-vfs/1.0" redirect-carefully
+BrowserMatch "^XML Spy" redirect-carefully
+BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
+
 </IfModule>
+
 # vim: filetype=apache ts=4 sw=4 et
This page took 0.074186 seconds and 4 git commands to generate.