Create your own 'DropBox' with Apache and WebDAV

Create your own cloud with Apache and WebDAV, a good alternative for online cloud services like Dropbox, Google Drive and others.

WebDAV is an extension to the HTTP protocol and allows collaboratively manage files on webservers and it is easy to setup.

If not already installed, install Apache.
yum install httpd
Make sure that the WebDAV modules will be loaded in /etc/httpd/conf/httpd.conf and for more security, make sure the module which will implement HTTP Digest Authentication will be loaded.
(Note Digest authentication is more secure than Basic authentication, but only works with supporting browsers. Read more about this on

Open the file and check that the lines below are enabled in the LoadModule section:

LoadModule dav_module modules/
LoadModule dav_fs_module modules/

LoadModule auth_digest_module modules/

Next create the directory and set the ownership to apache:

mkdir -p /var/www/html/cloud
chown apache:apache /var/www/html/cloud

Now we are ready to create a new file, /etc/httpd/conf.d/cloud.conf and add these lines:

Alias /cloud "/var/www/html/cloud"
<Location /cloud>
Dav On
Options +Indexes
IndexOptions FancyIndexing
AddDefaultCharset UTF-8
AuthType Digest
AuthName "CloudServer"
AuthDigestDomain /
AuthDigestProvider file
AuthUserFile /etc/httpd/cloud.users
Require valid-user
Order allow,deny
Allow from all
Next create the AuthUserFile:
htdigest -c /etc/httpd/cloud.user CloudServer [username]

Restart Apache and you are ready to use your own cloud.
Clients for Linux, Mac OSX, Windows and Mobiles exists.



0 # ikongus 2013-11-21 21:22
Can I use webdav client to cache the files in my client machine or any devices? please help me out here...

Please login first before adding a comment.


You are here: Home Howtos and FAQs Apache Create your own 'DropBox' with Apache and WebDAV