This article documents how to connect to Liferay WebDAV folders and files from a WebDAV client if Liferay Portal is running behind a web server.
Specifically, this issue was found using the IBM WebSphere application server and IBM's HTTP Server (commonly abbreviated IHS). Clients have experienced a 403 Unauthorized Error in their browsers and internal code 500 errors. The reason, according to IBM, is that by default IBM's web server plug-in configuration is set to false. When set to false, only POST and PUT requests are accepted. Changing this to true will accept all requests such as the WebDAV PROFIND method.
Resolution
- Stop all HTTP server processes.
- Stop all WebSphere application server processes.
- Generate the
plugin-cfg.xmlfor each profile created.- On Windows, navigate to
C:\Program Files (x86)\IBM\WebSphere\AppServer\bin - On UNIX\LINUX, navigate to
\was_install_dir\bin - Run the command
GenPluginCfg.bat|.sh –profileName profile_name
- On Windows, navigate to
- Navigate to where the
plugin-cfg.xmlis generated. The command prompt will state where the file is located (e.g.C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\plugin-cfg.xml) - Open the XML file and find the property
AcceptALLContent=. By default, it is set tofalse. Change this property totrue. Please note that newer versions of WebSphere Application Server do set this property to true. - If there are more than one
plugin-cfg.xml, use the pluginMerge tool to merge the configurations. - Copy the
plugin-cfg.xmlto the location specified in theIHS' \conf\httpd.conffile. - Start the IBM HTTP Server again.
- Start the IBM WebSphere application server.
- Connect the WebDAV client to Liferay's Documents and Media.