WebDav configuration for MAC OS X

Discussion in 'Apache' started by phil7, Jun 15, 2011.

  1. #1
    Hi, I have enabled the WebDav module on a server for mounted/mapped access by some Mac OS X and Windows clients. Everything is fine, but sometimes when uploading PDF files from the MAC system they get corrupted.

    Please could anyone with insight into WebDav configuration look at my httpd-dav.conf file below and give any tips on how to improve it for MAC OS X?

    Many thanks.


    #
    # 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.
    DAVDepthInfinity On
    DAVMinTimeout 600
    DavLockDB "C:/Program Files/Apache Software Foundation/Apache2.2/var/DavLock"
    
    Alias /xxxxxxxxxxxx "C:\xxxxxxxxxxxxx\xxxxxxxxxxx\xxxxxxxxxxxx\xxxxxxxxx"
    
    <Directory "C:\xxxxxxxxxxxx\xxxxxxxxxxxx\xxxxxxx\xxxxxxxx">
        Dav On
    
        Order Deny,Allow
        Deny from all
        Allow from xx.xxx.xx.xxx
        Allow from xx.xxx.xxx.xx
    
    
        AuthType Digest
        AuthName DAV-upload
    
        # You can use the htdigest program to create the password database:
        #   htdigest -c "C:/Program Files/Apache Software Foundation/Apache2.2/user.passwd" DAV-upload admin
        AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/user.passwd"
        AuthDigestProvider file
    
        # 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
    
    
    Code (markup):
     
    phil7, Jun 15, 2011 IP