<IfModule !mod_dav.c> LoadModule dav_module modules/mod_dav.so </IfModule> <IfModule !mod_dav_fs.c> LoadModule dav_fs_module modules/mod_dav_fs.so </IfModule> <IfModule !mod_dav_lock.c> #LoadModule dav_lock_module modules/mod_dav_lock.so </IfModule> # # Distributed authoring and versioning (WebDAV) # # Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias # mod_auth_digest, mod_authn_file # # 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. <IfModule mod_dav_fs.c> # Location of the DAV lock database DavLockDB /var/lib/dav/lockdb </IfModule> #<IfModule mod_dav_lock.c> # # Location of the DAV lock database # DavGenericLockDB /var/lib/dav/lockdb #</IfModule> #Alias /uploads "/var/www/uploads" #<Directory "/var/www/uploads"> # ## DAV - specify the DAV provider for a directory or location # Dav On # # AuthType Digest # AuthName DAV-upload # # You can use the htdigest program to create the password database: # # htdigest -c "/usr/user.passwd" DAV-upload admin # AuthUserFile "/usr/user.passwd" # # # Allow universal read-access, but writes are restricted # # to the admin user. # <LimitExcept GET OPTIONS> # require user admin # </LimitExcept> #</Directory> # ## DAVMinTimeout - specify minimum allowed timeout #DavMinTimeout 600 # ## DAVDepthInfinity - allow Depth infinity PROPFIND requests #DavDepthInfinity off # # <Location /mypages> # Options None # Dav On # <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> # Require user greg # </Limit> # </Location> # # 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