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
WebDAV is not enabled
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):
# Location of the WebDAV lock database.
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"
Allow from All
For more information on WebDAV please see the Apache documentation.
4. Restart Apache HTTP Server.