5-Minute WebDAV Server for Dropbox and iPad Pages, Numbers, and Keynote

This quick guide will get you set up with a secured simple WebDAV server using Ruby and Rack. The idea is to make your Dropbox accessible through WebDAV. This enables secure saving of documents from the iPad iWork apps back into your Dropbox account. The script was inspired by Billy He’s RackDAV Thin script and improved to add self-signed certificates for an encrypted connection.


This guide was written with Mac OS X in mind, but with a few changes should work on any *nix-like system. Ruby and RubyGems are assumed to be already installed.

Create self-signed certificates

Remove the unnecessary PEM password unless you’re really paranoid:

Verbose Info: http://efreedom.com/Question/3-73979/Easily-Create-SSL-Certificate-Configure-Apache2-Mac-OS

The RackDAV script

Here’s the RackDAV script which you could save as rackdav.rb in your Dropbox folder. Replace all instances of USERNAME and PASSWORD as needed.

Source: This script was inspired by the one found at http://surrealtime.tumblr.com/dropbox_webdav.

Make sure it works and runs:

Tip: To terminate the webrick server, try ctrl+alt+c.

Starting on system boot using launchd

Edit and save this plist file in /Library/LaunchDaemons/org.YOURNAME.RackDAV.plist and don’t foreget to change ALL CAP items like USERNAME.

You can load and unload this daemon without restarting using the following commands:

8 thoughts on “5-Minute WebDAV Server for Dropbox and iPad Pages, Numbers, and Keynote

  1. Hello John, I am very interested by your script due to Dropdav change as Ray said. But, I have a basic question : how do I connect from iPad? Thanks // Rick

  2. Well, DropDAV is no longer free. They start charging $5 a month. That sucks given the 2GB Dropbox account is FREE! I am not going to pay just to sync.

  3. Well my DropDAV has stopped working. Can login to Dropbox ok and can log into DropDAV manage account page but dropdav from Pages in the iPad does not work.

  4. DropDAV actually is free. They just explained the pricing a bit confusingly on their website. If your Dropbox is a 2GB free account, then you can use DropDAV for free, but if you pay for your Dropbox, you pay for DropDAV (or get a free 14-day trial). It works painlessly, efficiently and beautifully.

  5. I have just made the following change to this guide: run server as non-privileged user. The script now starts the server on port 1024 rather than 80 so that it doesn’t need to be run as root. The launchd plist file now specifies the user that the server should be started as. Files created should then have the ownership of the user rather than root.

    Some have asked privately why WEBrick was used rather than mongel. The answer is Mongrel does not have the capability of secured connections without the use of a proxy as far as I can tell.

Leave a Reply to Jon Stacey Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.