Enabling WebDAV on Apache HTTP Server

Technote (FAQ)


Question

The goal of this document is to outline the way in which the WebDAV HTTP extension can be enabled in Apache HTTP Server for use with the “Browsing for Images” feature in IBM Cognos Report Studio.

If not configured properly, any of the following errors may appear while trying to add an image to a report: in Report Studio:
HTTP 404.2 File / Page not found
Web server error: 405 Method Not Allowed
Web server error: 501 Not Implemented

Cause

WebDAV is not enabled

Answer

To browse images you must enable Web-based Distributed Authoring and Versioning (WebDAV) on your Apache HTTP Server.

1. Load WebDAV libraries.
Apache 2.x provides a copy of a ready to run WebDAV libraries, so usually it is enough to add below lines to httpd.conf file (or remove the leading hash '#' from existing lines to activate it):

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so

2. Use the DavLockDB directive to specify the full path to the WebDAV lock database.
The directory containing the lock database file must be writable by the user and group under which Apache is running. To do it add below lines to httpd.conf file (or remove the leading hash '#' from existing lines to activate it):

<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>

3. Enable WebDAV for the virtual directory where images are stored.
Below example shows a configuration for images taken from Cognos Samples. The 'Dav On' directive needs to be added, to activate WebDAV for whole 'ibmcognos' virtual directory:

Alias /ibmcognos "/opt/ibm/cognos/c10_64/webcontent"
<Directory "/opt/ibm/cognos/c10_64/webcontent">
Options FollowSymLinks
AllowOverride FileInfo
Order Allow,Deny
Allow from All
Dav On
</Directory>

For more information on WebDAV please see the Apache documentation.

4. Restart Apache HTTP Server.


Rate this page:

(0 users)Average rating

Document information


More support for:

Cognos Business Intelligence
Install and Config

Software version:

8.4.1, 10.1, 10.1.1, 10.2, 10.2.1

Operating system(s):

AIX, HP Itanium, HP-UX, Linux, Solaris, Windows

Software edition:

Advanced, All Editions, Datacenter, Edition Independent, Enterprise, Essential, Foundation, Personal, Standard, Workgroup, Workstation

Reference #:

1608666

Modified date:

2013-07-02

Translate my page

Machine Translation

Content navigation