阅读:5549回复:14
[转贴]Xmarks 使用自建服务器
来源:http://log.dongsheng.org/archives/70
该链接未经验证: http://log.dongsheng.org/archives/70 听说天朝把 Xmarks 也封了,真卄了。这样下去今年过年回家只能喝西北风了,我看 Dropbox 也快了,党国是一定要赶尽杀绝的。 读了下 Xmarks 的文档,原来 Xmarks 是支持自建服务器的,只要给 WebDAV 和 FTP 写权限就行了,弄起来很简单,这样的另一个好处的是可以放心大胆的把密码也给同步了,记录一下启用的步骤: 1. 启用 Apache 的 WebDav 模块,Arch Linux 默认把 WebDav 设置放到 extra/httpd-dav.conf 了,在 /etc/httpd/conf/httpd.conf 中反注释掉好了,我的配置如下: DavLockDB "/var/log/httpd/DavLock/DavLockDB" Alias /xmarks "/srv/webdav/xmarks" <Directory "/srv/webdav/xmarks"> Dav On Order Allow,Deny Allow from all AuthType Digest AuthName xmarks-rule AuthUserFile "/etc/httpd/user.passwd" AuthDigestProvider file <LimitExcept GET OPTIONS> require user xmarks </LimitExcept> </Directory> 2. 创建 //var/log/httpd/DavLock/ 和 /srv/webdav/xmarks 目录,设置写权限 3. 创建用户 htdigest -c "/etc/httpd/user.passwd" xmarks-rule xmarks xmarks-rule 对应 AuthName, xmarks 对应 require user xmarks 4. 在 Xmarks 里勾上 Use own server,Bookmark URL 设置成 http://localhost/xmarks/xmarks.json 该链接未经验证: http://localhost/xmarks/xmarks.json ,注意 xmarks.json 是创建在 /src/webdav/xmarks/ 目录下。 然后就搞定了,Xmarks 您随便封吧。 解决方法在8楼 by fang5566 |
|