Set Up WebDAV With Apache2 On Fedora 11

Web-based Distributed Authoring and Versioning, or WebDAV, WebDAV is a protocol that allows for convenient mounting of a remote server on your desktop for easy file access. Once setup, using it is as simple as any other drag and drop navigation on your desktop.

1- First  we will install apache:

Download and  install apache

#yum  -y install  httpd

2- check  if  these  module  are loaded in   /etc/httpd/conf/httpd.conf

LoadModule dav_module modules/
LoadModule dav_fs_module modules/

3- Now  make  apache  starting  with  Linux .

#chkconfig --levels 235 httpd on
 #/etc/init.d/httpd start

4- Create  a  Vhost  directory with  ownership apache:apache and  add  this  vhsot   to  the  httpd  configuration :

# mkdir -p /var/www/web/unixmenweb
# chown apache:apache /var/www/web/unixmenweb

5- Add this  to  your  /etc/httpd/conf/httpd.conf :


NameVirtualHost *:80

ServerAdmin webmaster@localhost

DocumentRoot /var/www/web/unixmenweb/

Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all


6- Now   restart   your  apache with

#service httpd  restart

7- Now  configure  your  Vhost  for  the  Webdav.  create webdav password  for  user1

# htpasswd -c  /var/www/web/passwd.dav user1

New password:

Re-type new password:

Adding password for user user1.

8- Now  change  access to  passwd.dav  . that  only  root  and  apache  members will  access to .

# chown  root:apache /var/www/web/passwd.dav
# chmod 640 /var/www/web/passwd.dav

9- Now  we  have  to make  a alias  to  the  wewbdav in the  webserver.

add this  to  /etc/httpd/conf/httpd.conf :


Alias /webdav /var/www/web/unixmenweb

AuthType Basic
AuthName "webdav"
AuthUserFile /var/www/web/passwd.dav
Require valid-user


10 – Now  restart   apache  :

 service httpd  restart

11- Download  Command-line  webdav client

#yum install -y cadaver

test  the  connection  to Webdav .

# cadaver http://localhost/webdav/

output :

Authentication required for webdav on server `localhost’:

Username: user1


dav:/webdav/> ls

Listing collection `/webdav/’: collection is empty.


Now  we will  add this   webdav  directory   add to network place  Windows:

To  connect  from  Linux  machine  (ubuntu /Fedora)

Go   to : Place –>  Connect to server.

Service  type   WebDAV (HTTP). make  the IP of  the  host and  the  Folder  (connect)

For  ubuntu  will  be  shown on the  desktop

for  Fedora  wil be shown on  Place–>Network