Novell Home

Enable Webdav Tech in Apache 2

Novell Cool Solutions: Trench
By Domnic Mendes

Digg This - Slashdot This

Posted: 17 Nov 2005
 

Applies to:

  • Novell Linux Desktop 9
  • Open Enterprise Server
  • SUSE Linux Professional 9.3
  • SUSE Linux 10
  • SUSE Linux Enterprise Server

WebDAV technology allows people to read and/or write files to a remote Web server without having to use FTP. Using the HTTPS protocol, you can wrap the WebDAV transactions with SSL, which can be particularly useful.

If you're using Apache 2.0, enabling mod_dav support (the module used to provide WebDAV functionality) is as simple as compiling Apache 2.0 with the --enable-dav configure switch. You also need to create a place for the Apache user (or the user the Web server runs as) to store the WebDAV locking database.

Here's an example:

# mkdir /var/davlock
# chgrp apache /var/davlock
# chmod g+w /var/davlock 

Then, add the following lines to the httpd.conf file:

<Ifmodule mod_dav.c>
  DAVLockDB /var/davlock/DAVlock
</IfModule>

<Directory /var/www/davtest>
  DAV On
</Directory>

Next, create the /var/www/davtest directory, which will be your initial testing ground for WebDAV. Note that we're assuming that /var/www is the top-level directory of your Web site. To ensure that http://localhost/davtest/ corresponds to the directory, choose a directory name accordingly.

After you restart the server, you should be able to use any DAV-enabled client to read and write files to http://localhost/davtest/. One command-line client that's useful for testing and debugging is the cadaver tool.

Be aware that the above example directives are suitable only for testing; if you're using WebDAV in production, or anywhere else that's publicly accessible, be sure to use appropriate access controls.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell