Question

WebDAV access and permissions

  • Posted August 24, 2014

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 - https://www.digitalocean.com/community/tutorials/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
        </Directory>

        Alias /sync /var/www/webdav/

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

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!

Subscribe
Share

Correct Alias

Alias /webdav /var/www/webdav/

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @naumov.k:

Correct Alias

Alias /webdav /var/www/webdav/

View the original comment