Setting up Nginx and Owncloud
written on Monday, March 12, 2012
Over the last few months I tested Owncloud so that I could move my calendars away from Google. I also want to have my contacts in sync across my devices (phone, notebook). So, this blog post is about syncing calendars (with CalDAV) and contacts (with CardDAV) between Thunderbird and my Android phone using Owncloud on Nginx.
Just install the standard Arch Linux package from [community]. There is no need to patch Nginx with additional WebDAV modules or anything like that. Just take a look at the configuration below.
Get the latest tarball from Owncloud and extract it in your webroot. Here is the Nginx configuration I use:
Finish setup by creating your Owncloud admin account.
To get CalDAV/CardDAV support for Thunderbird and Lightning respectively, use the SOGo Connector for Thunderbird.
Here is the CardDAV URL for your address book:
Here is the CalDAV URL for your calendar (1 URL for each calendar):
Marten Gajda has written sync clients for CalDAV (CalDAV-Sync) and CardDAV (CardDAV-Sync). Either use the free version from Android Play Shop (Market) or buy the paid version containing additional features. You can find the documentation for Owncloud in the dmfswiki. You could also use aCal but I haven't tried it.
In short, use this URL for your address book (without https://):
Below is the URL for your calendars. If everything works as expected, you should be prompted with a list of available calendars:
Feedback? Contact me!