<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.usualcoding.eu/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>UsualCoding.eu - webdav</title>
  <link>http://www.usualcoding.eu/</link>
  <description>Use(less|ful) stuff</description>
  <language>en</language>
  <pubDate>Wed, 21 Jul 2010 22:55:36 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Private Weave Server (with ssl)</title>
    <link>http://www.usualcoding.eu/post/2008/07/16/Private-Weave-Server</link>
    <guid isPermaLink="false">urn:md5:730c9812f947f60d92b7dda7c34ea904</guid>
    <pubDate>Wed, 16 Jul 2008 19:00:00 +0200</pubDate>
    <dc:creator>Seb</dc:creator>
        <category>Misc</category>
        <category>apache</category><category>mozilla</category><category>weave</category><category>webdav</category>    
    <description>    &lt;p&gt;Since Google Browser Sync has been discontinued, I moved to &lt;a href=&quot;https://services.mozilla.com/&quot;&gt;Mozilla Weave&lt;/a&gt;. The cool thing is that it is open source and you can even create your own weave server.&lt;br /&gt;
All you need is an apache server with following modules activated and configured:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dav&lt;/li&gt;
&lt;li&gt;dav_fs&lt;/li&gt;
&lt;li&gt;dav_lock&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Since weave only uses basic authentication (digest would have been better) it is strongly advised to use https.&lt;br /&gt;
Here is the vhost configuration file. It should be pretty straightforward:&lt;/p&gt;
&lt;pre&gt;
&amp;lt;VirtualHost *:80&amp;gt;
        ServerName weave.YOURDOMAIN

        RewriteEngine On
        RewriteCond %{HTTPS} !on
        RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R]
&amp;lt;/VirtualHost&amp;gt;

&amp;lt;VirtualHost *:443&amp;gt;
        ServerName weave.YOURDOMAIN
        ServerAdmin YOURMAIL

        DocumentRoot &amp;quot;/var/www/weave.YOURDOMAIN&amp;quot;

        &amp;lt;Directory /var/www/weave.YOURDOMAIN&amp;gt;
                SSLRequireSSL
                Order allow,deny
                Allow from all

                DAV On
                AuthType Basic
                AuthName &amp;quot;Restricted&amp;quot;
                AuthUserFile /etc/apache2/passwd/weave_htpasswd
                require valid-user

                AllowOverride None
        &amp;lt;/Directory&amp;gt;

        &amp;lt;Directory /var/www/weave.YOURDOMAIN/user/YOURUSER&amp;gt;
                require user YOURUSER
                Options Indexes
        &amp;lt;/Directory&amp;gt;

        ErrorLog /var/log/apache2/weave.YOURDOMAIN_error.log
        LogLevel warn
        CustomLog /var/log/apache2/weave.YOURDOMAIN_access.log combined
&amp;lt;/VirtualHost&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Now all you need to do is to create the &lt;code&gt;/user/YOURUSER&lt;/code&gt; directory in the vhost and give apache the rights to write to it.&lt;br /&gt;
Then create the password file with the &lt;code&gt;htpasswd&lt;/code&gt; utility.&lt;br /&gt;
&lt;br /&gt;
That should be enough to have a working weave server. You can test it by going to the directory with your browser first. Once everything works, change the server in your weave preferences.&lt;br /&gt;
&lt;br /&gt;
Links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://people.mozilla.com/~cbeard/weave/dist/latest-weave.xpi&quot;&gt;Weave Plugin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://remcobressers.nl/2008/07/create-your-own-mozilla-weave-server/&quot; title=&quot;http://remcobressers.nl/2008/07/create-your-own-mozilla-weave-server/&quot;&gt;http://remcobressers.nl/2008/07/cre...&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://labs.mozilla.com/forum/index.php/topic,841.msg3432.html#msg3432&quot; title=&quot;https://labs.mozilla.com/forum/index.php/topic,841.msg3432.html#msg3432&quot;&gt;https://labs.mozilla.com/forum/inde...&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EDIT: If you use firefox 3 you will have to add a security exception if your certificate is not signed.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.usualcoding.eu/post/2008/07/16/Private-Weave-Server#comment-form</comments>
      <wfw:comment>http://www.usualcoding.eu/post/2008/07/16/Private-Weave-Server#comment-form</wfw:comment>
      <wfw:commentRss>http://www.usualcoding.eu/feed/rss2/comments/12</wfw:commentRss>
      </item>
    
</channel>
</rss>