Ubuntu WebDAV 설치, 설정
# http://ubuntuguide.org/wiki/WebDAV
# install apache
sudo apt-get install apache2
# ufw
# sudo ufw allow 80/tcp
# enable apache dav module
sudo a2enmod dav_fs
# Create WebDAV Folder
sudo mkdir -p /var/www/WebDAV1/files
# change permissions
sudo chown -R www-data:root /var/www/WebDAV1
# 이렇게 권한 설정했을때 난 안됐음.
# sudo chmod 664 -R /var/www/WebDAV1
# user access
# apache auth module enable
sudo a2enmod auth_digest
# create password file and add user
sudo htdigest -c /var/www/WebDAV1/digestpasswd.dav webdav1digest testuser
# change permissions
sudo chown www-data:root /var/www/WebDAV1/digestpasswd.dav
sudo chmod 660 /var/www/WebDAV1/digestpasswd.dav
# edit virtual host file
sudo vim /etc/apache2/sites-available/000-default.conf
<VirtualHost *>
ServerName myhost.mydomain.org
ServerAlias 192.168.0.155 webdav1.mydomain.org
ServerAdmin root@localhost
DocumentRoot /var/www/
Alias /webdav1 /var/www/WebDAV1/files
<Directory /var/www/WebDAV1/>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Location /webdav1>
DAV On
AuthType Digest
AuthName "webdav1digest"
AuthUserFile /var/www/WebDAV1/digestpasswd.dav
Require valid-user
</Location>
</VirtualHost>