4. Configuring and Setting up the WebDAV servicesNow for the easy part. In this section we will WebDAV enable a directory under Apache root. 4.1. Modifications to the /usr/local/apache/conf/httpd.confPlease verify that the following Apache directive appears in the /usr/local/apache/conf/httpd.conf :
If it does not please add it. This directive informs Apache about DAV capability. The directive must be placed outside any container. Next we must specify where Apache should store the DAVLockDB file. DAVLockDB is a lock database for the WebDAV. This directory should be writable by the httpd process. I store the DAVLock file under /usr/local/apache/var. I use this directory for other purposes as well. Please add the following line to your /usr/local/apache/conf/httpd.conf to specify that the DAVLockDB file will be under /usr/local/apache/var :
The directive must be placed outside any container. 4.2. Creating a directory for DAVLockDBAs mentioned above a directory must be created for DAVLockDB that can be written by the web server process. Usually web server process runs under the user 'nobody' . Please verify this for your system using the command:
4.3. Enabling DAVEnabling DAV is a trivial task. To enable DAV for a directory under Apache root, just add the following directive in the container for that particular directory:
This directive will enable DAV for the directory and its sub-directories. The following is a sample configuration that will enable WebDAV and LDAP authentication on /usr/local/apache/htdocs/DAVtest. Place this in the /usr/local/apache/conf/httpd.conf file.
4.4. Create a Directory called DAVtestAs mentioned in a earlier section, all DAV directories have to be writable by the WebServer process. In this example we assume WebServer is running under username 'nobody'. This is usually the case. To check httpd is running under what user, please use:
Create a test directory called 'DAVtest' under /usr/local/apache2/htdocs : # mkdir /usr/local/apache/htdocs/DAVtest Change the permissions on the directory to make it is read-writable by the httpd process. Assuming the httpd is running under username 'nobody', use the following commands:
4.5. Restart ApacheFinally you must run the configuration test routine that comes with Apache to verify the syntax in httpd.conf :
If you get error messages please verify that you followed all of the above mentioned steps correctly. If you can not figure out the error message feel free to email me with the error message (saqib@seagate.com). If the configtest is successful start the apache web-server: # /usr/local/apache/bin/apachectl restart Now you have WebDAV enabled Apache Server with LDAP authentication and SSL encryption. 4.6. WebDAV server protocol compliance testingIt is very important that the WebDAV that we just implemented be fully complaint with the WebDAV-2 protocol. If it is not fully compatible, the client side WebDAV applications will not function properly. To test the complaince we will use a tool called Litmus. Litmus is a WebDAV server protocol compliance test suite, which aims to test whether a server is compliant with the WebDAV protocol as specified in RFC2518. Please download the Litmus source code from http://www.webdav.org/neon/litmus/ and place it in the /tmp/downloads directory. Then use gzip and tar to extract the files:
Compiling and installing Litmus is easy:
make install will install the Litmus binary files under /usr/local/bin and the help files under /usr/local/man To the test the complaince of the WebDAV server that you just installed, please use the following command
Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |