Apache Http WebDav Configurations

Here a example of base configuration for Apache Http and WebDav:

1) First of All you have to create a .htaccess file:
[ApacheRoot]/bin/htpasswd -c /usr/local/apache2/.htpasswd username

2) Create an include in your httpd.con (I prefer to create a folder and include all *.conf file) :
Include conf/include/*.conf

3) create a dav.conf file and put it in the include dir.
####      dav.conf
#Loading Mudels
LoadModule dav_module                     modules/mod_dav.so
LoadModule dav_fs_module                  modules/mod_dav_fs.so

#Dav lck and timeout
DavLockDB /var/lock/dav/DavLock
DAVMinTimeout 600

#WebDav Virtual host enabled
<VirtualHost *:80>
ServerName dav.your.domain
Alias /dav /var/www/dav
<Location /dav>
AuthType Basic
DAV On
AuthName “WebDAV”
AuthUserFile “/usr/local/apache2/.htpasswd”
Options None
Require user username
</Location>
<Location />
Order Allow,Deny
Allow from all
</Location>
</VirtualHost>
4) Restart your Apache.

5) Now you should connect with a WebDav Client.

Leave a Reply

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

Antispam Question * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.