# a2enmod dav # a2enmod dav_fs # a2enmod encoding |
Alias /dav
/home/hoge/public_html/dav <Location /dav> DAV On SSLRequireSSL <------ これを入れるとSSL(https://)でしかアクセスできない Options None Indexes AuthName "WebDAV folder" AuthUserFile "/etc/apache2/davpasswd" AuthType Basic Require valid-user ServerSignature Off </Location> |
# chown daemon
/home/hoge/public_html/dav # chmod u+rw /home/hoge/public_html/dav |
# chown www-data
/home/hoge/public_html/dav # chmod u+rw /home/hoge/public_html/dav |
# htpasswd -c
/etc/apache2/davpasswd hoge |
# htpasswd -c /etc/apache2/davpasswd hoge2 |
# htpasswd -c /etc/apache2/davpasswd hoge2 |
# chmod 600
/etc/apache2/davpasswd # chown daemon /etc/apache2/davpasswd # chgrp daemon /etc/apache2/davpasswd |
<Directory
/home/hoge/public_html/dav> AllowOverride None Order Deny,Allow Allow from all </Directory> |
# /etc/init.d/apache2
restart |
SSLRequireSSL AuthType Basic AuthName "Input ID and Password." AuthUserFile /home/karappi/.htpasswd require valid-user |
$ cadaver
https://サーバ名/フォルダ |
$ cadaver -p, --proxy=PROXY[:PORT] https://サーバ名/フォルダ |
davs://192.168.1.204/dav |