WebDAV
In this article we explain how to access the OpenCms virtual file system (VFS) via WebDAV. WebDAV was introduced in OpenCms 12 and is the recommended way replacing the older CMIS and Network share access mounting interfaces.
Accessing the VFS via WebDAV
The OpenCms WebDAV servlet is available below the /webdav
path of your OpenCms installation.
WebDAV is enabled by default, there are no special configurations needed.
In order to disable the WebDAV servlet, comment the servlet mapping in the <CATALINA_HOME>/webapps/<OPENCMS>/
web.xml
file of your Tomcat installation:
Step 2: Configure /etc/davfs2/davfs2.conf
Set the delay_upload
configuration parameter to a value of 1
or lesser, which means, davfs2
will wait at most 1 second until changes in your local file system are propagated to the OpenCms VFS.
/etc/davfs2/davfs2.conf
Step 3: Set the mount
You will be prompted to enter your OpenCms username and OpenCms password.
Replace http://localhost/webdav with the URL of your OpenCms installation.
/mnt/opencms-vfs
is a freely choosen directory for which your Ubuntu user should have read and write permissions.
With the options -o rw,user,uid=$USER
you make sure that the current Ubuntu user can read and write to the mounted WebDAV directory.