Enable DAV on apache:
$ sudo a2enmod dav_fs dav dav_lock
Weave will store the data at http://server/user/sha1hash-of-user
$ sudo mkdir /var/www/user
$ sudo chown www-data:www-data /var/www/user
Edit /etc/apache2/httpd.conf and put something like this in it:
<Directory "/var/www/user">
Dav On
AuthName "WebDAV Login"
AuthType Basic
AuthUserFile /etc/apache2/.htpasswd
require valid-user
Order allow,deny
Allow from all
Options +Indexes
</Directory>
Create the password file with:
$ sudo htpasswd -m -c /etc/apache2/.htpasswd emailaddress
Where the email address is the one you use in the Weave preferences.
Restart apache and then configure Weave. Make sure you change the server location in the Advanced tab to point to the root of your server (http://server/)
NOTE: don't enable forms/password sync, it appears to be broken.. weave will get stuck in a busy loop when it tries to sync with those enabled.
No comments:
Post a Comment