github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/conf/extra/httpd-dav.conf (about)

     1  #
     2  # Distributed authoring and versioning (WebDAV)
     3  #
     4  # Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
     5  #                   mod_auth_digest, mod_authn_file
     6  #
     7  
     8  # The following example gives DAV write access to a directory called
     9  # "uploads" under the ServerRoot directory.
    10  #
    11  # The User/Group specified in httpd.conf needs to have write permissions
    12  # on the directory where the DavLockDB is placed and on any directory where
    13  # "Dav On" is specified.
    14  
    15  DavLockDB "c:/Apache2/var/DavLock"
    16  
    17  Alias /uploads "c:/Apache2/uploads"
    18  
    19  <Directory "c:/Apache2/uploads">
    20      Dav On
    21  
    22      Order Allow,Deny
    23      Allow from all
    24  
    25      AuthType Digest
    26      AuthName DAV-upload
    27  
    28      # You can use the htdigest program to create the password database:
    29      #   htdigest -c "c:/Apache2/user.passwd" DAV-upload admin
    30      AuthUserFile "c:/Apache2/user.passwd"
    31      AuthDigestProvider file
    32  
    33      # Allow universal read-access, but writes are restricted
    34      # to the admin user.
    35      <LimitExcept GET OPTIONS>
    36          require user admin
    37      </LimitExcept>
    38  </Directory>
    39  
    40  #
    41  # The following directives disable redirects on non-GET requests for
    42  # a directory that does not include the trailing slash.  This fixes a 
    43  # problem with several clients that do not appropriately handle 
    44  # redirects for folders with DAV methods.
    45  #
    46  BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
    47  BrowserMatch "MS FrontPage" redirect-carefully
    48  BrowserMatch "^WebDrive" redirect-carefully
    49  BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
    50  BrowserMatch "^gnome-vfs/1.0" redirect-carefully
    51  BrowserMatch "^XML Spy" redirect-carefully
    52  BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully