WebDAV access and permissions

August 24, 2014 2.5k views

I can't get access to webdav folder with messages 403: "You don't have permission to access /sync on this server" or "Access denied"

I try to configure WebDAV by using this manual - [](http:// "How To Configure WebDAV Access with Apache on Ubuntu 12.04")

Here is my 000-default.conf

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/webdav

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combine

        <Directory /var/www/webdav/>
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        allow from all

        Alias /sync /var/www/webdav/

        <Location /webdav>
        Dav on
        AuthType Digest
        AuthName "webdav"
        AuthUserFile /etc/apache2/webdav.password
        Require valid-user

Permission for 000-default.conf -
-rw-r--r-- 1 root root 1629 Aug 24 15:04 /etc/apache2/sites-available/000-default.conf

Permission for webdav.password -
-rw-rw---- 1 www-data userID 48 Aug 24 14:44 webdav.password

Permission for webdav alias -
lrwxrwxrwx 1 www-data userID 16 Aug 24 14:10 webdav -> /home/userID/webdav

Permission for webdav folder
drw-rw-r-- 2 www-data konst 4096 Aug 24 14:10 sync

Does anyone have ideas?

My droplet is Ubuntu 14.04 x32

Many thanks in advance!

1 comment
1 Answer

This question was answered by @naumov.k:

Correct Alias

Alias /webdav /var/www/webdav/

View the original comment

Have another answer? Share your knowledge.