Sun Java System Web Server 6.1 SP9 Administrator's Guide

Enabling WebDAV

When you install Sun Java System Web Server 6.1, WebDAV is disabled by default.

In order to enable WebDAV at the collection level, you need to also enable WebDAV at the server instance level and the virtual server class level.


Note –

The attributes specified on a collection override attribute values set at the virtual server level.


The different levels at which you can enable WebDAV are described in the following sections:

Enabling WebDAV for the Server Instance

You can use the Administration Server to enable WebDAV for the entire server. When you do so, the following directive is added to the magnus.conf file that loads the WebDAV plugin:

Init fn="load-modules" shlib="/s1ws6.1/lib/libdavplugin.so" 
funcs="init-dav,ntrans-dav,pcheck-dav,service-dav"

shlib_flags="(global|now)"
Init fn="init-dav" LateInit=yes

The init-dav Init function initializes and registers the WebDAV subsystem.

To enable WebDAV globally, perform the following steps.

ProcedureTo enable WebDAV globally

  1. Access the Server Manager of the server you want to enable WebDAV for.

  2. Click the Enable/Disable WebDAV link on the Preferences tab.

  3. Check the Enable WebDAV Globally checkbox.

    Figure 19–1 Enabling WebDAV for the Instance

    Enabling WebDAV for the Instance

  4. Click Apply.

  5. Click the Apply Changes button to restart the server

    or

    click Load Configuration Files to dynamically apply your changes.

Enabling WebDAV for a Virtual Server Class

To enable WebDAV for a particular virtual server class, perform the following steps.

ProcedureTo enable WebDAV for a particular virtual server class

  1. Select the virtual server class.

  2. Click the Content Mgmt tab.

  3. Click the Enable/Disable WebDAV link.

    Figure 19–2 Enabling WebDAV for a Virtual Server Class

    Enabling WebDAV for a virtual server class

  4. Check the Enable DAV checkbox.

  5. Click OK.

    When you enable WebDAV for a virtual server class, the associated obj.conf file is updated with the following entries:

    <Object name="default">
    ...
    Service fn="service-dav" 
    method="(OPTIONS|PUT|DELETE|COPY|MOVE|PROPFIND|PROPPATCH|LOCK|UN
    LOCK|MKCOL)"
    Error fn="error-j2ee"
    ...
    </Object>
    ...
    <Object name="dav">
    PathCheck fn="check-acl" acl="dav-src"
    Service fn="service-dav" 
    method="(GET|HEAD|POST|PUT|DELETE|COPY|MOVE|PROPFIND|PROPPATCH|L
    OCK|UNLOCK|MKCOL)"
    </Object>

Enabling WebDAV for a Collection

If you have added one or more WebDAV collections to a virtual server, you can choose to disable and enable them at any time. For information on how you can do so, see Editing a WebDAV Collection.