Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Apache WebDav

Simple Webdav setup with Auth Digest

Enable module auth_digest:

a2enmod auth_digest

Create password file

htdigest -c /etc/apache2/.htdigest "webdav" aike

The vhost config

<VirtualHost *:443>
   ServerName grafana.you
   < logging and certs >
   RewriteEngine on

   Alias /files /opt/webdavroot
   <Directory /opt/webdavroot>
     DAV on
     AuthType Digest
     AuthName "webdav"
     AuthDigestDomain /files
     AuthUserFile /etc/apache2/.htdigest
     Require valid-user
   </Directory>

</VirtualHost>