Enable WebDAV
a2enmod dav a2enmod dav_fs |
Create File System
mkdir /home/sites/www/webdav chown www-data:www-data /home/sites/www/webdav |
Set Up Password Protection
htpasswd -c /etc/apache2/webdav.password username chown root:www-data /etc/apache2/webdav.password chmod 640 /etc/apache2/webdav.password |
Configure Apache
nano /etc/apache2/sites-available/default <Location /webdav> Options Indexes DAV On AuthType Basic AuthName "webdav" AuthUserFile /etc/apache2/webdav.password Require valid-user </Location> |