Serving HTTP OPTIONS requests to the server context root by WebDAV clients

Some WebDAV clients send an HTTP OPTIONS request to the server context root ( / ) to check whether the server supports WebDAV. To support these clients, the portal provides a Web application called wp.webdav.options.war that you can enable. This application responds to such requests with a confirmation that the portal supports WebDAV.

To enable this WAR file, adapt the application.xml files of the deployed Enterprise Application (EAR), wps.ear, so that wp.webdav.options.war is mapped to the context root ( / ). Proceed as follows:

  1. Export the EAR, wps.ear, through the WAS administrative console.

  2. Run the following command to expand the EAR:

      EARExpander.sh -ear <directory>/WebDAV_for_WebSphere_Portal.ear -operationDir <directory> webdav_expanded -operation expand

  3. Locate the file application.xml in the expanded EAR file directory.

  4. Edit the file application.xml of the exported EAR, and uncomment or add the following section:

      <module>
           <web>
                <web-uri>wp.webdav.options.war</web-uri>
                <context-root>/</context-root>
           </web>
      </module>

  5. Run the following command to collapse the EAR:

      EARExpander.sh -ear directory/wps.ear -operationDir directory/wps_expanded 
                                                -operation collapse

  6. Update the enterprise application with these changes by using the WAS administrative console.

  7. Save changes.

  8. Restart the portal for changes to take effect.

Depending on how Web server is set up, this change might cause all requests to be routed to the Web server plug-in. In this case refer to Web server documentation for information about how to route only OPTIONS requests to the plug-in.


Parent

Use WebDAV with WebSphere Portal


Related tasks


Work with WebDAV clients
Use WebDAV file store for the Page Builder theme and mashup integration

 


+

Search Tips   |   Advanced Search